mirror of
https://github.com/flatcar/scripts.git
synced 2026-04-25 15:32:33 +02:00
net-libs/http-parser: Sync with Gentoo
It's from Gentoo commit 41fdf7567a3cf179892c3170d55cecaabb74d542.
This commit is contained in:
parent
e446957a10
commit
2ce866abd7
@ -1,8 +1,9 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
inherit toolchain-funcs multilib-minimal
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="HTTP request/response parser for C"
|
||||
HOMEPAGE="https://github.com/nodejs/http-parser"
|
||||
@ -12,26 +13,26 @@ LICENSE="MIT"
|
||||
# 2.9.4 restored ABI compatibility with 2.9.0 but since we failed
|
||||
# to set subslot in 2.9.3, we want to provoke another rebuild
|
||||
SLOT="0/2.9.4"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x64-macos ~x64-solaris"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x64-macos ~x64-solaris"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-non-x86-test.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
src_configure() {
|
||||
tc-export CC AR
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
src_compile() {
|
||||
emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
src_test() {
|
||||
emake CFLAGS_DEBUG="${CFLAGS}" CFLAGS_FAST="${CFLAGS}" test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user