Lines 10-16
Link Here
|
10 |
|
10 |
|
11 |
PYTHON_COMPAT=( python2_7 ) |
11 |
PYTHON_COMPAT=( python2_7 ) |
12 |
|
12 |
|
13 |
inherit autotools eutils python-single-r1 vala |
13 |
inherit autotools eutils multibuild python-single-r1 vala |
14 |
|
14 |
|
15 |
DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" |
15 |
DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" |
16 |
HOMEPAGE="http://spice-space.org http://gitorious.org/spice-gtk" |
16 |
HOMEPAGE="http://spice-space.org http://gitorious.org/spice-gtk" |
Lines 18-51
Link Here
|
18 |
LICENSE="LGPL-2.1" |
18 |
LICENSE="LGPL-2.1" |
19 |
SLOT="0" |
19 |
SLOT="0" |
20 |
SRC_URI="http://spice-space.org/download/gtk/${P}.tar.bz2" |
20 |
SRC_URI="http://spice-space.org/download/gtk/${P}.tar.bz2" |
21 |
KEYWORDS="~alpha amd64 arm ppc ppc64 ~x86" |
21 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
22 |
IUSE="dbus doc gstreamer gtk3 +introspection policykit pulseaudio |
22 |
IUSE="dbus gstreamer gtk2 gtk3 +introspection lz4 policykit pulseaudio python sasl smartcard static-libs usbredir vala webdav" |
23 |
python sasl smartcard static-libs usbredir vala webdav" |
|
|
24 |
|
25 |
REQUIRED_USE=" |
23 |
REQUIRED_USE=" |
26 |
${PYTHON_REQUIRED_USE} |
24 |
python? ( gtk2 ${PYTHON_REQUIRED_USE} ) |
27 |
?? ( pulseaudio gstreamer )" |
25 |
?? ( pulseaudio gstreamer ) |
|
|
26 |
" |
28 |
|
27 |
|
29 |
# TODO: |
28 |
# TODO: |
30 |
# * check if sys-freebsd/freebsd-lib (from virtual/acl) provides acl/libacl.h |
29 |
# * check if sys-freebsd/freebsd-lib (from virtual/acl) provides acl/libacl.h |
31 |
# * use external pnp.ids as soon as that means not pulling in gnome-desktop |
30 |
# * use external pnp.ids as soon as that means not pulling in gnome-desktop |
32 |
RDEPEND="${PYTHON_DEPS} |
31 |
RDEPEND=" |
|
|
32 |
${PYTHON_DEPS} |
33 |
pulseaudio? ( media-sound/pulseaudio[glib] ) |
33 |
pulseaudio? ( media-sound/pulseaudio[glib] ) |
34 |
gstreamer? ( |
34 |
gstreamer? ( |
35 |
media-libs/gstreamer:0.10 |
35 |
media-libs/gstreamer:1.0 |
36 |
media-libs/gst-plugins-base:0.10 ) |
36 |
media-libs/gst-plugins-base:1.0 ) |
37 |
>=x11-libs/pixman-0.17.7 |
37 |
>=x11-libs/pixman-0.17.7 |
38 |
>=media-libs/celt-0.5.1.1:0.5.1 |
38 |
>=media-libs/celt-0.5.1.1:0.5.1 |
39 |
media-libs/opus |
39 |
media-libs/opus |
40 |
dev-libs/openssl |
40 |
dev-libs/openssl:= |
|
|
41 |
gtk2? ( x11-libs/gtk+:2[introspection?] ) |
41 |
gtk3? ( x11-libs/gtk+:3[introspection?] ) |
42 |
gtk3? ( x11-libs/gtk+:3[introspection?] ) |
42 |
x11-libs/gtk+:2[introspection?] |
43 |
>=dev-libs/glib-2.28:2 |
43 |
>=dev-libs/glib-2.26:2 |
|
|
44 |
>=x11-libs/cairo-1.2 |
44 |
>=x11-libs/cairo-1.2 |
45 |
virtual/jpeg |
45 |
virtual/jpeg:= |
46 |
sys-libs/zlib |
46 |
sys-libs/zlib |
47 |
dbus? ( dev-libs/dbus-glib ) |
|
|
48 |
introspection? ( dev-libs/gobject-introspection ) |
47 |
introspection? ( dev-libs/gobject-introspection ) |
|
|
48 |
lz4? ( app-arch/lz4 ) |
49 |
python? ( dev-python/pygtk:2 ) |
49 |
python? ( dev-python/pygtk:2 ) |
50 |
sasl? ( dev-libs/cyrus-sasl ) |
50 |
sasl? ( dev-libs/cyrus-sasl ) |
51 |
smartcard? ( app-emulation/qemu[smartcard] ) |
51 |
smartcard? ( app-emulation/qemu[smartcard] ) |
Lines 59-92
Link Here
|
59 |
>=sys-auth/polkit-0.110-r1 |
59 |
>=sys-auth/polkit-0.110-r1 |
60 |
!~sys-auth/polkit-0.111 ) |
60 |
!~sys-auth/polkit-0.111 ) |
61 |
) |
61 |
) |
62 |
webdav? ( net-libs/phodav )" |
62 |
webdav? ( |
|
|
63 |
net-libs/phodav:2.0 |
64 |
>=dev-libs/glib-2.43.90:2 |
65 |
>=net-libs/libsoup-2.49.91 ) |
66 |
" |
63 |
DEPEND="${RDEPEND} |
67 |
DEPEND="${RDEPEND} |
64 |
dev-lang/python |
68 |
dev-lang/python |
65 |
dev-python/pyparsing |
69 |
dev-python/pyparsing |
66 |
dev-perl/Text-CSV |
70 |
dev-perl/Text-CSV |
|
|
71 |
>=dev-util/gtk-doc-am-1.14 |
67 |
>=dev-util/intltool-0.40.0 |
72 |
>=dev-util/intltool-0.40.0 |
68 |
>=sys-devel/gettext-0.17 |
73 |
>=sys-devel/gettext-0.17 |
69 |
virtual/pkgconfig |
74 |
virtual/pkgconfig |
70 |
vala? ( $(vala_depend) )" |
75 |
vala? ( $(vala_depend) ) |
|
|
76 |
" |
71 |
|
77 |
|
72 |
# Hard-deps while building from git: |
78 |
# Hard-deps while building from git: |
73 |
# dev-lang/vala:0.14 |
79 |
# dev-lang/vala:0.14 |
74 |
# dev-lang/perl |
80 |
# dev-lang/perl |
75 |
|
81 |
|
76 |
GTK2_BUILDDIR="${WORKDIR}/${P}_gtk2" |
|
|
77 |
GTK3_BUILDDIR="${WORKDIR}/${P}_gtk3" |
78 |
|
79 |
src_prepare() { |
82 |
src_prepare() { |
80 |
epatch \ |
|
|
81 |
"${FILESDIR}/${P}-Introduce-enable-disable-webdav-option.patch" \ |
82 |
"${FILESDIR}/${P}-Do-not-depend-on-libsoup-directly.patch" \ |
83 |
"${FILESDIR}/${P}-missing_gio_libs.patch" |
84 |
epatch_user |
83 |
epatch_user |
85 |
|
84 |
|
86 |
AT_NO_RECURSIVE="yes" eautoreconf |
85 |
AT_NO_RECURSIVE="yes" eautoreconf |
87 |
|
86 |
|
88 |
use vala && vala_src_prepare |
87 |
use vala && vala_src_prepare |
89 |
mkdir ${GTK2_BUILDDIR} ${GTK3_BUILDDIR} || die |
|
|
90 |
} |
88 |
} |
91 |
|
89 |
|
92 |
src_configure() { |
90 |
src_configure() { |
Lines 102-107
Link Here
|
102 |
fi |
100 |
fi |
103 |
|
101 |
|
104 |
myconf=" |
102 |
myconf=" |
|
|
103 |
--disable-maintainer-mode \ |
105 |
$(use_enable static-libs static) \ |
104 |
$(use_enable static-libs static) \ |
106 |
$(use_enable introspection) \ |
105 |
$(use_enable introspection) \ |
107 |
--with-audio=${audio} \ |
106 |
--with-audio=${audio} \ |
Lines 115-175
Link Here
|
115 |
$(use_enable vala) \ |
114 |
$(use_enable vala) \ |
116 |
$(use_enable webdav) \ |
115 |
$(use_enable webdav) \ |
117 |
$(use_enable dbus) \ |
116 |
$(use_enable dbus) \ |
118 |
$(use_enable doc gtk-doc) \ |
117 |
--disable-gtk-doc \ |
119 |
--disable-werror \ |
118 |
--disable-werror \ |
120 |
--enable-pie" |
119 |
--enable-pie" |
121 |
|
120 |
|
122 |
cd ${GTK2_BUILDDIR} |
121 |
# Parameter of --with-gtk |
123 |
echo "Running configure in ${GTK2_BUILDDIR}" |
122 |
MULTIBUILD_VARIANTS=( no ) |
124 |
ECONF_SOURCE="${S}" econf --disable-maintainer-mode \ |
123 |
use gtk2 && MULTIBUILD_VARIANTS+=( 2.0 ) |
125 |
--with-gtk=2.0 \ |
124 |
use gtk3 && MULTIBUILD_VARIANTS+=( 3.0 ) |
126 |
${myconf} |
125 |
|
127 |
|
126 |
configure() { |
128 |
if use gtk3; then |
127 |
[[ ${MULTIBUILD_VARIANT} != "2.0" ]] && myconf+=( --with-python ) |
129 |
cd ${GTK3_BUILDDIR} |
128 |
myconf+=( --with-gtk=${MULTIBUILD_VARIANT} ) |
130 |
echo "Running configure in ${GTK3_BUILDDIR}" |
129 |
ECONF_SOURCE="${S}" econf ${myconf[@]} |
131 |
ECONF_SOURCE="${S}" econf --disable-maintainer-mode \ |
130 |
} |
132 |
--with-gtk=3.0 \ |
131 |
multibuild_foreach_variant run_in_build_dir configure |
133 |
${myconf} |
|
|
134 |
fi |
135 |
} |
132 |
} |
136 |
|
133 |
|
137 |
src_compile() { |
134 |
src_compile() { |
138 |
cd ${GTK2_BUILDDIR} |
135 |
multibuild_foreach_variant run_in_build_dir default |
139 |
einfo "Running make in ${GTK2_BUILDDIR}" |
|
|
140 |
default |
141 |
|
142 |
if use gtk3; then |
143 |
cd ${GTK3_BUILDDIR} |
144 |
einfo "Running make in ${GTK3_BUILDDIR}" |
145 |
default |
146 |
fi |
147 |
} |
136 |
} |
148 |
|
137 |
|
149 |
src_test() { |
138 |
src_test() { |
150 |
cd ${GTK2_BUILDDIR} |
139 |
multibuild_foreach_variant run_in_build_dir default |
151 |
einfo "Running make check in ${GTK2_BUILDDIR}" |
|
|
152 |
default |
153 |
|
154 |
if use gtk3; then |
155 |
cd ${GTK3_BUILDDIR} |
156 |
einfo "Running make check in ${GTK3_BUILDDIR}" |
157 |
default |
158 |
fi |
159 |
} |
140 |
} |
160 |
|
141 |
|
161 |
src_install() { |
142 |
src_install() { |
162 |
dodoc AUTHORS ChangeLog NEWS README THANKS TODO |
143 |
dodoc AUTHORS ChangeLog NEWS README THANKS TODO |
163 |
|
144 |
|
164 |
cd ${GTK2_BUILDDIR} |
145 |
multibuild_foreach_variant run_in_build_dir default |
165 |
einfo "Running make check in ${GTK2_BUILDDIR}" |
|
|
166 |
default |
167 |
|
168 |
if use gtk3; then |
169 |
cd ${GTK3_BUILDDIR} |
170 |
einfo "Running make install in ${GTK3_BUILDDIR}" |
171 |
default |
172 |
fi |
173 |
|
146 |
|
174 |
# Remove .la files if they're not needed |
147 |
# Remove .la files if they're not needed |
175 |
use static-libs || prune_libtool_files |
148 |
use static-libs || prune_libtool_files |