1 |
commit: 93fd19e645c7bc2484cac4c24bb36e244a13ee01 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 30 15:32:13 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 30 15:32:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93fd19e6 |
7 |
|
8 |
net-misc/spice-gtk: handle python deps & remove -Werror |
9 |
|
10 |
Simple sed to remove Werror for now, it is already removed in upstream |
11 |
git so this fix can be removed for next release. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/744841 |
14 |
Closes: https://bugs.gentoo.org/718556 |
15 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
16 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
17 |
|
18 |
...ce-gtk-9999.ebuild => spice-gtk-0.38-r1.ebuild} | 25 +++++++++++++++++----- |
19 |
net-misc/spice-gtk/spice-gtk-9999.ebuild | 16 +++++++++++++- |
20 |
2 files changed, 35 insertions(+), 6 deletions(-) |
21 |
|
22 |
diff --git a/net-misc/spice-gtk/spice-gtk-9999.ebuild b/net-misc/spice-gtk/spice-gtk-0.38-r1.ebuild |
23 |
similarity index 81% |
24 |
copy from net-misc/spice-gtk/spice-gtk-9999.ebuild |
25 |
copy to net-misc/spice-gtk/spice-gtk-0.38-r1.ebuild |
26 |
index e262e6bf9e8..0102b373e37 100644 |
27 |
--- a/net-misc/spice-gtk/spice-gtk-9999.ebuild |
28 |
+++ b/net-misc/spice-gtk/spice-gtk-0.38-r1.ebuild |
29 |
@@ -6,15 +6,17 @@ EAPI=7 |
30 |
VALA_MIN_API_VERSION="0.14" |
31 |
VALA_USE_DEPEND="vapigen" |
32 |
|
33 |
-inherit desktop eutils git-r3 meson readme.gentoo-r1 vala xdg-utils |
34 |
+PYTHON_COMPAT=( python3_{7..9} ) |
35 |
+ |
36 |
+inherit desktop eutils meson python-any-r1 readme.gentoo-r1 vala xdg-utils |
37 |
|
38 |
DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" |
39 |
HOMEPAGE="https://www.spice-space.org https://cgit.freedesktop.org/spice/spice-gtk/" |
40 |
|
41 |
LICENSE="LGPL-2.1" |
42 |
SLOT="0" |
43 |
-EGIT_REPO_URI="https://anongit.freedesktop.org/git/spice/spice-gtk.git" |
44 |
-KEYWORDS="" |
45 |
+SRC_URI="https://www.spice-space.org/download/gtk/${P}.tar.xz" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
47 |
IUSE="+gtk3 +introspection libressl lz4 mjpeg policykit pulseaudio sasl smartcard usbredir vala webdav" |
48 |
|
49 |
# TODO: |
50 |
@@ -64,7 +66,7 @@ RDEPEND="${RDEPEND} |
51 |
x86? ( x11-libs/libva:= ) |
52 |
" |
53 |
DEPEND="${RDEPEND} |
54 |
- ~app-emulation/spice-protocol-9999 |
55 |
+ >=app-emulation/spice-protocol-0.14.1 |
56 |
dev-perl/Text-CSV |
57 |
dev-util/glib-utils |
58 |
>=dev-util/gtk-doc-am-1.14 |
59 |
@@ -74,9 +76,22 @@ DEPEND="${RDEPEND} |
60 |
vala? ( $(vala_depend) ) |
61 |
" |
62 |
|
63 |
+BDEPEND=" |
64 |
+ $(python_gen_any_dep ' |
65 |
+ dev-python/six[${PYTHON_USEDEP}] |
66 |
+ dev-python/pyparsing[${PYTHON_USEDEP}] |
67 |
+ ') |
68 |
+" |
69 |
+ |
70 |
+python_check_deps() { |
71 |
+ has_version "dev-python/six[${PYTHON_USEDEP}]" && |
72 |
+ has_version "dev-python/pyparsing[${PYTHON_USEDEP}]" |
73 |
+} |
74 |
+ |
75 |
src_prepare() { |
76 |
default |
77 |
- |
78 |
+ sed -i -e "/^ '-Werror',/d" \ |
79 |
+ subprojects/spice-common/meson.build || die |
80 |
use vala && vala_src_prepare |
81 |
} |
82 |
|
83 |
|
84 |
diff --git a/net-misc/spice-gtk/spice-gtk-9999.ebuild b/net-misc/spice-gtk/spice-gtk-9999.ebuild |
85 |
index e262e6bf9e8..c507c8b5b36 100644 |
86 |
--- a/net-misc/spice-gtk/spice-gtk-9999.ebuild |
87 |
+++ b/net-misc/spice-gtk/spice-gtk-9999.ebuild |
88 |
@@ -6,7 +6,9 @@ EAPI=7 |
89 |
VALA_MIN_API_VERSION="0.14" |
90 |
VALA_USE_DEPEND="vapigen" |
91 |
|
92 |
-inherit desktop eutils git-r3 meson readme.gentoo-r1 vala xdg-utils |
93 |
+PYTHON_COMPAT=( python3_{7..9} ) |
94 |
+ |
95 |
+inherit desktop eutils git-r3 meson python-any-r1 readme.gentoo-r1 vala xdg-utils |
96 |
|
97 |
DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" |
98 |
HOMEPAGE="https://www.spice-space.org https://cgit.freedesktop.org/spice/spice-gtk/" |
99 |
@@ -74,6 +76,18 @@ DEPEND="${RDEPEND} |
100 |
vala? ( $(vala_depend) ) |
101 |
" |
102 |
|
103 |
+BDEPEND=" |
104 |
+ $(python_gen_any_dep ' |
105 |
+ dev-python/six[${PYTHON_USEDEP}] |
106 |
+ dev-python/pyparsing[${PYTHON_USEDEP}] |
107 |
+ ') |
108 |
+" |
109 |
+ |
110 |
+python_check_deps() { |
111 |
+ has_version "dev-python/six[${PYTHON_USEDEP}]" && |
112 |
+ has_version "dev-python/pyparsing[${PYTHON_USEDEP}]" |
113 |
+} |
114 |
+ |
115 |
src_prepare() { |
116 |
default |