/[gentoo-x86]/net-libs/pacparser/pacparser-1.3.1.ebuild
Gentoo

Contents of /net-libs/pacparser/pacparser-1.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Aug 4 17:19:05 2015 UTC (5 years, 3 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +6 -6 lines
Forcing -j1, not worth debugging for this package

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

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/pacparser/pacparser-1.3.1.ebuild,v 1.4 2015/04/08 18:04:58 mgorny Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_7,3_4} )
8
9 inherit eutils python-r1 multilib
10
11 DESCRIPTION="Library to parse proxy auto-config files"
12 HOMEPAGE="http://code.google.com/p/pacparser/"
13 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
14
15 LICENSE="LGPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
18 IUSE="doc python"
19
20 DEPEND="python? ( ${PYTHON_DEPS} )"
21 RDEPEND="${DEPEND}"
22 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
23
24 # spidermonkey-1.7.0 is bundled
25 # tested unbundling with spidermonkey-1.8* and 17
26 # failures : unbundling not worth
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${P}-makefile.patch
30 export NO_INTERNET=yes
31 }
32
33 src_compile() {
34 emake -j1 -C src
35 use python && python_foreach_impl emake -j1 -C src pymod
36 }
37
38 src_test() {
39 emake -j1 -C src testpactester
40 use python && emake -j1 -C src test-pymod
41 }
42
43 src_install() {
44 emake DESTDIR="${ED}" LIB_PREFIX="${ED}/usr/$(get_libdir)" -C src install
45 dodoc README
46 use python && python_foreach_impl \
47 emake DESTDIR="${D}" \
48 LIB_PREFIX="${D}/usr/$(get_libdir)" -C src install-pymod
49 use doc && emake DESTDIR="${ED}" \
50 DOC_PREFIX="${ED}/usr/share/doc/${PF}" -C src install-docs
51 # conflicts (bug #509168), and useless
52 rm "${ED}"/usr/share/man/man3/deprecated.3 || die
53 }

  ViewVC Help
Powered by ViewVC 1.1.20