/[gentoo-x86]/net-libs/libproxy/libproxy-0.4.11-r2.ebuild
Gentoo

Contents of /net-libs/libproxy/libproxy-0.4.11-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Wed Apr 8 18:04:58 2015 UTC (5 years, 7 months ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +3 -3 lines
Drop old Python implementations

(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: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.4.11-r2.ebuild,v 1.13 2014/11/29 15:03:07 dilfridge Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit cmake-multilib eutils flag-o-matic mono python-r1
9
10 DESCRIPTION="Library for automatic proxy configuration management"
11 HOMEPAGE="http://code.google.com/p/libproxy/"
12 SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
13
14 LICENSE="LGPL-2.1+"
15 SLOT="0"
16 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
17 IUSE="gnome kde mono networkmanager perl python spidermonkey test webkit"
18
19 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
20
21 # NOTE: mozjs/spidermonkey might still cause problems like #373397 ?
22 # NOTE: webkit-gtk:3, not :2, needed for libjavascriptcoregtk support
23 RDEPEND="gnome? ( >=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}] )
24 kde? ( >=kde-base/kdelibs-4.4.5 )
25 mono? ( dev-lang/mono )
26 networkmanager? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
27 perl? ( dev-lang/perl:= )
28 python? ( ${PYTHON_DEPS} )
29 spidermonkey? ( >=dev-lang/spidermonkey-1.8.5:0= )
30 webkit? ( >=net-libs/webkit-gtk-1.6:3= )"
31 DEPEND="${RDEPEND}
32 kde? ( dev-util/automoc )
33 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
34 # avoid dependency loop, bug #467696
35 PDEPEND="networkmanager? ( net-misc/networkmanager )"
36
37 src_prepare() {
38 # Gentoo's spidermonkey doesn't set Version: in mozjs18[57].pc
39 epatch "${FILESDIR}/${P}-mozjs.pc.patch"
40
41 # get-pac-test freezes when run by the ebuild, succeeds when building
42 # manually; virtualx.eclass doesn't help :(
43 epatch "${FILESDIR}/${PN}-0.4.10-disable-pac-test.patch"
44
45 epatch "${FILESDIR}"/${P}-macosx.patch
46
47 # prevent dependency loop with networkmanager, libsoup, glib-networking; bug #467696
48 epatch "${FILESDIR}/${PN}-0.4.11-avoid-nm-build-dep.patch"
49 }
50
51 src_configure() {
52 [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
53
54 use python && python_setup
55 multilib-minimal_src_configure
56 }
57
58 multilib_src_configure() {
59 # WITH_VALA just copies the .vapi file over and needs no deps,
60 # hence always enable it unconditionally
61 local mycmakeargs=(
62 -DPERL_VENDORINSTALL=ON
63 -DCMAKE_C_FLAGS="${CFLAGS}"
64 -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
65 $(cmake-utils_use_with gnome GNOME3)
66 $(multilib_is_native_abi && cmake-utils_use_with kde KDE4 \
67 || echo -DWITH_KDE4=OFF)
68 $(multilib_is_native_abi && cmake-utils_use_with mono DOTNET \
69 || echo -DWITH_DOTNET=OFF)
70 $(cmake-utils_use_with networkmanager NM)
71 $(multilib_is_native_abi && cmake-utils_use_with perl PERL \
72 || echo -DWITH_PERL=OFF)
73 $(multilib_is_native_abi && cmake-utils_use_with python PYTHON \
74 || echo -DWITH_PYTHON=OFF)
75 $(multilib_is_native_abi && cmake-utils_use_with spidermonkey MOZJS \
76 || echo -DWITH_MOZJS=OFF)
77 $(multilib_is_native_abi && cmake-utils_use_with webkit WEBKIT \
78 || echo -DWITH_WEBKIT=OFF)
79 $(multilib_is_native_abi && cmake-utils_use_with webkit WEBKIT3 \
80 || echo -DWITH_WEBKIT3=OFF)
81 -DWITH_VALA=ON
82 $(cmake-utils_use test BUILD_TESTING)
83 )
84 cmake-utils_src_configure
85 }
86
87 multilib_src_install_all() {
88 DOCS="AUTHORS ChangeLog NEWS README"
89 einstalldocs
90
91 if use python; then
92 python_foreach_impl python_domodule bindings/python/libproxy.py || die
93 fi
94 }

  ViewVC Help
Powered by ViewVC 1.1.20