blob: 1d77d872a5599b5a4dafb04c4809f85741c957dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
}
|