Skip to content

Commit 2ce866a

Browse files
committed
net-libs/http-parser: Sync with Gentoo
It's from Gentoo commit 41fdf7567a3cf179892c3170d55cecaabb74d542.
1 parent e446957 commit 2ce866a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# Copyright 1999-2021 Gentoo Authors
1+
# Copyright 1999-2023 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

4-
EAPI=7
5-
inherit toolchain-funcs multilib-minimal
4+
EAPI=8
5+
6+
inherit toolchain-funcs
67

78
DESCRIPTION="HTTP request/response parser for C"
89
HOMEPAGE="https://github.com/nodejs/http-parser"
@@ -12,26 +13,26 @@ LICENSE="MIT"
1213
# 2.9.4 restored ABI compatibility with 2.9.0 but since we failed
1314
# to set subslot in 2.9.3, we want to provoke another rebuild
1415
SLOT="0/2.9.4"
15-
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x64-macos ~x64-solaris"
16+
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x64-macos ~x64-solaris"
1617

1718
PATCHES=(
1819
"${FILESDIR}"/${P}-non-x86-test.patch
1920
)
2021

21-
src_prepare() {
22-
default
22+
src_configure() {
2323
tc-export CC AR
24-
multilib_copy_sources
2524
}
2625

27-
multilib_src_compile() {
26+
src_compile() {
2827
emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
2928
}
3029

31-
multilib_src_test() {
30+
src_test() {
3231
emake CFLAGS_DEBUG="${CFLAGS}" CFLAGS_FAST="${CFLAGS}" test
3332
}
3433

35-
multilib_src_install() {
34+
src_install() {
3635
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
36+
37+
einstalldocs
3738
}

0 commit comments

Comments
 (0)