/[gentoo-x86]/net-libs/http-parser/http-parser-2.4.2.ebuild
Gentoo

Contents of /net-libs/http-parser/http-parser-2.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Mar 28 21:55:40 2015 UTC (5 years, 8 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Proxy commit for Johan Bergström. Version bump.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/http-parser/http-parser-2.4.1.ebuild,v 1.1 2015/01/23 00:25:43 mrueg Exp $
4
5 EAPI=5
6
7 SONAME="libhttp_parser.so.${PV}"
8
9 inherit eutils toolchain-funcs multilib multilib-minimal
10
11 DESCRIPTION="http request/response parser for c"
12 HOMEPAGE="https://github.com/joyent/http-parser"
13 SRC_URI="https://github.com/joyent/http-parser/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14
15 LICENSE="MIT"
16 SLOT="0/${PV}"
17 KEYWORDS="~amd64 ~arm ~ppc ~x86"
18 IUSE="static-libs"
19
20 src_prepare() {
21
22 sed -i -e 's: -Werror::' \
23 -e 's:-O3 ::' \
24 Makefile || die
25 tc-export CC AR
26 multilib_copy_sources
27 }
28
29 multilib_src_compile() {
30 emake library
31 use static-libs && emake package
32 }
33
34 multilib_src_install() {
35 doheader http_parser.h
36 dolib.so ${SONAME}
37 dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
38 use static-libs && dolib.a libhttp_parser.a
39 }
40
41 multilib_src_install_all() {
42 dodoc README.md
43 }

  ViewVC Help
Powered by ViewVC 1.1.20