From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1017828-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 6AD661382C5
	for <garchives@archives.gentoo.org>; Sun, 15 Apr 2018 19:19:55 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6BDE7E0822;
	Sun, 15 Apr 2018 19:19:54 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 44F2FE0822
	for <gentoo-commits@lists.gentoo.org>; Sun, 15 Apr 2018 19:19:54 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 4F4F2335C7D
	for <gentoo-commits@lists.gentoo.org>; Sun, 15 Apr 2018 19:19:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A83D2257
	for <gentoo-commits@lists.gentoo.org>; Sun, 15 Apr 2018 19:19:51 +0000 (UTC)
From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" <jer@gentoo.org>
Message-ID: <1523819979.0b05a57503d8991c1f6cc9d7d312f5b1591a021f.jer@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/http-parser/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-libs/http-parser/http-parser-99999.ebuild
X-VCS-Directories: net-libs/http-parser/
X-VCS-Committer: jer
X-VCS-Committer-Name: Jeroen Roovers
X-VCS-Revision: 0b05a57503d8991c1f6cc9d7d312f5b1591a021f
X-VCS-Branch: master
Date: Sun, 15 Apr 2018 19:19:51 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: ce05a1cb-aa3e-4e12-8181-fbcfcbc301a9
X-Archives-Hash: 7719bb3d3e27d36e7863cc4d7817fb28

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
+}