diff options
Diffstat (limited to 'net-libs/http-parser/http-parser-1.0_pre20120413.ebuild')
-rw-r--r-- | net-libs/http-parser/http-parser-1.0_pre20120413.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net-libs/http-parser/http-parser-1.0_pre20120413.ebuild b/net-libs/http-parser/http-parser-1.0_pre20120413.ebuild new file mode 100644 index 000000000..1d77d872a --- /dev/null +++ b/net-libs/http-parser/http-parser-1.0_pre20120413.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit eutils multilib 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/downloads/hasufell/tinkerbox/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + # fix SONAME/LDFLAGS + epatch "${FILESDIR}"/20120413-makefile.patch +} + +src_compile() { + tc-export CC + emake library +} + +src_install() { + insinto /usr/include/${PN} + doins http_parser.h + newlib.so libhttp_parser.so libhttp_parser.so.1.0 + dosym libhttp_parser.so.1.0 /usr/$(get_libdir)/libhttp_parser.so.1 + dosym libhttp_parser.so.1.0 /usr/$(get_libdir)/libhttp_parser.so + + newdoc README.md README +} |