From 5b54ce9c2974c99ecffae6b992e61958d35870df Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 21 Jun 2014 09:54:24 +0000 Subject: version bump wrt #514154 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020) --- net-libs/http-parser/ChangeLog | 10 ++++-- .../http-parser/files/http-parser-2.3-flags.patch | 32 ++++++++++++++++++ net-libs/http-parser/http-parser-2.3.ebuild | 39 ++++++++++++++++++++++ 3 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 net-libs/http-parser/files/http-parser-2.3-flags.patch create mode 100644 net-libs/http-parser/http-parser-2.3.ebuild (limited to 'net-libs/http-parser') diff --git a/net-libs/http-parser/ChangeLog b/net-libs/http-parser/ChangeLog index ab82fb3aab38..a7750b00e0b8 100644 --- a/net-libs/http-parser/ChangeLog +++ b/net-libs/http-parser/ChangeLog @@ -1,6 +1,12 @@ # 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.3 2013/09/05 19:23:27 ago Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/http-parser/ChangeLog,v 1.4 2014/06/21 09:54:24 hasufell Exp $ + +*http-parser-2.3 (21 Jun 2014) + + 21 Jun 2014; Julian Ospald +http-parser-2.3.ebuild, + +files/http-parser-2.3-flags.patch: + version bump wrt #514154 05 Sep 2013; Agostino Sarubbo http-parser-2.1.ebuild: Stable for x86, wrt bug #482608 diff --git a/net-libs/http-parser/files/http-parser-2.3-flags.patch b/net-libs/http-parser/files/http-parser-2.3-flags.patch new file mode 100644 index 000000000000..3dc9b3305ad7 --- /dev/null +++ b/net-libs/http-parser/files/http-parser-2.3-flags.patch @@ -0,0 +1,32 @@ +commit 3752e633e23284133decc8ca8481e4416a317fbc +Author: hasufell +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) $(LDFLAGS_LIB) -o $(SONAME) $< ++ $(CC) $(CFLAGS) $(LDFLAGS_LIB) -o $(SONAME) $< + + package: http_parser.o + $(AR) rcs libhttp_parser.a http_parser.o diff --git a/net-libs/http-parser/http-parser-2.3.ebuild b/net-libs/http-parser/http-parser-2.3.ebuild new file mode 100644 index 000000000000..0dbb1f62e0ac --- /dev/null +++ b/net-libs/http-parser/http-parser-2.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 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.3.ebuild,v 1.1 2014/06/21 09:54:24 hasufell Exp $ + +EAPI=5 + +SONAMEVER="2.3" +SONAME="libhttp_parser.so.${SONAMEVER}" + +inherit eutils toolchain-funcs multilib multilib-minimal + +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/${SONAMEVER}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + tc-export CC + epatch "${FILESDIR}"/${P}-flags.patch + multilib_copy_sources +} + +multilib_src_compile() { + emake library +} + +multilib_src_install() { + doheader http_parser.h + dolib.so ${SONAME} + dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so +} + +multilib_src_install_all() { + dodoc README.md +} -- cgit v1.2.3-65-gdbad