diff --git a/common/shlibs b/common/shlibs index 254b3ba82a..312d37925b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2041,3 +2041,4 @@ libkasten2core.so.2 okteta-4.14.2_1 libkasten2controllers.so.2 okteta-4.14.2_1 libkasten2okteta1gui.so.1 okteta-4.14.2_1 libkasten2okteta1core.so.1 okteta-4.14.2_1 +libhttp_parser.so.2.5.0 http-parser-2.5.0_1 diff --git a/srcpkgs/http-parser-devel b/srcpkgs/http-parser-devel new file mode 120000 index 0000000000..827128a62c --- /dev/null +++ b/srcpkgs/http-parser-devel @@ -0,0 +1 @@ +http-parser \ No newline at end of file diff --git a/srcpkgs/http-parser/patches/fix-destdir.diff b/srcpkgs/http-parser/patches/fix-destdir.diff new file mode 100644 index 0000000000..c084a21d59 --- /dev/null +++ b/srcpkgs/http-parser/patches/fix-destdir.diff @@ -0,0 +1,36 @@ +--- Makefile.orig 2015-05-12 09:32:01.346321752 +0200 ++++ Makefile 2015-05-12 09:33:29.063315187 +0200 +@@ -43,7 +43,7 @@ + LDFLAGS_LIB = $(LDFLAGS) -shared + + INSTALL ?= install +-PREFIX ?= $(DESTDIR)/usr/local ++PREFIX ?= /usr/local + LIBDIR = $(PREFIX)/lib + INCLUDEDIR = $(PREFIX)/include + +@@ -112,18 +112,18 @@ + + install: library + $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h +- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME) +- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so ++ $(INSTALL) -D $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME) ++ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so + + install-strip: library + $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h +- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME) +- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so ++ $(INSTALL) -D -s $(SONAME) $(DESTDIR)/$(LIBDIR)/$(SONAME) ++ ln -s $(DESTDIR)/$(LIBDIR)/$(SONAME) $(DESTDIR)/$(LIBDIR)/libhttp_parser.so + + uninstall: + rm $(INCLUDEDIR)/http_parser.h +- rm $(LIBDIR)/$(SONAME) +- rm $(LIBDIR)/libhttp_parser.so ++ rm $(DESTDIR)/$(LIBDIR)/$(SONAME) ++ rm $(DESTDIR)/$(LIBDIR)/libhttp_parser.so + + clean: + rm -f *.o *.a tags test test_fast test_g \ diff --git a/srcpkgs/http-parser/template b/srcpkgs/http-parser/template new file mode 100644 index 0000000000..a22dbacd89 --- /dev/null +++ b/srcpkgs/http-parser/template @@ -0,0 +1,27 @@ +# Template file for 'http-parser' +pkgname=http-parser +version=2.5.0 +revision=1 +build_style=gnu-makefile +short_desc="HTTP request/response parser for c" +maintainer="Enno Boland " +license="GPL-3" +homepage="https://github.com/joyent/http-parser" +distfiles="$homepage/archive/v${version}.tar.gz" +checksum=e3b4ba58f4e6ee5fbec781df020e5cb74c3a799a07f059e1e125127a0b801481 +make_build_target=library + +pre_install() { + vmkdir usr/lib/pkgconfig + vmkdir usr/include +} + +http-parser-devel_package() { + depends="$sourcepkg>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +}