Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/http-parser/
Date: Thu, 27 Dec 2018 21:27:57
Message-Id: 1545946006.e1e2484aea288225586c5a0552a40fd35472fcca.jer@gentoo
1 commit: e1e2484aea288225586c5a0552a40fd35472fcca
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 27 21:00:49 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 27 21:26:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e2484a
7
8 net-libs/http-parser: Version 2.8.1_p20181224
9
10 Upstream nodejs is now basing their expectations of non-bundled
11 http-parser on changes that have not been officially released yet.
12
13 Package-Manager: Portage-2.3.52, Repoman-2.3.12
14 Fixes: https://bugs.gentoo.org/673830
15 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
16
17 net-libs/http-parser/Manifest | 1 +
18 .../http-parser/http-parser-2.8.1_p20181224.ebuild | 37 ++++++++++++++++++++++
19 2 files changed, 38 insertions(+)
20
21 diff --git a/net-libs/http-parser/Manifest b/net-libs/http-parser/Manifest
22 index 8557aad9d1f..70587f99d5f 100644
23 --- a/net-libs/http-parser/Manifest
24 +++ b/net-libs/http-parser/Manifest
25 @@ -1 +1,2 @@
26 DIST http-parser-2.8.1.tar.gz 50731 BLAKE2B 1c4f3f61550f7f8e86d7b47e3986754a108dc979c6232d87ac418f9f8295b88ee43c4a5af150460f707e6ade01f5d435801f980ccbff93369ee0a9dc2eb60656 SHA512 6f52f543d979f39688ccefae236527a8183929b3d30f5370570107b01cf89d0338b448249a81102b78d31615d2e8f6e7c708f8961f55ece08e7d3a40e5ad0883
27 +DIST http-parser-2.8.1_p20181224.tar.gz 51363 BLAKE2B ada4bc8e4143c45fc03ae18a16426cbd7ee2c945ea01806e2e6527ee8080ae1f23c72f101e4d20d12fc5995794ab0c0beca358e42daa1c429c5db74253b0f1c3 SHA512 7b721bf5283510d106544a120c51779d7fc85ae9149ab0bffc07bed17b398db506ce75e994e5b11856ef1a9576979948c04400e7e9a33942a3017dcf9b21a174
28
29 diff --git a/net-libs/http-parser/http-parser-2.8.1_p20181224.ebuild b/net-libs/http-parser/http-parser-2.8.1_p20181224.ebuild
30 new file mode 100644
31 index 00000000000..43deb42fdd8
32 --- /dev/null
33 +++ b/net-libs/http-parser/http-parser-2.8.1_p20181224.ebuild
34 @@ -0,0 +1,37 @@
35 +# Copyright 1999-2018 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +inherit toolchain-funcs multilib-minimal
40 +
41 +HP_COMMIT="350258965909f249f9c59823aac240313e0d0120"
42 +DESCRIPTION="HTTP request/response parser for C"
43 +HOMEPAGE="https://github.com/nodejs/http-parser"
44 +SRC_URI="https://github.com/nodejs/http-parser/archive/${HP_COMMIT}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0/2.8.0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x64-macos ~x64-solaris"
49 +IUSE="static-libs"
50 +
51 +S=${WORKDIR}/${PN}-${HP_COMMIT}
52 +
53 +src_prepare() {
54 + default
55 + tc-export CC AR
56 + multilib_copy_sources
57 +}
58 +
59 +multilib_src_compile() {
60 + emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
61 + use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
62 +}
63 +
64 +multilib_src_test() {
65 + emake CFLAGS_DEBUG="${CFLAGS}" CFLAGS_FAST="${CFLAGS}" test
66 +}
67 +
68 +multilib_src_install() {
69 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
70 + use static-libs && dolib.a libhttp_parser.a
71 +}