diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/spice-gtk |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/spice-gtk')
-rw-r--r-- | net-misc/spice-gtk/Manifest | 10 | ||||
-rw-r--r-- | net-misc/spice-gtk/files/README.gentoo | 14 | ||||
-rw-r--r-- | net-misc/spice-gtk/files/spice-gtk-0.33-sys-sysmacros.h.patch | 44 | ||||
-rw-r--r-- | net-misc/spice-gtk/metadata.xml | 25 | ||||
-rw-r--r-- | net-misc/spice-gtk/spice-gtk-0.33-r2.ebuild | 148 | ||||
-rw-r--r-- | net-misc/spice-gtk/spice-gtk-0.34.ebuild | 144 | ||||
-rw-r--r-- | net-misc/spice-gtk/spice-gtk-9999.ebuild | 144 |
7 files changed, 529 insertions, 0 deletions
diff --git a/net-misc/spice-gtk/Manifest b/net-misc/spice-gtk/Manifest new file mode 100644 index 000000000000..ebba4e7e165d --- /dev/null +++ b/net-misc/spice-gtk/Manifest @@ -0,0 +1,10 @@ +AUX README.gentoo 527 SHA256 c3d3baf43a172dcf6e7a1a95a6d1cb46585389f76c265037c1736eb16afbb7b5 SHA512 2f8a79f6eea330ac9a6927c6cce29f9232c3c0650436f3f4c459d324bd5054a4ad82786d926e5e4c7384e74cb84d1fbb387c25b0b4c27fdb9514d526cbe02f9b WHIRLPOOL ba414014f78fc212544087dcdaeca5e74c2d0d12e274b0a65b1a3e8861758ad490a63b2b5876f8793c3449ac05ebd983e2e4e4c103340268aac922d5190873cc +AUX spice-gtk-0.33-sys-sysmacros.h.patch 1459 SHA256 b0e2aaf2048f0a2bb30221ff957d12488faa1b239c63cba581503c3422da8a3a SHA512 9d3331f3a4d9c3b680ca78a0a8e430067d1cbc551865a3bba33bc4d2df64b716f8ac4d49fd2cb279f6e6ce870aab02aea29e93a8269664063245dcaee5942bc1 WHIRLPOOL deddb04a47e51f4fa3c66d0e3036f562369c8adac0921c1dca22019881b69aeeeabf26c3bd2ea62743cfddd7a82d14f9be706f8bc63b3c7ea27c5f92a7121f17 +DIST spice-gtk-0.33.tar.bz2 1383927 SHA256 7daf33b786ab8ebc9fe6e7b11745100ee1ab66e61a5811d1d5aabe4d66eaaf39 SHA512 ee5750194057a7f568641f6382d6969b67dc7271b4d13037570b79cdecd70a7eeb457ad349d3ed8e576f1fbd9701fac7d24607d5cbde8af0e030433b347abc80 WHIRLPOOL efe5f1684ac1ff569b744309ab18dfd0369411f1963e001060646ca7db5724bf2e306178963e104dba08c02c89782a08e2f8ce0db346efe28eeb495f9d5db4d8 +DIST spice-gtk-0.34.tar.bz2 1480566 SHA256 e9720e01165f8451c9f3f58ad50e3afb990993b81cc2db86b3661b7ac5b976ee SHA512 17ea737511855b47f5eaf5143756483542cf8ee83f8d276cbfb2c0407355f68ed329fcbed8a67737179f3e53587710634d6faa856590234ee68be7b4b13f2689 WHIRLPOOL 96ced199ec8867b85b0dbdd2119b1a41149373215125b7b2e2bbc7ed34d3fbb67b084c473cf68de4207969eaa49cf3826f0eafaa3d70cbc071cbd469f8b73d53 +EBUILD spice-gtk-0.33-r2.ebuild 3746 SHA256 31ae4964497836619a0bcd949fee86d770ad21597c7c6e2c686543db4e6de83b SHA512 8c9badea4c1a3d070684e3998e981d9232f79602f14e50876e182a83e57c59d9ea1eb793925abf7539c570b4dbfd11777fafcf1b38faee957470aed6e024e245 WHIRLPOOL d04717709a747390905dd0b9a69ed94d502115c62ba0d78cc9e03ed38f170eb7fc58b686fca337be7c824d02bc3164c270dd407dbceb92a8c2ed9a46cde02619 +EBUILD spice-gtk-0.34.ebuild 3687 SHA256 0fa3c1fb73158ea84d08474f061cb9695c87b6c48bd02dfe0a0778d33ca35f4c SHA512 de9cd651a7d0c7232185c6232100fe4c96b40ad71c3cb9be57c21dc289aecf34379db654509497e87266fb1741e7208ad365917ad6ff8f235c4cffdd2cc621d3 WHIRLPOOL d2e89050eba27dbe80a9d9e1cc3622df9901e7d9d8e9043049c4ac05a71000e75ffc7b78d846cac7899580a2b622bf047bd3312fe6b5c4f5d3a765adac71b284 +EBUILD spice-gtk-9999.ebuild 3626 SHA256 d759232d2ecb488dcd5a5315f3e5684eb161fa3027f08caf143b408f16ec91a0 SHA512 9c76cb32ce824078f94c5b77f700834c15bd1df5868d53c779c462d5082a5c52844b01f5a9adad394c7f3151522f9be295139112f50664511d97ead29112ae07 WHIRLPOOL 28cc2eafab427da815210acf9e8d7698f5baa7c67f57f3ecf6134d8da503a081f68617dee9048fe886fb360020433d45a0e081dbb90fdfa0f0d5a51a7f989c98 +MISC ChangeLog 12970 SHA256 064e85a1a3e9cc492723459a65927bbb803a0bb026d8d4768b4112be4e8c1099 SHA512 dee213af3d612b6f23ef2585095f0ae873e8b81e3b4e7e58ad2c4627b6cb38c4689b5ea599bab181b45e9bae78ecd6d92402743933eff6f54522f145a8333f19 WHIRLPOOL c5bac78a24c612ede81ea6e016813bf37b44f6c112b82fa19212600574b3ca91d8e569dacd5f5d9c8cbea98631970fc6c3ac76417441898dc11c6307d07ad6de +MISC ChangeLog-2015 15485 SHA256 f87695d419e36a98448e28b4a9ad9a2095f58e60528bc6088318f6ea769628ac SHA512 5570b7cc255b2e366c5a3ac68b0c47f2e27ba5d527920d76a157960c58c95f041e6e4d70677914f50ecb1559cc9a86d371b71a4fb47ffb1922d0e91b081d5212 WHIRLPOOL a2716c8b8d18c829d8781b1e47df345c0c4b5d7fd23663cbe67e26767669e939aaf7c3dbdf27e21b15b883936fabc3d62b1bf2aa5b28d596e714aea1e7629750 +MISC metadata.xml 1179 SHA256 c4ae3486e6ecf7350aa9abaf8100f7cd59935329a614814611c1d81ccc26118c SHA512 6cd0e7da9d10bdefe4180785f4c19a9b6579ac098622bf5423f00f291bdd49be60769eb230830b8aa348da2b0d91ba303576380cd1d8a56de6b27f0f49442515 WHIRLPOOL 7eea72b1a5ba4aa9503b089f578b15cc626768d8b3f59d3a8eb9c138e294b5cf70c4a0cc923ae551859b29601ea9e22ad2081d9e4bd0b11dae1cda2a3536e6d1 diff --git a/net-misc/spice-gtk/files/README.gentoo b/net-misc/spice-gtk/files/README.gentoo new file mode 100644 index 000000000000..e18b6d8e539e --- /dev/null +++ b/net-misc/spice-gtk/files/README.gentoo @@ -0,0 +1,14 @@ + +If you choose to enable the video streaming support of gstreamer, +please try to install addtional gst-plugins which matching the video codecs + +One the client side: + mjpeg,x264 media-plugins/gst-plugins-libav:1.0 + vpx media-plugins/gst-plugins-vpx:1.0 + +One the server side (which app-emulation/qemu running), you should also install +additional gstreamer plugins for the app-emulation/spice package: + mjpeg media-plugins/gst-plugins-libav:1.0 + vpx media-plugins/gst-plugins-vpx:1.0 + x264 media-plugins/gst-plugins-x264:1.0 + diff --git a/net-misc/spice-gtk/files/spice-gtk-0.33-sys-sysmacros.h.patch b/net-misc/spice-gtk/files/spice-gtk-0.33-sys-sysmacros.h.patch new file mode 100644 index 000000000000..902ee9dd0292 --- /dev/null +++ b/net-misc/spice-gtk/files/spice-gtk-0.33-sys-sysmacros.h.patch @@ -0,0 +1,44 @@ +From a27a83da30d58511b2a5f2cdb13ebd4fca7a3d0a Mon Sep 17 00:00:00 2001 +From: Pavel Grunt <pgrunt@redhat.com> +Date: Tue, 1 Nov 2016 17:08:01 +0100 +Subject: [PATCH] Adjust include header to new location of macros +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +minor & major macros were moved to sysmacros.h + +usbutil.c: In function ‘spice_usbutil_get_sysfs_attribute’: +usbutil.c:110:14: warning: ‘__major_from_sys_types’ is deprecated: + In the GNU C Library, `major' is defined by <sys/sysmacros.h>. + For historical compatibility, it is currently defined by + <sys/types.h> as well, but we plan to remove this soon. + To use `major', include <sys/sysmacros.h> directly. + If you did not intend to use a system-defined macro `major', + you should #undef it after including <sys/types.h>. + [-Wdeprecated-declarations] + major(stat_buf.st_rdev), minor(stat_buf.st_rdev), attribute); + +Acked-by: Victor Toso <victortoso@redhat.com> +--- + src/usbutil.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/usbutil.c b/src/usbutil.c +index 7bfbe44..b68a2e1 100644 +--- a/src/usbutil.c ++++ b/src/usbutil.c +@@ -30,7 +30,10 @@ + #ifdef __linux__ + #include <stdio.h> + #include <unistd.h> ++#include <sys/sysmacros.h> ++#ifndef major /* major and minor macros were moved to sys/sysmacros.h from sys/types.h */ + #include <sys/types.h> ++#endif + #include <sys/stat.h> + #endif + #include "usbutil.h" +-- +2.10.2 + diff --git a/net-misc/spice-gtk/metadata.xml b/net-misc/spice-gtk/metadata.xml new file mode 100644 index 000000000000..a84b4fbfe9ac --- /dev/null +++ b/net-misc/spice-gtk/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>virtualization@gentoo.org</email> + <name>Gentoo Virtualization Project</name> + </maintainer> + <use> + <flag name="dbus">Support for desktop integration such as + automounting and other APIs exposed by your DE via D-Bus</flag> + <flag name="gtk3">Link against <pkg>x11-libs/gtk+</pkg>:3 instead of + <pkg>x11-libs/gtk+</pkg>:2</flag> + <flag name="lz4">Enable support for LZ4 compression using + <pkg>app-arch/lz4</pkg></flag> + <flag name="policykit">Enable <pkg>sys-auth/polkit</pkg> support for the + usbredir acl helper</flag> + <flag name="usbredir">Use <pkg>sys-apps/usbredir</pkg> to redirect USB + devices to another machine over TCP</flag> + <flag name="mjpeg">Enable builtin mjpeg video decoder</flag> + <flag name="webdav">Support for folder-sharing between guest and client + using <pkg>net-libs/phodav</pkg></flag> + <flag name="gstaudio">Using gstreamer backend as audio decodec support</flag> + <flag name="gstvideo">Using gstreamer backend as video decodec support</flag> + </use> +</pkgmetadata> diff --git a/net-misc/spice-gtk/spice-gtk-0.33-r2.ebuild b/net-misc/spice-gtk/spice-gtk-0.33-r2.ebuild new file mode 100644 index 000000000000..04a67a9a2432 --- /dev/null +++ b/net-misc/spice-gtk/spice-gtk-0.33-r2.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.14" +VALA_USE_DEPEND="vapigen" + +inherit autotools eutils xdg-utils vala readme.gentoo-r1 + +DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" +HOMEPAGE="https://www.spice-space.org https://cgit.freedesktop.org/spice/spice-gtk/" + +LICENSE="LGPL-2.1" +SLOT="0" +SRC_URI="https://www.spice-space.org/download/gtk/${P}.tar.bz2" +KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="dbus gstaudio gstvideo gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard static-libs usbredir vala webdav libressl" + +REQUIRED_USE="?? ( pulseaudio gstaudio )" + +# 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 +RDEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + pulseaudio? ( media-sound/pulseaudio[glib] ) + gstvideo? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + media-libs/gst-plugins-good:1.0 + ) + gstaudio? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + media-libs/gst-plugins-good:1.0 + ) + >=x11-libs/pixman-0.17.7 + >=media-libs/celt-0.5.1.1:0.5.1 + media-libs/opus + gtk3? ( x11-libs/gtk+:3[introspection?] ) + >=dev-libs/glib-2.36:2 + >=x11-libs/cairo-1.2 + virtual/jpeg:0= + sys-libs/zlib + introspection? ( dev-libs/gobject-introspection ) + lz4? ( app-arch/lz4 ) + sasl? ( dev-libs/cyrus-sasl ) + smartcard? ( app-emulation/qemu[smartcard] ) + usbredir? ( + sys-apps/hwids + >=sys-apps/usbredir-0.4.2 + virtual/libusb:1 + virtual/libgudev:= + policykit? ( + sys-apps/acl + >=sys-auth/polkit-0.110-r1 + !~sys-auth/polkit-0.111 ) + ) + webdav? ( + net-libs/phodav:2.0 + >=dev-libs/glib-2.43.90:2 + >=net-libs/libsoup-2.49.91 ) +" +DEPEND="${RDEPEND} + >=app-emulation/spice-protocol-0.12.12 + dev-perl/Text-CSV + >=dev-util/gtk-doc-am-1.14 + >=dev-util/intltool-0.40.0 + >=sys-devel/gettext-0.17 + virtual/pkgconfig + vala? ( $(vala_depend) ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.33-sys-sysmacros.h.patch +) + +src_prepare() { + default + + eautoreconf + + use vala && vala_src_prepare +} + +src_configure() { + # Prevent sandbox violations, bug #581836 + # https://bugzilla.gnome.org/show_bug.cgi?id=744134 + # https://bugzilla.gnome.org/show_bug.cgi?id=744135 + addpredict /dev + + # Clean up environment, bug #586642 + xdg_environment_reset + + local myconf + + if use vala ; then + # force vala regen for MinGW, etc + rm -fv gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c + fi + + myconf=" + --disable-maintainer-mode \ + $(use_enable static-libs static) \ + $(use_enable introspection) \ + $(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_with gtk3 gtk 3.0) \ + $(use_enable policykit polkit) \ + $(use_enable pulseaudio pulse) \ + $(use_enable gstaudio) \ + $(use_enable gstvideo) \ + $(use_enable mjpeg builtin-mjpeg) \ + $(use_enable vala) \ + $(use_enable webdav) \ + $(use_enable dbus) \ + --disable-gtk-doc \ + --disable-werror \ + --enable-pie" + + econf ${myconf} +} + +src_compile() { + # Prevent sandbox violations, bug #581836 + # https://bugzilla.gnome.org/show_bug.cgi?id=744134 + # https://bugzilla.gnome.org/show_bug.cgi?id=744135 + addpredict /dev + + default +} + +src_install() { + default + + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + + # Remove .la files if they're not needed + use static-libs || prune_libtool_files + + make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;" + readme.gentoo_create_doc +} diff --git a/net-misc/spice-gtk/spice-gtk-0.34.ebuild b/net-misc/spice-gtk/spice-gtk-0.34.ebuild new file mode 100644 index 000000000000..72765271063a --- /dev/null +++ b/net-misc/spice-gtk/spice-gtk-0.34.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.14" +VALA_USE_DEPEND="vapigen" + +inherit autotools eutils xdg-utils vala readme.gentoo-r1 + +DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" +HOMEPAGE="https://www.spice-space.org https://cgit.freedesktop.org/spice/spice-gtk/" + +LICENSE="LGPL-2.1" +SLOT="0" +SRC_URI="https://www.spice-space.org/download/gtk/${P}.tar.bz2" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="dbus gstaudio gstvideo gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard static-libs usbredir vala webdav libressl" + +REQUIRED_USE="?? ( pulseaudio gstaudio )" + +# 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 +RDEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + pulseaudio? ( media-sound/pulseaudio[glib] ) + gstvideo? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + media-libs/gst-plugins-good:1.0 + ) + gstaudio? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + media-libs/gst-plugins-good:1.0 + ) + >=x11-libs/pixman-0.17.7 + >=media-libs/celt-0.5.1.1:0.5.1 + media-libs/opus + gtk3? ( x11-libs/gtk+:3[introspection?] ) + >=dev-libs/glib-2.36:2 + >=x11-libs/cairo-1.2 + virtual/jpeg:0= + sys-libs/zlib + introspection? ( dev-libs/gobject-introspection ) + lz4? ( app-arch/lz4 ) + sasl? ( dev-libs/cyrus-sasl ) + smartcard? ( app-emulation/qemu[smartcard] ) + usbredir? ( + sys-apps/hwids + >=sys-apps/usbredir-0.4.2 + virtual/libusb:1 + virtual/libgudev:= + policykit? ( + sys-apps/acl + >=sys-auth/polkit-0.110-r1 + !~sys-auth/polkit-0.111 ) + ) + webdav? ( + net-libs/phodav:2.0 + >=dev-libs/glib-2.43.90:2 + >=net-libs/libsoup-2.49.91 ) +" +DEPEND="${RDEPEND} + >=app-emulation/spice-protocol-0.12.12 + dev-perl/Text-CSV + >=dev-util/gtk-doc-am-1.14 + >=dev-util/intltool-0.40.0 + >=sys-devel/gettext-0.17 + virtual/pkgconfig + vala? ( $(vala_depend) ) +" + +src_prepare() { + default + + eautoreconf + + use vala && vala_src_prepare +} + +src_configure() { + # Prevent sandbox violations, bug #581836 + # https://bugzilla.gnome.org/show_bug.cgi?id=744134 + # https://bugzilla.gnome.org/show_bug.cgi?id=744135 + addpredict /dev + + # Clean up environment, bug #586642 + xdg_environment_reset + + local myconf + + if use vala ; then + # force vala regen for MinGW, etc + rm -fv gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c + fi + + myconf=" + --disable-maintainer-mode \ + $(use_enable static-libs static) \ + $(use_enable introspection) \ + $(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_with gtk3 gtk 3.0) \ + $(use_enable policykit polkit) \ + $(use_enable pulseaudio pulse) \ + $(use_enable gstaudio) \ + $(use_enable gstvideo) \ + $(use_enable mjpeg builtin-mjpeg) \ + $(use_enable vala) \ + $(use_enable webdav) \ + $(use_enable dbus) \ + --disable-gtk-doc \ + --disable-werror \ + --enable-pie" + + econf ${myconf} +} + +src_compile() { + # Prevent sandbox violations, bug #581836 + # https://bugzilla.gnome.org/show_bug.cgi?id=744134 + # https://bugzilla.gnome.org/show_bug.cgi?id=744135 + addpredict /dev + + default +} + +src_install() { + default + + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + + # Remove .la files if they're not needed + use static-libs || prune_libtool_files + + make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;" + readme.gentoo_create_doc +} diff --git a/net-misc/spice-gtk/spice-gtk-9999.ebuild b/net-misc/spice-gtk/spice-gtk-9999.ebuild new file mode 100644 index 000000000000..aa41fd8ab9ac --- /dev/null +++ b/net-misc/spice-gtk/spice-gtk-9999.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.14" +VALA_USE_DEPEND="vapigen" + +inherit autotools eutils xdg-utils vala readme.gentoo-r1 + +DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" +HOMEPAGE="https://www.spice-space.org https://cgit.freedesktop.org/spice/spice-gtk/" + +LICENSE="LGPL-2.1" +SLOT="0" +EGIT_REPO_URI="https://anongit.freedesktop.org/git/spice/spice-gtk.git" +KEYWORDS="" +IUSE="dbus gstaudio gstvideo gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard static-libs usbredir vala webdav libressl" + +REQUIRED_USE="?? ( pulseaudio gstaudio )" + +# 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 +RDEPEND=" + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + pulseaudio? ( media-sound/pulseaudio[glib] ) + gstvideo? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + media-libs/gst-plugins-good:1.0 + ) + gstaudio? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + media-libs/gst-plugins-good:1.0 + ) + >=x11-libs/pixman-0.17.7 + >=media-libs/celt-0.5.1.1:0.5.1 + media-libs/opus + gtk3? ( x11-libs/gtk+:3[introspection?] ) + >=dev-libs/glib-2.36:2 + >=x11-libs/cairo-1.2 + virtual/jpeg:0= + sys-libs/zlib + introspection? ( dev-libs/gobject-introspection ) + lz4? ( app-arch/lz4 ) + sasl? ( dev-libs/cyrus-sasl ) + smartcard? ( app-emulation/qemu[smartcard] ) + usbredir? ( + sys-apps/hwids + >=sys-apps/usbredir-0.4.2 + virtual/libusb:1 + virtual/libgudev:= + policykit? ( + sys-apps/acl + >=sys-auth/polkit-0.110-r1 + !~sys-auth/polkit-0.111 ) + ) + webdav? ( + net-libs/phodav:2.0 + >=dev-libs/glib-2.43.90:2 + >=net-libs/libsoup-2.49.91 ) +" +DEPEND="${RDEPEND} + =app-emulation/spice-protocol-9999 + dev-perl/Text-CSV + >=dev-util/gtk-doc-am-1.14 + >=dev-util/intltool-0.40.0 + >=sys-devel/gettext-0.17 + virtual/pkgconfig + vala? ( $(vala_depend) ) +" + +src_prepare() { + default + + eautoreconf + + use vala && vala_src_prepare +} + +src_configure() { + # Prevent sandbox violations, bug #581836 + # https://bugzilla.gnome.org/show_bug.cgi?id=744134 + # https://bugzilla.gnome.org/show_bug.cgi?id=744135 + addpredict /dev + + # Clean up environment, bug #586642 + xdg_environment_reset + + local myconf + + if use vala ; then + # force vala regen for MinGW, etc + rm -fv gtk/controller/controller.{c,vala.stamp} gtk/controller/menu.c + fi + + myconf=" + --disable-maintainer-mode \ + $(use_enable static-libs static) \ + $(use_enable introspection) \ + $(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_with gtk3 gtk 3.0) \ + $(use_enable policykit polkit) \ + $(use_enable pulseaudio pulse) \ + $(use_enable gstaudio) \ + $(use_enable gstvideo) \ + $(use_enable mjpeg builtin-mjpeg) \ + $(use_enable vala) \ + $(use_enable webdav) \ + $(use_enable dbus) \ + --disable-gtk-doc \ + --disable-werror \ + --enable-pie" + + econf ${myconf} +} + +src_compile() { + # Prevent sandbox violations, bug #581836 + # https://bugzilla.gnome.org/show_bug.cgi?id=744134 + # https://bugzilla.gnome.org/show_bug.cgi?id=744135 + addpredict /dev + + default +} + +src_install() { + default + + dodoc AUTHORS NEWS README TODO + + # Remove .la files if they're not needed + use static-libs || prune_libtool_files + + make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;" + readme.gentoo_create_doc +} |