2013-03-26 11:36:52 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-02-08 10:13:10 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-04-02 11:02:22 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-libs/gupnp/gupnp-0.18.4.ebuild,v 1.8 2013/04/01 18:25:27 ago Exp $
|
2012-02-08 10:13:10 +04:00
|
|
|
|
|
|
|
EAPI="4"
|
|
|
|
|
|
|
|
inherit eutils gnome.org multilib
|
|
|
|
|
|
|
|
DESCRIPTION="An object-oriented framework for creating UPnP devs and control points"
|
|
|
|
HOMEPAGE="http://gupnp.org/"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2"
|
|
|
|
SLOT="0"
|
2013-04-02 11:02:22 +04:00
|
|
|
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86"
|
2012-08-25 22:22:17 +04:00
|
|
|
IUSE="connman +introspection kernel_linux networkmanager"
|
2012-02-08 10:13:10 +04:00
|
|
|
|
|
|
|
RDEPEND=">=net-libs/gssdp-0.11.2[introspection?]
|
|
|
|
>=net-libs/libsoup-2.28.2:2.4[introspection?]
|
|
|
|
>=dev-libs/glib-2.24:2
|
|
|
|
dev-libs/libxml2
|
2012-08-25 22:22:17 +04:00
|
|
|
|| (
|
|
|
|
>=sys-apps/util-linux-2.16
|
|
|
|
<sys-libs/e2fsprogs-libs-1.41.8 )
|
2012-02-08 10:13:10 +04:00
|
|
|
introspection? ( >=dev-libs/gobject-introspection-0.6.4 )
|
2012-08-25 22:22:17 +04:00
|
|
|
connman? (
|
|
|
|
>=dev-libs/glib-2.28
|
|
|
|
>=net-misc/connman-0.80 )
|
2012-02-08 10:13:10 +04:00
|
|
|
networkmanager? ( >=dev-libs/glib-2.26 )"
|
|
|
|
DEPEND="${RDEPEND}
|
2012-05-05 09:43:27 +04:00
|
|
|
virtual/pkgconfig
|
2012-02-08 10:13:10 +04:00
|
|
|
sys-devel/gettext"
|
|
|
|
|
|
|
|
DOCS="AUTHORS ChangeLog NEWS README"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local backend=unix
|
|
|
|
use kernel_linux && backend=linux
|
2012-08-25 22:22:17 +04:00
|
|
|
use connman && backend=connman
|
2012-02-08 10:13:10 +04:00
|
|
|
use networkmanager && backend=network-manager
|
|
|
|
|
|
|
|
econf \
|
|
|
|
$(use_enable introspection) \
|
|
|
|
--disable-static \
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--with-context-manager=${backend}
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
# Remove pointless .la files
|
|
|
|
find "${D}" -name '*.la' -delete
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_preinst() {
|
|
|
|
preserve_old_lib /usr/$(get_libdir)/libgupnp-1.0.so.3
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
preserve_old_lib_notify /usr/$(get_libdir)/libgupnp-1.0.so.3
|
|
|
|
}
|