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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon May 11 16:40:31 2015 UTC (5 years, 6 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Version bump. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/109 by jbergstroem.

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

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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 sed -i -e 's: -Werror::' \
22 -e 's:-O3 ::' \
23 Makefile || die
24 tc-export CC AR
25 multilib_copy_sources
26 }
27
28 multilib_src_compile() {
29 emake library
30 use static-libs && emake package
31 }
32
33 multilib_src_install() {
34 doheader http_parser.h
35 dolib.so ${SONAME}
36 dosym ${SONAME} /usr/$(get_libdir)/libhttp_parser.so
37 use static-libs && dolib.a libhttp_parser.a
38 }
39
40 multilib_src_install_all() {
41 dodoc README.md
42 }

  ViewVC Help
Powered by ViewVC 1.1.20