diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-06-30 20:27:32 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-06-30 20:27:32 +0000 |
commit | 1db4d0532a27540f3cf19788af7e7abbd9c96360 (patch) | |
tree | ed5047dfae801b796cd1a6ba076266f87f70dde7 /net-libs/http-parser | |
parent | Stable for x86, wrt bug #470544 (diff) | |
download | gentoo-2-1db4d0532a27540f3cf19788af7e7abbd9c96360.tar.gz gentoo-2-1db4d0532a27540f3cf19788af7e7abbd9c96360.tar.bz2 gentoo-2-1db4d0532a27540f3cf19788af7e7abbd9c96360.zip |
initial import wrt #410339
(Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'net-libs/http-parser')
-rw-r--r-- | net-libs/http-parser/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/http-parser/Manifest | 5 | ||||
-rw-r--r-- | net-libs/http-parser/files/http-parser-2.1-flags.patch | 32 | ||||
-rw-r--r-- | net-libs/http-parser/http-parser-2.1.ebuild | 31 | ||||
-rw-r--r-- | net-libs/http-parser/metadata.xml | 8 |
5 files changed, 86 insertions, 0 deletions
diff --git a/net-libs/http-parser/ChangeLog b/net-libs/http-parser/ChangeLog new file mode 100644 index 000000000000..f067334a737d --- /dev/null +++ b/net-libs/http-parser/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-libs/http-parser +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/http-parser/ChangeLog,v 1.1 2013/06/30 20:27:31 hasufell Exp $ + +*http-parser-2.1 (30 Jun 2013) + + 30 Jun 2013; Julian Ospald <hasufell@gentoo.org> +http-parser-2.1.ebuild, + +files/http-parser-2.1-flags.patch, +metadata.xml: + initial import wrt #410339 + diff --git a/net-libs/http-parser/Manifest b/net-libs/http-parser/Manifest new file mode 100644 index 000000000000..027e3aeaeab0 --- /dev/null +++ b/net-libs/http-parser/Manifest @@ -0,0 +1,5 @@ +AUX http-parser-2.1-flags.patch 1093 SHA256 b3dd9c2e0e6aaf83635b067b0fa29aa7dbb25476c91b3609ec738333a175e86e SHA512 4ac7b6380d7123b071d6aa4dfe5b2b8e3eb7d3d3c85b2e576b28d1d3c7d9959679105fc8f9c6921f770784eb136e1f6b7b8ae94794cc4b6efc856db461bd9e12 WHIRLPOOL 77dd32aa582598817ab9467e947598324e3b25251aa69a8ea2e8aee0b4424664fe8ef87fe33d31c5da0e4c8925295b6c33920ffb94b6a582c11db8af6a6d9c03 +DIST http-parser-2.1.tar.gz 40505 SHA256 0504690029080771a85423cdd9a55008d38f5bbc3333ec8a507589477ee14299 SHA512 6d4734f8ac1efd301d95e816190b3a9c791c533dfc7c391857cceb8638e317865958be6fd99f7b1dccec0db92c3a053da7e6e9161c753ce2c2763295f943a927 WHIRLPOOL bd387a462db079fd1c1baaa21d78b7d2404a01a8e2599f1c268591303b6e540c11c0069afc4463661514bb2bf89fe72dfeb7a93a86bec607ae4636c9b62afc84 +EBUILD http-parser-2.1.ebuild 645 SHA256 d6c3b58c9a96843ff46a818c9b54490b87d7a41c30d2e5afce4a6653131f6199 SHA512 b2e8b9f9556d746cff8be10b7960884715b86db6baee00ba11f6dc25b75728e9d1e7bd0c4b27a208dfd7eb091c48214cdebb307281e612799d7fda9f421ebb7d WHIRLPOOL 279a18cc11c94f823e76a94f3c2e5bbfcb647d222a2d67cd3f25d1ff16b6d8f4c111c8e82162014437ac4b0cfa25187c40329ad7998bad6288971f73d7f7fd4c +MISC ChangeLog 312 SHA256 b68b3953aea58d6f3608b0c2d4e66826ca9e7ffffa20da605bb13b6ec6f4100d SHA512 fb19dfe680e58b2588741cf5f78a9da202924d64e6c9104466f330156190894888097f03d16d47242264551699098395c2da3909e217c09cee89ec8545215b56 WHIRLPOOL 19556790d6c90abce6b6ab2d437bfcd2a7123b3d3388fb9c87782f762d1f57c95b4738d56db3fe476fe959ceb2deba344d2f0b10435edd9bb5b43d2de4a713f4 +MISC metadata.xml 234 SHA256 c4cff9874b0aee51bf55a8619e709beb39e4e479e0dfe494e5733fe3fccb644e SHA512 86d9726cc7afc9dae93786d092a32fc954bf376994c24beca21d95dceb3cdbeaa573c3a252acaf85c8d1a7a2b783b5b70f7d73935db8cccfd6725e218f94fdc6 WHIRLPOOL 4a587d464123e0cf60f725b499b0403c9a482e33cc38d545a24f16c9b73464ded264366e426eac9c8fbc6b1d5294da6573811357bf415995c38fdc0887fa77df diff --git a/net-libs/http-parser/files/http-parser-2.1-flags.patch b/net-libs/http-parser/files/http-parser-2.1-flags.patch new file mode 100644 index 000000000000..fe9a59369c15 --- /dev/null +++ b/net-libs/http-parser/files/http-parser-2.1-flags.patch @@ -0,0 +1,32 @@ +commit 3752e633e23284133decc8ca8481e4416a317fbc +Author: hasufell <hasufell@gentoo.org> +Date: Sun Jun 30 12:27:04 2013 +0200 + + respect system flags + +diff --git a/Makefile b/Makefile +index 64e5c2f..2e20723 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,9 +7,9 @@ CPPFLAGS_DEBUG += $(CPPFLAGS_DEBUG_EXTRA) + CPPFLAGS_FAST = $(CPPFLAGS) -DHTTP_PARSER_STRICT=0 + CPPFLAGS_FAST += $(CPPFLAGS_FAST_EXTRA) + +-CFLAGS += -Wall -Wextra -Werror +-CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA) +-CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA) ++CFLAGS += -Wall -Wextra ++CFLAGS_DEBUG = $(CFLAGS) $(CFLAGS_DEBUG_EXTRA) ++CFLAGS_FAST = $(CFLAGS) $(CFLAGS_FAST_EXTRA) + CFLAGS_LIB = $(CFLAGS_FAST) -fPIC + + test: test_g test_fast +@@ -44,7 +44,7 @@ libhttp_parser.o: http_parser.c http_parser.h Makefile + $(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o + + library: libhttp_parser.o +- $(CC) -shared -o libhttp_parser.so libhttp_parser.o ++ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o libhttp_parser.so libhttp_parser.o + + package: http_parser.o + $(AR) rcs libhttp_parser.a http_parser.o diff --git a/net-libs/http-parser/http-parser-2.1.ebuild b/net-libs/http-parser/http-parser-2.1.ebuild new file mode 100644 index 000000000000..1d62dff897f8 --- /dev/null +++ b/net-libs/http-parser/http-parser-2.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2013 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.1.ebuild,v 1.1 2013/06/30 20:27:31 hasufell Exp $ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="A parser for HTTP messages written in C. It parses both requests and responses" +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" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch +} + +src_compile() { + tc-export CC + emake library +} + +src_install() { + doheader http_parser.h + dolib.so libhttp_parser.so + newdoc README.md README +} diff --git a/net-libs/http-parser/metadata.xml b/net-libs/http-parser/metadata.xml new file mode 100644 index 000000000000..a309a9b4706a --- /dev/null +++ b/net-libs/http-parser/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> +</pkgmetadata> |