From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6B24F1382C5 for ; Wed, 30 Dec 2020 15:32:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83C95E0A4F; Wed, 30 Dec 2020 15:32:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5F0EDE0A4F for ; Wed, 30 Dec 2020 15:32:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E78D634189A for ; Wed, 30 Dec 2020 15:32:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 70296C3 for ; Wed, 30 Dec 2020 15:32:45 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1609342356.93fd19e645c7bc2484cac4c24bb36e244a13ee01.bkohler@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/spice-gtk/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/spice-gtk/spice-gtk-0.38-r1.ebuild net-misc/spice-gtk/spice-gtk-9999.ebuild X-VCS-Directories: net-misc/spice-gtk/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: 93fd19e645c7bc2484cac4c24bb36e244a13ee01 X-VCS-Branch: master Date: Wed, 30 Dec 2020 15:32:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 77a8c1cb-ecf2-4c14-8961-eba5b556485c X-Archives-Hash: 7e3880a19304a152f17028438986b2b8 commit: 93fd19e645c7bc2484cac4c24bb36e244a13ee01 Author: Ben Kohler gentoo org> AuthorDate: Wed Dec 30 15:32:13 2020 +0000 Commit: Ben Kohler gentoo org> CommitDate: Wed Dec 30 15:32:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93fd19e6 net-misc/spice-gtk: handle python deps & remove -Werror Simple sed to remove Werror for now, it is already removed in upstream git so this fix can be removed for next release. Closes: https://bugs.gentoo.org/744841 Closes: https://bugs.gentoo.org/718556 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Ben Kohler gentoo.org> ...ce-gtk-9999.ebuild => spice-gtk-0.38-r1.ebuild} | 25 +++++++++++++++++----- net-misc/spice-gtk/spice-gtk-9999.ebuild | 16 +++++++++++++- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/net-misc/spice-gtk/spice-gtk-9999.ebuild b/net-misc/spice-gtk/spice-gtk-0.38-r1.ebuild similarity index 81% copy from net-misc/spice-gtk/spice-gtk-9999.ebuild copy to net-misc/spice-gtk/spice-gtk-0.38-r1.ebuild index e262e6bf9e8..0102b373e37 100644 --- a/net-misc/spice-gtk/spice-gtk-9999.ebuild +++ b/net-misc/spice-gtk/spice-gtk-0.38-r1.ebuild @@ -6,15 +6,17 @@ EAPI=7 VALA_MIN_API_VERSION="0.14" VALA_USE_DEPEND="vapigen" -inherit desktop eutils git-r3 meson readme.gentoo-r1 vala xdg-utils +PYTHON_COMPAT=( python3_{7..9} ) + +inherit desktop eutils 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" -EGIT_REPO_URI="https://anongit.freedesktop.org/git/spice/spice-gtk.git" -KEYWORDS="" +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 libressl lz4 mjpeg policykit pulseaudio sasl smartcard usbredir vala webdav" # TODO: @@ -64,7 +66,7 @@ RDEPEND="${RDEPEND} x86? ( x11-libs/libva:= ) " DEPEND="${RDEPEND} - ~app-emulation/spice-protocol-9999 + >=app-emulation/spice-protocol-0.14.1 dev-perl/Text-CSV dev-util/glib-utils >=dev-util/gtk-doc-am-1.14 @@ -74,9 +76,22 @@ DEPEND="${RDEPEND} 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 } diff --git a/net-misc/spice-gtk/spice-gtk-9999.ebuild b/net-misc/spice-gtk/spice-gtk-9999.ebuild index e262e6bf9e8..c507c8b5b36 100644 --- a/net-misc/spice-gtk/spice-gtk-9999.ebuild +++ b/net-misc/spice-gtk/spice-gtk-9999.ebuild @@ -6,7 +6,9 @@ EAPI=7 VALA_MIN_API_VERSION="0.14" VALA_USE_DEPEND="vapigen" -inherit desktop eutils git-r3 meson readme.gentoo-r1 vala xdg-utils +PYTHON_COMPAT=( python3_{7..9} ) + +inherit desktop eutils git-r3 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/" @@ -74,6 +76,18 @@ DEPEND="${RDEPEND} 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