2014-06-08 17:12:05 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-08-24 22:17:05 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-libs/glib-networking/glib-networking-2.40.1-r1.ebuild,v 1.9 2014/08/23 15:33:29 ago Exp $
|
2014-06-08 17:12:05 +04:00
|
|
|
|
|
|
|
EAPI="5"
|
|
|
|
GCONF_DEBUG="no"
|
|
|
|
GNOME2_LA_PUNT="yes"
|
|
|
|
|
|
|
|
inherit autotools eutils gnome2 multilib-minimal virtualx
|
|
|
|
|
|
|
|
DESCRIPTION="Network-related giomodules for glib"
|
|
|
|
HOMEPAGE="http://git.gnome.org/browse/glib-networking/"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2+"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="+gnome +libproxy smartcard +ssl test"
|
2014-08-24 22:17:05 +04:00
|
|
|
KEYWORDS="~alpha amd64 ~arm arm64 hppa ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
2014-06-08 17:12:05 +04:00
|
|
|
|
|
|
|
RDEPEND="
|
2014-06-19 11:09:26 +04:00
|
|
|
>=dev-libs/glib-2.40.0-r1:2[${MULTILIB_USEDEP}]
|
2014-06-08 17:12:05 +04:00
|
|
|
gnome? ( gnome-base/gsettings-desktop-schemas )
|
2014-06-19 11:09:26 +04:00
|
|
|
libproxy? ( >=net-libs/libproxy-0.4.11-r1:=[${MULTILIB_USEDEP}] )
|
2014-06-08 17:12:05 +04:00
|
|
|
smartcard? (
|
2014-06-19 11:09:26 +04:00
|
|
|
>=app-crypt/p11-kit-0.18.4[${MULTILIB_USEDEP}]
|
|
|
|
>=net-libs/gnutls-2.12.23-r6:=[pkcs11,${MULTILIB_USEDEP}] )
|
2014-06-08 17:12:05 +04:00
|
|
|
ssl? (
|
|
|
|
app-misc/ca-certificates
|
2014-06-19 11:09:26 +04:00
|
|
|
>=net-libs/gnutls-2.12.23-r6:=[${MULTILIB_USEDEP}] )
|
2014-06-08 17:12:05 +04:00
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
>=dev-util/intltool-0.35.0
|
|
|
|
sys-devel/gettext
|
2014-06-19 11:09:26 +04:00
|
|
|
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
2014-06-08 17:12:05 +04:00
|
|
|
test? ( sys-apps/dbus[X] )
|
|
|
|
"
|
|
|
|
# eautoreconf needs >=sys-devel/autoconf-2.65:2.5
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${P}-unittests.patch
|
|
|
|
eautoreconf
|
|
|
|
gnome2_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_configure() {
|
|
|
|
ECONF_SOURCE=${S} \
|
|
|
|
gnome2_src_configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-ca-certificates="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \
|
|
|
|
$(use_with gnome gnome-proxy) \
|
|
|
|
$(use_with libproxy) \
|
|
|
|
$(use_with smartcard pkcs11) \
|
|
|
|
$(use_with ssl gnutls)
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_test() {
|
|
|
|
# non-native tests fail if glib-networking is already installed.
|
|
|
|
# have no idea what's wrong. would appreciate some help.
|
|
|
|
multilib_is_native_abi || return 0
|
|
|
|
|
|
|
|
Xemake check
|
|
|
|
}
|
|
|
|
|
|
|
|
multilib_src_install() {
|
|
|
|
gnome2_src_install
|
|
|
|
}
|