diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-06-30 20:27:35 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-06-30 20:27:35 +0000 |
commit | ebd34b877286b22bf91a528b1be82fd5dbb7c652 (patch) | |
tree | 98843c19cb917a82bcfd866f7eefd7481dd7c842 /net-libs/http-parser | |
parent | initial import wrt #410339 (diff) | |
download | historical-ebd34b877286b22bf91a528b1be82fd5dbb7c652.tar.gz historical-ebd34b877286b22bf91a528b1be82fd5dbb7c652.tar.bz2 historical-ebd34b877286b22bf91a528b1be82fd5dbb7c652.zip |
initial import wrt #410339
Package-Manager: portage-2.2.0_alpha185/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'net-libs/http-parser')
-rw-r--r-- | net-libs/http-parser/Manifest | 18 | ||||
-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 |
4 files changed, 87 insertions, 2 deletions
diff --git a/net-libs/http-parser/Manifest b/net-libs/http-parser/Manifest index 027e3aeaeab0..b81371b11a8e 100644 --- a/net-libs/http-parser/Manifest +++ b/net-libs/http-parser/Manifest @@ -1,5 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + 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 +EBUILD http-parser-2.1.ebuild 752 SHA256 86071c5589f0a591219e95322f56479653136ef80e9772a85185ced55735a5fe SHA512 17a51fcde32dd9c12a4eb5bd347838f579025996f3829d8cfb93168d50ae4d5065dfc5fd3c658fac7337050a326f735f2ad62e6a56a6f71e861e115426754106 WHIRLPOOL 5a125f8427da991ce6173aea58b4907e08a17379b3022999b14be9096ff35e24699f686464b76f8083d6ddb4a03a13a047442ad5e8984d186464ccef655c73d2 +MISC ChangeLog 406 SHA256 92e906440a8bb6a653c0fe282bc7560553b4f18d05ab6a3bb1238ed1764953d5 SHA512 a35155dc37d93c41ade2edfb379bb78897affde74cad7b5cd72143a89ea0a5ccd61ebc7f6ce71d1f742987d2fba63cb4053ee9db3d5bb4e82de7ff7165251a0c WHIRLPOOL 204988bef2c77e6e49778014870bbf3acfb092194b2bdc1f930685104e8bffc0e5a8a5747374e5d5bc498f8397c3c66e022bab636f068aa75e977aa27990931c MISC metadata.xml 234 SHA256 c4cff9874b0aee51bf55a8619e709beb39e4e479e0dfe494e5733fe3fccb644e SHA512 86d9726cc7afc9dae93786d092a32fc954bf376994c24beca21d95dceb3cdbeaa573c3a252acaf85c8d1a7a2b783b5b70f7d73935db8cccfd6725e218f94fdc6 WHIRLPOOL 4a587d464123e0cf60f725b499b0403c9a482e33cc38d545a24f16c9b73464ded264366e426eac9c8fbc6b1d5294da6573811357bf415995c38fdc0887fa77df +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.20 (GNU/Linux) + +iQEcBAEBCAAGBQJR0JS3AAoJEFpvPKfnPDWzNJwIALQETtmbX4QIy9taptOimKac +4CC6cIcWADW17Yz1F4ThMev0XdLwhg9L+NucLT8L+e4+Ofw7FHBi/fvihpxtFpbw +GkGHbe2t8J/WC+G+4WJ8UWzk2hyzaw8LYLBbgLgseJppWvd0a01oslAnFoPIyIEQ +n8sIePE4DhuFTs97YATyv6b62UCGk2oYovCkKG8rZNg6hRPYvMbjP9BnC1qrsIHL +CRbAPs2S183oTZNnvORezM1dFPfBCKmBmetpFnn0JcQFfHgdURr8nQF8v+tnpy+O +/i80eWLEIqur81P3s55JyZsBHyGk1ZmIqwySOz9V+UoOWqO2Es8p4GGVzqEVYc4= +=2JrN +-----END PGP SIGNATURE----- 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> |