blob: 31cf5870982e6d5280f0d063e26e5d0da813327d (
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
|
# Copyright 1999-2013 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.1.ebuild,v 1.3 2013/09/05 19:23:27 ago Exp $
EAPI=5
inherit eutils 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/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
src_prepare() {
epatch "${FILESDIR}"/${P}-flags.patch
}
src_compile() {
tc-export CC
emake library
}
src_install() {
doheader http_parser.h
dolib.so libhttp_parser.so
newdoc README.md README
}
|