2013-01-02 00:22:39 +04:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
2012-09-22 01:41:55 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2013-01-26 22:49:09 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/net-misc/spice-gtk/spice-gtk-0.15.3.ebuild,v 1.2 2013/01/25 22:27:28 cardoe Exp $
|
2012-09-22 01:41:55 +04:00
|
|
|
|
2012-12-05 13:37:56 +04:00
|
|
|
EAPI=5
|
2012-09-22 01:41:55 +04:00
|
|
|
GCONF_DEBUG="no"
|
|
|
|
WANT_AUTOMAKE="1.11"
|
|
|
|
|
2013-01-13 16:47:04 +04:00
|
|
|
MY_PV="${PV}-76cb"
|
|
|
|
S=${WORKDIR}/${PN}-${MY_PV}
|
|
|
|
|
2012-09-22 01:41:55 +04:00
|
|
|
inherit autotools eutils python
|
|
|
|
|
|
|
|
PYTHON_DEPEND="2"
|
|
|
|
|
|
|
|
DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI."
|
|
|
|
HOMEPAGE="http://spice-space.org http://gitorious.org/spice-gtk"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
2013-01-13 16:47:04 +04:00
|
|
|
SRC_URI="http://spice-space.org/download/gtk/${PN}-${MY_PV}.tar.bz2"
|
2013-01-07 17:10:51 +04:00
|
|
|
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
2013-01-13 16:47:04 +04:00
|
|
|
IUSE="dbus doc gstreamer gtk3 +introspection policykit pulseaudio
|
2012-09-22 01:41:55 +04:00
|
|
|
python sasl smartcard static-libs usbredir vala"
|
|
|
|
|
2012-12-05 13:37:56 +04:00
|
|
|
REQUIRED_USE="?? ( pulseaudio gstreamer )"
|
|
|
|
|
2012-09-22 01:41:55 +04:00
|
|
|
# TODO:
|
|
|
|
# * check if sys-freebsd/freebsd-lib (from virtual/acl) provides acl/libacl.h
|
|
|
|
# * use external pnp.ids as soon as that means not pulling in gnome-desktop
|
2013-01-13 16:47:04 +04:00
|
|
|
RDEPEND="pulseaudio? ( media-sound/pulseaudio[glib] )
|
2012-12-05 13:37:56 +04:00
|
|
|
gstreamer? (
|
2012-09-22 01:41:55 +04:00
|
|
|
media-libs/gstreamer:0.10
|
2012-12-05 13:37:56 +04:00
|
|
|
media-libs/gst-plugins-base:0.10 )
|
2012-09-22 01:41:55 +04:00
|
|
|
>=x11-libs/pixman-0.17.7
|
|
|
|
>=media-libs/celt-0.5.1.1:0.5.1
|
|
|
|
dev-libs/openssl
|
|
|
|
gtk3? ( x11-libs/gtk+:3[introspection?] )
|
2012-12-05 13:37:56 +04:00
|
|
|
x11-libs/gtk+:2[introspection?]
|
2012-09-22 01:41:55 +04:00
|
|
|
>=dev-libs/glib-2.26:2
|
|
|
|
>=x11-libs/cairo-1.2
|
|
|
|
virtual/jpeg
|
|
|
|
sys-libs/zlib
|
2013-01-13 16:47:04 +04:00
|
|
|
dbus? ( dev-libs/dbus-glib )
|
2012-09-22 01:41:55 +04:00
|
|
|
introspection? ( dev-libs/gobject-introspection )
|
|
|
|
python? ( dev-python/pygtk:2 )
|
|
|
|
sasl? ( dev-libs/cyrus-sasl )
|
|
|
|
smartcard? ( app-emulation/libcacard )
|
|
|
|
usbredir? (
|
|
|
|
sys-apps/hwids
|
2012-12-05 13:37:56 +04:00
|
|
|
>=sys-apps/usbredir-0.4.2
|
|
|
|
virtual/libusb:1
|
|
|
|
virtual/udev[gudev]
|
2012-09-22 01:41:55 +04:00
|
|
|
policykit? (
|
|
|
|
sys-apps/acl
|
|
|
|
>=sys-auth/polkit-0.101 )
|
2012-12-05 13:37:56 +04:00
|
|
|
)"
|
2012-09-22 01:41:55 +04:00
|
|
|
DEPEND="${RDEPEND}
|
2012-12-05 13:37:56 +04:00
|
|
|
>=app-emulation/spice-protocol-0.10.1
|
2012-09-22 01:41:55 +04:00
|
|
|
dev-lang/python
|
2013-01-02 00:22:39 +04:00
|
|
|
virtual/pyparsing
|
2013-01-13 16:47:04 +04:00
|
|
|
dev-perl/Text-CSV
|
2012-09-22 01:41:55 +04:00
|
|
|
>=dev-util/intltool-0.40.0
|
2012-12-05 13:37:56 +04:00
|
|
|
>=sys-devel/gettext-0.17
|
|
|
|
virtual/pkgconfig
|
|
|
|
vala? ( dev-lang/vala:0.14 )"
|
2012-09-22 01:41:55 +04:00
|
|
|
|
|
|
|
# Hard-deps while building from git:
|
|
|
|
# dev-lang/vala:0.14
|
|
|
|
# dev-lang/perl
|
|
|
|
|
2012-12-05 13:37:56 +04:00
|
|
|
GTK2_BUILDDIR="${WORKDIR}/${P}_gtk2"
|
|
|
|
GTK3_BUILDDIR="${WORKDIR}/${P}_gtk3"
|
|
|
|
|
2012-09-22 01:41:55 +04:00
|
|
|
pkg_setup() {
|
|
|
|
python_set_active_version 2
|
|
|
|
python_pkg_setup
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
2012-12-05 13:37:56 +04:00
|
|
|
mkdir ${GTK2_BUILDDIR} || die
|
|
|
|
mkdir ${GTK3_BUILDDIR} || die
|
|
|
|
|
|
|
|
epatch \
|
2013-01-26 22:49:09 +04:00
|
|
|
"${FILESDIR}/0.12-parallel-install.patch" \
|
|
|
|
"${FILESDIR}/0001-build-sys-fix-out-of-tree-build-with-vala.patch"
|
2012-09-22 01:41:55 +04:00
|
|
|
eautoreconf
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
2012-12-05 13:37:56 +04:00
|
|
|
local myconf
|
2012-09-22 01:41:55 +04:00
|
|
|
local audio="no"
|
|
|
|
|
|
|
|
use gstreamer && audio="gstreamer"
|
|
|
|
use pulseaudio && audio="pulse"
|
2012-12-05 13:37:56 +04:00
|
|
|
|
2012-09-22 01:41:55 +04:00
|
|
|
if use vala ; then
|
|
|
|
# force vala regen for MinGW, etc
|
|
|
|
rm -fv gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c
|
|
|
|
fi
|
|
|
|
|
2012-12-05 13:37:56 +04:00
|
|
|
myconf="
|
2012-09-22 01:41:55 +04:00
|
|
|
$(use_enable static-libs static) \
|
|
|
|
$(use_enable introspection) \
|
2012-12-05 13:37:56 +04:00
|
|
|
--with-audio=${audio} \
|
2012-09-22 01:41:55 +04:00
|
|
|
$(use_with python) \
|
|
|
|
$(use_with sasl) \
|
|
|
|
$(use_enable smartcard) \
|
|
|
|
$(use_enable usbredir) \
|
|
|
|
$(use_with usbredir usb-ids-path /usr/share/misc/usb.ids) \
|
|
|
|
$(use_with usbredir usb-acl-helper-dir /usr/libexec) \
|
|
|
|
$(use_enable policykit polkit) \
|
|
|
|
$(use_enable vala) \
|
2013-01-13 16:47:04 +04:00
|
|
|
$(use_enable dbus) \
|
|
|
|
--disable-werror \
|
|
|
|
--enable-pie"
|
2012-12-05 13:37:56 +04:00
|
|
|
|
|
|
|
cd ${GTK2_BUILDDIR}
|
|
|
|
echo "Running configure in ${GTK2_BUILDDIR}"
|
|
|
|
ECONF_SOURCE="${S}" econf --disable-maintainer-mode \
|
|
|
|
VALAC=$(type -P valac-0.14) \
|
|
|
|
VAPIGEN=$(type -P vapigen-0.14) \
|
|
|
|
--with-gtk=2.0 \
|
|
|
|
${myconf}
|
|
|
|
|
|
|
|
if use gtk3; then
|
|
|
|
cd ${GTK3_BUILDDIR}
|
|
|
|
echo "Running configure in ${GTK3_BUILDDIR}"
|
|
|
|
ECONF_SOURCE="${S}" econf --disable-maintainer-mode \
|
|
|
|
VALAC=$(type -P valac-0.14) \
|
|
|
|
VAPIGEN=$(type -P vapigen-0.14) \
|
|
|
|
--with-gtk=3.0 \
|
|
|
|
${myconf}
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
cd ${GTK2_BUILDDIR}
|
|
|
|
einfo "Running make in ${GTK2_BUILDDIR}"
|
|
|
|
default
|
|
|
|
|
|
|
|
if use gtk3; then
|
|
|
|
cd ${GTK3_BUILDDIR}
|
|
|
|
einfo "Running make in ${GTK3_BUILDDIR}"
|
|
|
|
default
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_test() {
|
|
|
|
cd ${GTK2_BUILDDIR}
|
|
|
|
einfo "Running make check in ${GTK2_BUILDDIR}"
|
|
|
|
default
|
|
|
|
|
|
|
|
if use gtk3; then
|
|
|
|
cd ${GTK3_BUILDDIR}
|
|
|
|
einfo "Running make check in ${GTK3_BUILDDIR}"
|
|
|
|
default
|
|
|
|
fi
|
2012-09-22 01:41:55 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-12-05 13:37:56 +04:00
|
|
|
cd ${GTK2_BUILDDIR}
|
|
|
|
einfo "Running make check in ${GTK2_BUILDDIR}"
|
2012-09-22 01:41:55 +04:00
|
|
|
default
|
|
|
|
|
2012-12-05 13:37:56 +04:00
|
|
|
if use gtk3; then
|
|
|
|
cd ${GTK3_BUILDDIR}
|
|
|
|
einfo "Running make install in ${GTK3_BUILDDIR}"
|
|
|
|
default
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove .la files if they're not needed
|
|
|
|
if ! use static-libs; then
|
|
|
|
find "${ED}" -name '*.la' -exec rm -f '{}' + || die
|
|
|
|
fi
|
|
|
|
|
|
|
|
use python && rm -rf "${ED}"/usr/lib*/python*/site-packages/*.la
|
|
|
|
use doc || rm -rf "${ED}/usr/share/gtk-doc"
|
2012-09-22 01:41:55 +04:00
|
|
|
|
|
|
|
make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;"
|
|
|
|
}
|