http-parser: import latest version from Gentoo
BUG=none
TEST=emerge-{arm,x86,amd64}-generic net-libs/http-parser
Change-Id: I5f52a0e276e0dcf87b6937c5bedf91facda1a9f8
Reviewed-on: https://chromium-review.googlesource.com/249720
Reviewed-by: Stefan Sauer <ensonic@google.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Paul McClave <pmcclave@chromium.org>
Tested-by: Paul McClave <pmcclave@chromium.org>
diff --git a/metadata/md5-cache/net-libs/http-parser-2.4.1 b/metadata/md5-cache/net-libs/http-parser-2.4.1
new file mode 100644
index 0000000..b4aa039
--- /dev/null
+++ b/metadata/md5-cache/net-libs/http-parser-2.4.1
@@ -0,0 +1,11 @@
+DEFINED_PHASES=compile configure install prepare test
+DESCRIPTION=http request/response parser for c
+EAPI=5
+HOMEPAGE=https://github.com/joyent/http-parser
+IUSE=static-libs abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
+KEYWORDS=*
+LICENSE=MIT
+SLOT=0/2.4.1
+SRC_URI=https://github.com/joyent/http-parser/archive/v2.4.1.tar.gz -> http-parser-2.4.1.tar.gz
+_eclasses_=eutils 06133990e861be0fe60c2b428fd025d9 multibuild 46527a4656956da3d58acff72c9b59b1 multilib 3bf24e6abb9b76d9f6c20600f0b716bf multilib-build 9eb4b5fb858228316d8bb32ada51f6a5 multilib-minimal 5bbdc77877c1aa3c6bd89ca3f9196d11 multiprocessing d7f2985a2c76c365ee20269db5261414 toolchain-funcs 48b38a216afb92db6314d6c3187abea3
+_md5_=7b073c1ee9e420f727db1fea1c98a08c
diff --git a/net-libs/http-parser/Manifest b/net-libs/http-parser/Manifest
new file mode 100644
index 0000000..9658477
--- /dev/null
+++ b/net-libs/http-parser/Manifest
@@ -0,0 +1 @@
+DIST http-parser-2.4.1.tar.gz 44724 SHA256 4a2597c37b874ce46b30764960d158d18cae2b4cd46458ce3cad98aa106427c9 SHA512 f56b84f0af57cefa46daa10ac2e7b3015c185fa4c55615efa33f9131871a980b5c06ffad1699302ebe847c9325b41403520e0ef4d34bf5f6c48c6edabf1f4cb8 WHIRLPOOL 1873e97df046b10ed7a7da9ad3ba43055634af230b0b4391a8a814bb00455f8864ead809ba2555715e63b9a74202287b2a3c68ced884edf152e794bf70a0cfeb
diff --git a/net-libs/http-parser/http-parser-2.4.1.ebuild b/net-libs/http-parser/http-parser-2.4.1.ebuild
new file mode 100644
index 0000000..43d33bb
--- /dev/null
+++ b/net-libs/http-parser/http-parser-2.4.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/http-parser/http-parser-2.4.1.ebuild,v 1.1 2015/01/23 00:25:43 mrueg Exp $
+
+EAPI=5
+
+SONAME="libhttp_parser.so.${PV}"
+
+inherit eutils toolchain-funcs multilib multilib-minimal
+
+DESCRIPTION="http request/response parser for c"
+HOMEPAGE="https://github.com/joyent/http-parser"
+SRC_URI="https://github.com/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="*"
+IUSE="static-libs"
+
+src_prepare() {
+
+ sed -i -e 's: -Werror::' \
+ -e 's:-O3 ::' \
+ Makefile || die
+ tc-export CC AR
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ emake library
+ use static-libs && emake package
+}
+
+multilib_src_install() {
+ doheader http_parser.h
+ dolib.so ${SONAME}
+ dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
+ use static-libs && dolib.a libhttp_parser.a
+}
+
+multilib_src_install_all() {
+ dodoc README.md
+}
diff --git a/net-libs/http-parser/metadata.xml b/net-libs/http-parser/metadata.xml
new file mode 100644
index 0000000..62e5578
--- /dev/null
+++ b/net-libs/http-parser/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>bugs@bergstroem.nu</email>
+ <name>Johan Bergström</name>
+ <description>Proxied Maintainer</description>
+ </maintainer>
+</pkgmetadata>