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: Sat, 24 Feb 2018 10:54:13
Message-Id: 1519469636.429b54c1d64af6365d79e1cfedd1646bdd45a7b1.jer@gentoo
1 commit: 429b54c1d64af6365d79e1cfedd1646bdd45a7b1
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 24 09:25:44 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 24 10:53:56 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=429b54c1
7
8 net-libs/http-parser: Version 2.8.0.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 net-libs/http-parser/Manifest | 1 +
13 net-libs/http-parser/http-parser-2.8.0.ebuild | 35 +++++++++++++++++++++++++++
14 2 files changed, 36 insertions(+)
15
16 diff --git a/net-libs/http-parser/Manifest b/net-libs/http-parser/Manifest
17 index 9a2b0251ca7..eaa657e9afd 100644
18 --- a/net-libs/http-parser/Manifest
19 +++ b/net-libs/http-parser/Manifest
20 @@ -1,2 +1,3 @@
21 DIST http-parser-2.6.2.tar.gz 48292 BLAKE2B 054ffa66960bad29a31e1a697a035447eb551fb85ed2af3786664f161d8d5a62aad8142ce859b7f1af85489b703b188d09980bf82b56cb190c21ecbe9c3a2f5c SHA512 e19e5377b3eb7f149c428196826fb878564fdfa3716ff6df5a3845c51586aee0582e252e09d1f8ebad1163b3e66632ff0c6e78f6acb2f0da20d7a06e734406c1
22 DIST http-parser-2.7.1.tar.gz 48578 BLAKE2B dcf67172b4b975543ca3b51bfce2b03f2b9b2dcc8c774322dfe41dd53a942f70f8f69cf69221ba76da249b22d6bee0aab6e6d887ea0a5e0f7350fa21c4091efb SHA512 c0fe86455db1a563a5c668f118dfa9a27b9a637ee1c0e2f2f18a5b816352436ed90435ea978e3f3d85b037d3c630234e47d609dc3b7086b898286c4e54d9f031
23 +DIST http-parser-2.8.0.tar.gz 50575 BLAKE2B 0ea1973b452b62915ad2a92be95e09281c1aa2f152ff4a67580e99ab113b44544f98b2e33fa1fadb259144975f15dc69c8b0ecc9de59e603dbd0e0a0785b7976 SHA512 57252a29b75f91452fd9bf2d3805bf1ddd95c32aee864cbe47dc676861512b9db95a7b3a4e1b999d5c046ab0d50809e7f184994c24ad48fe97cc2bcc27d9eb7b
24
25 diff --git a/net-libs/http-parser/http-parser-2.8.0.ebuild b/net-libs/http-parser/http-parser-2.8.0.ebuild
26 new file mode 100644
27 index 00000000000..78862ca4b21
28 --- /dev/null
29 +++ b/net-libs/http-parser/http-parser-2.8.0.ebuild
30 @@ -0,0 +1,35 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit toolchain-funcs multilib-minimal
37 +
38 +DESCRIPTION="Http request/response parser for C"
39 +HOMEPAGE="https://github.com/nodejs/http-parser"
40 +SRC_URI="https://github.com/nodejs/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0/${PV}"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos ~x64-solaris"
45 +IUSE="static-libs"
46 +
47 +src_prepare() {
48 + default
49 + tc-export CC AR
50 + multilib_copy_sources
51 +}
52 +
53 +multilib_src_compile() {
54 + emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" CFLAGS_FAST="${CFLAGS}" library
55 + use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
56 +}
57 +
58 +multilib_src_test() {
59 + emake CFLAGS_DEBUG="${CFLAGS}" CFLAGS_FAST="${CFLAGS}" test
60 +}
61 +
62 +multilib_src_install() {
63 + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
64 + use static-libs && dolib.a libhttp_parser.a
65 +}