diff options
author | Kacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com> | 2012-04-30 12:32:25 +0200 |
---|---|---|
committer | Kacper Kowalik (Xarthisius) <xarthisius.kk@gmail.com> | 2012-04-30 12:32:25 +0200 |
commit | 5a29793058c13aff7aa60fea6fe47e3dd66e77b0 (patch) | |
tree | d00a93c0f1210709ce6ae904d3374c484c17c860 /net-libs/libproxy/libproxy-0.4.7.ebuild | |
parent | [x11-misc/e-pity] update manifest as upstream silently changed sources (diff) | |
download | xarthisius-5a29793058c13aff7aa60fea6fe47e3dd66e77b0.tar.gz xarthisius-5a29793058c13aff7aa60fea6fe47e3dd66e77b0.tar.bz2 xarthisius-5a29793058c13aff7aa60fea6fe47e3dd66e77b0.zip |
[net-libs/libproxy] fix for gcc-4.7
Diffstat (limited to 'net-libs/libproxy/libproxy-0.4.7.ebuild')
-rw-r--r-- | net-libs/libproxy/libproxy-0.4.7.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/net-libs/libproxy/libproxy-0.4.7.ebuild b/net-libs/libproxy/libproxy-0.4.7.ebuild new file mode 100644 index 0000000..9e144d3 --- /dev/null +++ b/net-libs/libproxy/libproxy-0.4.7.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/libproxy/libproxy-0.4.7.ebuild,v 1.9 2012/02/01 02:00:47 ssuominen Exp $ + +EAPI=4 +PYTHON_DEPEND="python? 2:2.6" + +inherit cmake-utils mono python + +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 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-linux" +IUSE="gnome kde mono networkmanager perl python test" + +# FIXME: Disable webkit support due problems like bug #366791 +# FIXME: Also disable xulrunner support due bug #360893, will be readded +# in the future when only spidermonkey mozjs is provided. +# NOTE: USE=xulrunner also causes problems like bug 373397, re-add carefully. + +RDEPEND="gnome? ( >=dev-libs/glib-2.26:2 ) + kde? ( >=kde-base/kdelibs-4.4.5 ) + mono? ( dev-lang/mono ) + networkmanager? ( net-misc/networkmanager ) + perl? ( dev-lang/perl )" +# xulrunner? ( >=net-libs/xulrunner-1.9.1:1.9 ) +# webkit? ( net-libs/webkit-gtk:2 ) +# Since 0.4.7, webkit gtk3 support is also available +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-gcc47.patch ) + +pkg_setup() { + DOCS="AUTHORS ChangeLog NEWS README" + + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_configure() { + # WITH_VALA just copies the .vapi file over and needs no deps, + # hence always enable it unconditionally + local mycmakeargs=( + -DPERL_VENDORINSTALL=ON + -DCMAKE_C_FLAGS="${CFLAGS}" + -DCMAKE_CXX_FLAGS="${CXXFLAGS}" + $(cmake-utils_use_with gnome GNOME) + $(cmake-utils_use_with gnome GNOME3) + $(cmake-utils_use_with kde KDE4) + $(cmake-utils_use_with mono DOTNET) + $(cmake-utils_use_with networkmanager NM) + $(cmake-utils_use_with perl PERL) + $(cmake-utils_use_with python PYTHON) + -DWITH_VALA=ON + -DWITH_WEBKIT=OFF + -DWITH_WEBKIT3=OFF + -DWITH_MOZJS=OFF + $(cmake-utils_use test BUILD_TESTING) + ) + #$(cmake-utils_use_with webkit WEBKIT) + #$(cmake-utils_use_with xulrunner MOZJS) + cmake-utils_src_configure +} + +pkg_postinst() { + use python && python_mod_optimize ${PN}.py +} + +pkg_postrm() { + use python && python_mod_cleanup ${PN}.py +} |