summaryrefslogtreecommitdiff
path: root/net-misc/spice-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/spice-gtk')
-rw-r--r--net-misc/spice-gtk/Manifest6
-rw-r--r--net-misc/spice-gtk/files/spice-gtk-0.37-adjust-to-window-scaling.patch132
-rw-r--r--net-misc/spice-gtk/spice-gtk-0.37-r3.ebuild140
-rw-r--r--net-misc/spice-gtk/spice-gtk-0.38-r2.ebuild110
-rw-r--r--net-misc/spice-gtk/spice-gtk-0.38-r3.ebuild125
5 files changed, 0 insertions, 513 deletions
diff --git a/net-misc/spice-gtk/Manifest b/net-misc/spice-gtk/Manifest
index 4165862b5fbb..59cf34345c0a 100644
--- a/net-misc/spice-gtk/Manifest
+++ b/net-misc/spice-gtk/Manifest
@@ -1,12 +1,6 @@
AUX README.gentoo 527 BLAKE2B 5f02dbe14485894513b67bfb8b6f6159321e081f82f24c76a4b05f1463f8a6e332fffb2510b791a04fb9ad99ce7caba761b313fe2252c8d44893faa6ccef0d29 SHA512 2f8a79f6eea330ac9a6927c6cce29f9232c3c0650436f3f4c459d324bd5054a4ad82786d926e5e4c7384e74cb84d1fbb387c25b0b4c27fdb9514d526cbe02f9b
-AUX spice-gtk-0.37-adjust-to-window-scaling.patch 5257 BLAKE2B a60692c0e08cfed4933cdfe15378c428d4bd006b6f91412f5071519d9027efe95b94ecd3baf4ebabd7143d358433cccc7335ea41a9a5fb9ed280e63664c04d01 SHA512 13afe7b894954d25635c2fc146b6386eb3973c151363067ec0762f95a349bf6d2d26005521214db07fd2a69ce9e994c9d25b92d0b80882c015b8313bb2016328
AUX spice-gtk-0.39-fix-finding-pyparsing.patch 634 BLAKE2B 232f39c0762c23553952e3f84018622b01f51ea2e1967b83f1016cf9e096e798d914e044598dcf6c41359dc95116152409918d7be800fe686dbdaa2d711ce30b SHA512 54140731f5005d2ccbd41358f499be6dfcdf909606c894c3707f686ba80898595484f2509857608c54d60908dbbb1ef4309ae0673f47d1594eb7b543db39fb45
-DIST spice-gtk-0.37.tar.bz2 1303111 BLAKE2B cf4b6664ac86d126cf14f1a31b1df93079e15fc0a0af69bfaf61cb84284daa7b6b8cb2a2ee3345f6a475838ffc0fb2a2b0bdd61301e2c1479fb5f5e0c28babbe SHA512 a0a20bc6f25337d86e57fe1fc9586c4cc84457fc8c38cdcc5a728990a69018da0fca3ab5aa63349786b5a7508c82b716c94803eefb3495cffb7df4526db2d029
-DIST spice-gtk-0.38.tar.xz 796112 BLAKE2B c1542b5b76f9e23ffd1910273f358f656198829b1f615c6a8e0931a79d14920132c861facd534f4cf05f03c4f64a50f628f7daa93be581d5ac815f224b81fe16 SHA512 27b44ac9f0cee2737ce03bb3f47c62fc0ee2402c291c49fc56cffc4ccb63e2cab001a68ba865a6375d82cb38444408d59c68469783ee4279fa818d8682e902f3
DIST spice-gtk-0.39.tar.xz 845528 BLAKE2B c886c4c9f0e51d7f2bf6dbfe574f1a2bcab249f863cb7da1f009410572cdaa7a35ef98fc370a7e74f7e490ad3bfe8ffa832601f8bb0b0894b90ec1de76495ce9 SHA512 ff0f3ca6b10a2c415f2fa8d61464c5710aaa2a46c2c83909f146fa45f01151e756d9c3d79cb162dd3d0c1279b6ef55a67fc5c1266af2cb5b46ac1eaa0254c8d2
-EBUILD spice-gtk-0.37-r3.ebuild 3674 BLAKE2B 84da9538eeff7eab47f2939ebfbd973e86d6f643590757fa8411998de0b328b090d0a681f32b896ff91f35805b9284009eec7e3d242039d8eab224e05667b92a SHA512 e8e1e7f9b6c148e0affe9d47ed661ce51790c73d30113f697598795b51fd89adc412e45c521e8f4ebe868254bad2c54c7b60eb5462ef8bc7c4ae99729a33f542
-EBUILD spice-gtk-0.38-r2.ebuild 2919 BLAKE2B d6117db4bcbbb8d77594c317ddb960ca75c78946e3a1d3bd1eb486c26f9bfbec35d1c25d71eaee0e6d09e0566061b5cd67834fc0e2343a1f7de1ea91ea796630 SHA512 089bcfe5ce85ec0d4644e04ac99d9c74173798516f2b9452193c285adaf469ad143053677eae86a4d0f05434d4af7fdab4b8e261b3a2c27436c8778d91fbd320
-EBUILD spice-gtk-0.38-r3.ebuild 3319 BLAKE2B 1b7912c86dad9cbed13e7e2d5f2608e271abb39045653a3a9e50bf1b38cfe9fa322629bdee75c2d93bec6041d3108d4850603f29779057e13a098593d25a9f28 SHA512 aa18468381279926d959966b0dd801635f9238e5922971d3e60088a85e0e389d13b9629df9b8cb704d6a6709ae7220f3c1a53a561992ac9ae183c5ad860d2c3d
EBUILD spice-gtk-0.39-r2.ebuild 3233 BLAKE2B b0cd50b79dbf5a8edce15dc1cc1571480b3db1ee9daac6a5fa64b95a5d3a73f11d4f75deae0da8a24bec3bdf5f0be2a5c8503d57640daa485c23a530a2dd5f1a SHA512 85134bb29b726698a892e2f13e0eb0f5295a0eeb740bfe4a5127c88c279a2a1f901efdac09afcbf6334d6222bb9cff3f1cd02e483751c98665c7f0ca266de66e
EBUILD spice-gtk-9999.ebuild 3185 BLAKE2B e8e5fe02e0a2c84281c85f25287f2e2703f49e57189c4911ac8db56e0989cb18b5c96f69e534619bb54fcc8a71d476b54011d8c8973c1aeb5622f0aa97ff619d SHA512 ede7935207d82cdc9a27242354f8affdabecdf317128a468ab05cd65accfd15669abdb06d8daeeceedc96bbeaa1191f0ad0f6da531e4d4c89bf71120bb34d707
MISC metadata.xml 786 BLAKE2B 92848ffe7209398af8bb17b6ec7017474aac7abfd9b2d1babdf9724c909ab364c53d23115d46c7cfc316ac2014c56d89a80590924e5fa31302b9a9016783e30d SHA512 1de921c89ecdeeaf601d8a362f025ed636a4125152a5042e51ca7c54c1b0dbe479566ad9528913c24209ac4c22c94c7b8a927bf6e352ea8223c65408af3a7dfa
diff --git a/net-misc/spice-gtk/files/spice-gtk-0.37-adjust-to-window-scaling.patch b/net-misc/spice-gtk/files/spice-gtk-0.37-adjust-to-window-scaling.patch
deleted file mode 100644
index 504cb7c4848b..000000000000
--- a/net-misc/spice-gtk/files/spice-gtk-0.37-adjust-to-window-scaling.patch
+++ /dev/null
@@ -1,132 +0,0 @@
-From 262c84081fbd3cfc3d92e6ae9a60a780549d6c2f Mon Sep 17 00:00:00 2001
-From: Snir Sheriber <ssheribe@redhat.com>
-Date: Thu, 28 Feb 2019 11:44:34 +0200
-Subject: [PATCH] Adjust to window scaling
-
-When GDK_SCALE is != 1 and egl is used, the image presented does not
-fit to the window (scale of 2 is often used with hidpi monitors).
-Usually this is not a problem since all components are adjusted by
-gdk/gtk but with egl, pixel-based data is not being scaled. In this
-case window's scale value can be used in order to determine whether
-to use a pixel resource with higher resolution data.
-
-In order to reproduce the problem set spice with virgl/Intel-vGPU
-and run spice-gtk with GDK_SCALE=2
-
-This issue was also reported at freedesktop gitlab repo:
-https://gitlab.freedesktop.org/spice/spice-gtk/issues/99
-
-Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
-Acked-by: Victor Toso <victortoso@redhat.com>
----
- src/spice-widget-egl.c | 7 ++++---
- src/spice-widget.c | 27 +++++++++++++++++++--------
- 2 files changed, 23 insertions(+), 11 deletions(-)
-
-diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c
-index 43fccd7..7bae4e5 100644
---- a/src/spice-widget-egl.c
-+++ b/src/spice-widget-egl.c
-@@ -360,9 +360,9 @@ gboolean spice_egl_realize_display(SpiceDisplay *display, GdkWindow *win, GError
- DISPLAY_DEBUG(display, "egl realize");
- if (!spice_widget_init_egl_win(display, win, err))
- return FALSE;
--
-- spice_egl_resize_display(display, gdk_window_get_width(win),
-- gdk_window_get_height(win));
-+ gint scale_factor = gtk_widget_get_scale_factor(GTK_WIDGET(display));
-+ spice_egl_resize_display(display, gdk_window_get_width(win) * scale_factor,
-+ gdk_window_get_height(win) * scale_factor);
-
- return TRUE;
- }
-@@ -426,6 +426,7 @@ void spice_egl_unrealize_display(SpiceDisplay *display)
- #endif
- }
-
-+/* w and h should be adjusted to gdk scaling */
- G_GNUC_INTERNAL
- void spice_egl_resize_display(SpiceDisplay *display, int w, int h)
- {
-diff --git a/src/spice-widget.c b/src/spice-widget.c
-index 1f2a154..a9ba1f1 100644
---- a/src/spice-widget.c
-+++ b/src/spice-widget.c
-@@ -1382,7 +1382,8 @@ static void set_egl_enabled(SpiceDisplay *display, bool enabled)
- }
-
- if (enabled && d->egl.context_ready) {
-- spice_egl_resize_display(display, d->ww, d->wh);
-+ gint scale_factor = gtk_widget_get_scale_factor(GTK_WIDGET(display));
-+ spice_egl_resize_display(display, d->ww * scale_factor, d->wh * scale_factor);
- }
-
- d->egl.enabled = enabled;
-@@ -1978,11 +1979,14 @@ static void transform_input(SpiceDisplay *display,
- SpiceDisplayPrivate *d = display->priv;
- int display_x, display_y, display_w, display_h;
- double is;
-+ gint scale_factor = 1;
-
- spice_display_get_scaling(display, NULL,
- &display_x, &display_y,
- &display_w, &display_h);
--
-+ if (egl_enabled(d)) {
-+ scale_factor = gtk_widget_get_scale_factor(GTK_WIDGET(display));
-+ }
- /* For input we need a different scaling factor in order to
- be able to reach the full width of a display. For instance, consider
- a display of 100 pixels showing in a window 10 pixels wide. The normal
-@@ -1998,7 +2002,7 @@ static void transform_input(SpiceDisplay *display,
- coordinates in the inverse direction (window -> display) as the fb size
- (display -> window).
- */
-- is = (double)(d->area.width-1) / (double)(display_w-1);
-+ is = ((double)(d->area.width-1) / (double)(display_w-1)) * scale_factor;
-
- window_x -= display_x;
- window_y -= display_y;
-@@ -2183,8 +2187,10 @@ static void size_allocate(GtkWidget *widget, GtkAllocation *conf, gpointer data)
- d->wh = conf->height;
- recalc_geometry(widget);
- #if HAVE_EGL
-- if (egl_enabled(d))
-- spice_egl_resize_display(display, conf->width, conf->height);
-+ if (egl_enabled(d)) {
-+ gint scale_factor = gtk_widget_get_scale_factor(widget);
-+ spice_egl_resize_display(display, conf->width * scale_factor, conf->height * scale_factor);
-+ }
- #endif
- }
-
-@@ -2942,10 +2948,14 @@ void spice_display_get_scaling(SpiceDisplay *display,
- int ww, wh;
- int x, y, w, h;
- double s;
-+ gint scale_factor = 1;
-
- if (gtk_widget_get_realized (GTK_WIDGET(display))) {
-- ww = gtk_widget_get_allocated_width(GTK_WIDGET(display));
-- wh = gtk_widget_get_allocated_height(GTK_WIDGET(display));
-+ if (egl_enabled(d)) {
-+ scale_factor = gtk_widget_get_scale_factor(GTK_WIDGET(display));
-+ }
-+ ww = gtk_widget_get_allocated_width(GTK_WIDGET(display)) * scale_factor;
-+ wh = gtk_widget_get_allocated_height(GTK_WIDGET(display)) * scale_factor;
- } else {
- ww = fbw;
- wh = fbh;
-@@ -3091,7 +3101,8 @@ void spice_display_widget_gl_scanout(SpiceDisplay *display)
- g_clear_error(&err);
- }
-
-- spice_egl_resize_display(display, d->ww, d->wh);
-+ gint scale_factor = gtk_widget_get_scale_factor(GTK_WIDGET(display));
-+ spice_egl_resize_display(display, d->ww * scale_factor, d->wh * scale_factor);
- }
- #endif
-
---
-2.21.0
-
diff --git a/net-misc/spice-gtk/spice-gtk-0.37-r3.ebuild b/net-misc/spice-gtk/spice-gtk-0.37-r3.ebuild
deleted file mode 100644
index e6215587090b..000000000000
--- a/net-misc/spice-gtk/spice-gtk-0.37-r3.ebuild
+++ /dev/null
@@ -1,140 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-GCONF_DEBUG="no"
-VALA_MIN_API_VERSION="0.14"
-VALA_USE_DEPEND="vapigen"
-
-inherit autotools desktop 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 ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86"
-IUSE="+gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard static-libs usbredir vala webdav"
-
-# 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="
- >=dev-libs/glib-2.46:2
- dev-libs/json-glib:0=
- media-libs/gst-plugins-base:1.0
- media-libs/gst-plugins-good:1.0
- media-libs/gstreamer:1.0[introspection?]
- media-libs/opus
- sys-libs/zlib
- virtual/jpeg:0=
- >=x11-libs/cairo-1.2
- >=x11-libs/pixman-0.17.7
- gtk3? ( x11-libs/gtk+:3[introspection?] )
- introspection? ( dev-libs/gobject-introspection )
- dev-libs/openssl:0=
- lz4? ( app-arch/lz4 )
- pulseaudio? ( media-sound/pulseaudio[glib] )
- sasl? ( dev-libs/cyrus-sasl )
- smartcard? ( app-emulation/qemu[smartcard] )
- usbredir? (
- sys-apps/hwids
- >=sys-apps/usbredir-0.4.2
- virtual/libusb:1
- policykit? (
- sys-apps/acl
- >=sys-auth/polkit-0.110-r1
- !~sys-auth/polkit-0.111 )
- )
- webdav? (
- net-libs/phodav:2.0
- >=net-libs/libsoup-2.49.91:2.4 )
-"
-# TODO: spice-gtk has an automagic dependency on x11-libs/libva without a
-# configure knob. The package is relatively lightweight so we just depend
-# on it unconditionally for now. It would be cleaner to transform this into
-# a USE="vaapi" conditional and patch the buildsystem...
-RDEPEND="${RDEPEND}
- amd64? ( x11-libs/libva:= )
- arm64? ( x11-libs/libva:= )
- x86? ( x11-libs/libva:= )
-"
-DEPEND="${RDEPEND}
- >=app-emulation/spice-protocol-0.14.0
- dev-perl/Text-CSV
- dev-util/glib-utils
- >=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}"/${P}-adjust-to-window-scaling.patch
-)
-
-src_prepare() {
- # bug 558558
- export GIT_CEILING_DIRECTORIES="${WORKDIR}"
-
- 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
- myconf="
- $(use_with gtk3 gtk 3.0)
- $(use_enable introspection)
- $(use_enable mjpeg builtin-mjpeg)
- $(use_enable policykit polkit)
- $(use_enable pulseaudio pulse)
- $(use_with sasl)
- $(use_enable smartcard)
- $(use_enable static-libs static)
- $(use_enable usbredir)
- $(use_with usbredir usb-acl-helper-dir /usr/libexec)
- $(use_with usbredir usb-ids-path /usr/share/misc/usb.ids)
- $(use_enable vala)
- $(use_enable webdav)
- --disable-celt051
- --disable-gtk-doc
- --disable-maintainer-mode
- --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
-
- # Remove .la files if they're not needed
- use static-libs || find "${D}" -name '*.la' -delete || die
-
- make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;"
- readme.gentoo_create_doc
-}
diff --git a/net-misc/spice-gtk/spice-gtk-0.38-r2.ebuild b/net-misc/spice-gtk/spice-gtk-0.38-r2.ebuild
deleted file mode 100644
index d70e837b73f2..000000000000
--- a/net-misc/spice-gtk/spice-gtk-0.38-r2.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-VALA_MIN_API_VERSION="0.14"
-VALA_USE_DEPEND="vapigen"
-
-inherit desktop meson readme.gentoo-r1 vala xdg-utils
-
-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.xz"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="+gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard usbredir vala webdav"
-
-# 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="
- >=dev-libs/glib-2.46:2
- dev-libs/json-glib:0=
- media-libs/gst-plugins-base:1.0
- media-libs/gst-plugins-good:1.0
- media-libs/gstreamer:1.0[introspection?]
- media-libs/opus
- sys-libs/zlib
- virtual/jpeg:0=
- >=x11-libs/cairo-1.2
- >=x11-libs/pixman-0.17.7
- gtk3? ( x11-libs/gtk+:3[introspection?] )
- introspection? ( dev-libs/gobject-introspection )
- dev-libs/openssl:0=
- lz4? ( app-arch/lz4 )
- pulseaudio? (
- media-plugins/gst-plugins-pulse:1.0
- )
- sasl? ( dev-libs/cyrus-sasl )
- smartcard? ( app-emulation/qemu[smartcard] )
- usbredir? (
- sys-apps/hwids
- >=sys-apps/usbredir-0.4.2
- virtual/libusb:1
- policykit? (
- sys-apps/acl
- >=sys-auth/polkit-0.110-r1
- )
- )
- webdav? (
- net-libs/phodav:2.0
- >=net-libs/libsoup-2.49.91:2.4 )
-"
-# TODO: spice-gtk has an automagic dependency on x11-libs/libva without a
-# configure knob. The package is relatively lightweight so we just depend
-# on it unconditionally for now. It would be cleaner to transform this into
-# a USE="vaapi" conditional and patch the buildsystem...
-RDEPEND="${RDEPEND}
- amd64? ( x11-libs/libva:= )
- arm64? ( x11-libs/libva:= )
- x86? ( x11-libs/libva:= )
-"
-DEPEND="${RDEPEND}
- >=app-emulation/spice-protocol-0.14.1
- dev-perl/Text-CSV
- dev-util/glib-utils
- >=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
-
- use vala && vala_src_prepare
-}
-
-src_configure() {
- local emesonargs=(
- $(meson_feature gtk3 gtk)
- $(meson_feature introspection)
- $(meson_use mjpeg builtin-mjpeg)
- $(meson_feature policykit polkit)
- $(meson_feature pulseaudio pulse)
- $(meson_feature lz4)
- $(meson_feature sasl)
- $(meson_feature smartcard)
- $(meson_feature usbredir)
- $(meson_feature vala vapi)
- $(meson_feature webdav)
- )
-
- if use usbredir; then
- emesonargs+=( -D "usb-acl-helper-dir=/usr/libexec" )
- emesonargs+=( -D "usb-ids-path=/usr/share/misc/usb.ids" )
- fi
-
- meson_src_configure
-}
-
-src_install() {
- meson_src_install
-
- make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;"
- readme.gentoo_create_doc
-}
diff --git a/net-misc/spice-gtk/spice-gtk-0.38-r3.ebuild b/net-misc/spice-gtk/spice-gtk-0.38-r3.ebuild
deleted file mode 100644
index 3d714471af99..000000000000
--- a/net-misc/spice-gtk/spice-gtk-0.38-r3.ebuild
+++ /dev/null
@@ -1,125 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-VALA_MIN_API_VERSION="0.14"
-VALA_USE_DEPEND="vapigen"
-
-PYTHON_COMPAT=( python3_{7..9} )
-
-inherit desktop meson python-any-r1 readme.gentoo-r1 vala xdg-utils
-
-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.xz"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="+gtk3 +introspection lz4 mjpeg policykit pulseaudio sasl smartcard usbredir vala webdav"
-
-# 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="
- >=dev-libs/glib-2.46:2
- dev-libs/json-glib:0=
- media-libs/gst-plugins-base:1.0
- media-libs/gst-plugins-good:1.0
- media-libs/gstreamer:1.0[introspection?]
- media-libs/opus
- sys-libs/zlib
- virtual/jpeg:0=
- >=x11-libs/cairo-1.2
- >=x11-libs/pixman-0.17.7
- gtk3? ( x11-libs/gtk+:3[introspection?] )
- introspection? ( dev-libs/gobject-introspection )
- dev-libs/openssl:0=
- lz4? ( app-arch/lz4 )
- pulseaudio? (
- media-plugins/gst-plugins-pulse:1.0
- )
- sasl? ( dev-libs/cyrus-sasl )
- smartcard? ( app-emulation/qemu[smartcard] )
- usbredir? (
- sys-apps/hwids
- >=sys-apps/usbredir-0.4.2
- virtual/libusb:1
- policykit? (
- sys-apps/acl
- >=sys-auth/polkit-0.110-r1
- )
- )
- webdav? (
- net-libs/phodav:2.0
- >=net-libs/libsoup-2.49.91:2.4 )
-"
-# TODO: spice-gtk has an automagic dependency on x11-libs/libva without a
-# configure knob. The package is relatively lightweight so we just depend
-# on it unconditionally for now. It would be cleaner to transform this into
-# a USE="vaapi" conditional and patch the buildsystem...
-RDEPEND="${RDEPEND}
- amd64? ( x11-libs/libva:= )
- arm64? ( x11-libs/libva:= )
- x86? ( x11-libs/libva:= )
-"
-DEPEND="${RDEPEND}
- >=app-emulation/spice-protocol-0.14.1
- dev-perl/Text-CSV
- dev-util/glib-utils
- >=dev-util/gtk-doc-am-1.14
- >=dev-util/intltool-0.40.0
- >=sys-devel/gettext-0.17
- virtual/pkgconfig
- vala? ( $(vala_depend) )
-"
-
-BDEPEND="
- $(python_gen_any_dep '
- dev-python/six[${PYTHON_USEDEP}]
- dev-python/pyparsing[${PYTHON_USEDEP}]
- ')
-"
-
-python_check_deps() {
- has_version "dev-python/six[${PYTHON_USEDEP}]" &&
- has_version "dev-python/pyparsing[${PYTHON_USEDEP}]"
-}
-
-src_prepare() {
- default
- sed -i -e "/^ '-Werror',/d" \
- subprojects/spice-common/meson.build || die
- use vala && vala_src_prepare
-}
-
-src_configure() {
- local emesonargs=(
- $(meson_feature gtk3 gtk)
- $(meson_feature introspection)
- $(meson_use mjpeg builtin-mjpeg)
- $(meson_feature policykit polkit)
- $(meson_feature pulseaudio pulse)
- $(meson_feature lz4)
- $(meson_feature sasl)
- $(meson_feature smartcard)
- $(meson_feature usbredir)
- $(meson_feature vala vapi)
- $(meson_feature webdav)
- )
-
- if use usbredir; then
- emesonargs+=( -D "usb-acl-helper-dir=/usr/libexec" )
- emesonargs+=( -D "usb-ids-path=/usr/share/misc/usb.ids" )
- fi
-
- meson_src_configure
-}
-
-src_install() {
- meson_src_install
-
- make_desktop_entry spicy Spicy "utilities-terminal" "Network;RemoteAccess;"
- readme.gentoo_create_doc
-}