blob: 579d0535e034a6bdbd1104b601b2b6847f728703 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.2.3-r1.ebuild,v 1.2 2009/06/24 15:43:08 nirbheek Exp $
EAPI="2"
inherit autotools eutils python portability
DESCRIPTION="Library for automatic proxy configuration management"
HOMEPAGE="http://code.google.com/p/libproxy/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="gnome kde networkmanager python webkit xulrunner"
RDEPEND="
gnome? (
x11-libs/libX11
x11-libs/libXmu
gnome-base/gconf )
kde? (
x11-libs/libX11
x11-libs/libXmu )
networkmanager? ( net-misc/networkmanager )
python? ( >=dev-lang/python-2.5 )
webkit? ( net-libs/webkit-gtk )
xulrunner? (
|| ( >=net-libs/xulrunner-1.9
www-client/seamonkey ) )
"
DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.19"
src_prepare() {
# http://code.google.com/p/libproxy/issues/detail?id=23
epatch "${FILESDIR}/${P}-fix-dbus-includes.patch"
# http://code.google.com/p/libproxy/issues/detail?id=24
epatch "${FILESDIR}/${P}-fix-python-automagic.patch"
# http://code.google.com/p/libproxy/issues/detail?id=25
epatch "${FILESDIR}/${P}-fix-as-needed-problem.patch"
# http://bugs.gentoo.org/show_bug.cgi?id=275127
epatch "${FILESDIR}/${P}-fix-mozjs-cflags.patch"
# Fix implicit declaration QA, bug #268546
epatch "${FILESDIR}/${P}-implicit-declaration.patch"
epatch "${FILESDIR}/${P}-fbsd.patch" # drop at next bump
# Fix test to follow POSIX (for x86-fbsd)
sed -e 's/\(test.*\)==/\1=/g' -i configure.ac configure || die "sed failed"
eautoreconf
}
src_configure() {
econf --with-envvar \
--with-file \
--disable-static \
$(use_with gnome) \
$(use_with kde) \
$(use_with webkit) \
$(use_with xulrunner mozjs) \
$(use_with networkmanager) \
$(use_with python)
}
src_compile() {
emake LIBDL="$(dlopen_lib)" || die
}
src_install() {
emake DESTDIR="${D}" LIBDL="$(dlopen_lib)" install || die "emake install failed!"
dodoc AUTHORS NEWS README ChangeLog || die "dodoc failed"
}
pkg_postinst() {
if use python; then
python_need_rebuild
python_mod_optimize "$(python_get_sitedir)/${PN}.py"
fi
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/${PN}.py
}
|