1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 SONAME="libhttp_parser.so.${SONAMEVER}"
10 inherit eutils toolchain-funcs multilib multilib-minimal
12 DESCRIPTION="A parser for HTTP messages written in C. It parses both requests and responses"
13 HOMEPAGE="https://github.com/joyent/http-parser"
14 SRC_URI="https://github.com/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 KEYWORDS="amd64 ~arm ppc x86"
23 epatch "${FILESDIR}"/${P}-flags.patch
27 multilib_src_compile() {
29 use static-libs && emake package
32 multilib_src_install() {
33 doheader http_parser.h
35 dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
36 use static-libs && dolib.a libhttp_parser.a
39 multilib_src_install_all() {