commit:     0b05a57503d8991c1f6cc9d7d312f5b1591a021f
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 15 19:19:39 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Apr 15 19:19:39 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b05a575

net-libs/http-parser: Add live ebuild.

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 net-libs/http-parser/http-parser-99999.ebuild | 34 +++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/net-libs/http-parser/http-parser-99999.ebuild 
b/net-libs/http-parser/http-parser-99999.ebuild
new file mode 100644
index 00000000000..06a3f2fa0dc
--- /dev/null
+++ b/net-libs/http-parser/http-parser-99999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit git-r3 toolchain-funcs multilib-minimal
+
+DESCRIPTION="HTTP request/response parser for C"
+HOMEPAGE="https://github.com/nodejs/http-parser";
+EGIT_REPO_URI="https://github.com/nodejs/http-parser/";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="static-libs"
+
+src_prepare() {
+       default
+       tc-export CC AR
+       multilib_copy_sources
+}
+
+multilib_src_compile() {
+       emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" 
CFLAGS_FAST="${CFLAGS}" library
+       use static-libs && emake CFLAGS_FAST="${CFLAGS}" package
+}
+
+multilib_src_test() {
+       emake CFLAGS_DEBUG="${CFLAGS}" CFLAGS_FAST="${CFLAGS}" test
+}
+
+multilib_src_install() {
+       emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" 
LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
+       use static-libs && dolib.a libhttp_parser.a
+}

Reply via email to