From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D2D14138CCF for ; Sun, 24 May 2015 16:33:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF864E0C51; Sun, 24 May 2015 16:33:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7310CE0C51 for ; Sun, 24 May 2015 16:33:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C92723408EA for ; Sun, 24 May 2015 16:33:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1C8449FF for ; Sun, 24 May 2015 16:33:07 +0000 (UTC) From: "Gilles Dartiguelongue" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gilles Dartiguelongue" Message-ID: <1432485164.ad82653641cca1914c2e2ff0867d911e28cefcaa.eva@gentoo> Subject: [gentoo-commits] proj/gnome:master commit in: net-misc/spice-gtk/ X-VCS-Repository: proj/gnome X-VCS-Files: net-misc/spice-gtk/spice-gtk-0.28.ebuild X-VCS-Directories: net-misc/spice-gtk/ X-VCS-Committer: eva X-VCS-Committer-Name: Gilles Dartiguelongue X-VCS-Revision: ad82653641cca1914c2e2ff0867d911e28cefcaa X-VCS-Branch: master Date: Sun, 24 May 2015 16:33:07 +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-Archives-Salt: a2b89968-971d-4e28-94ed-5a585c3a36f5 X-Archives-Hash: 55b7ff8ea7761b68a38c160e18782d02 commit: ad82653641cca1914c2e2ff0867d911e28cefcaa Author: Gilles Dartiguelongue gentoo org> AuthorDate: Sun May 24 16:22:49 2015 +0000 Commit: Gilles Dartiguelongue gentoo org> CommitDate: Sun May 24 16:32:44 2015 +0000 URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=ad826536 net-misc/spice-gtk: use patched multibuild to support python+gtk variants net-misc/spice-gtk/spice-gtk-0.28.ebuild | 37 ++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/net-misc/spice-gtk/spice-gtk-0.28.ebuild b/net-misc/spice-gtk/spice-gtk-0.28.ebuild index f5a0a90..edabb3e 100644 --- a/net-misc/spice-gtk/spice-gtk-0.28.ebuild +++ b/net-misc/spice-gtk/spice-gtk-0.28.ebuild @@ -10,7 +10,7 @@ VALA_USE_DEPEND="vapigen" PYTHON_COMPAT=( python2_7 ) -inherit autotools eutils multibuild python-single-r1 vala +inherit autotools eutils multibuild python-r1 vala DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI" HOMEPAGE="http://spice-space.org http://gitorious.org/spice-gtk" @@ -87,6 +87,14 @@ src_prepare() { use vala && vala_src_prepare } +filter_combination() { + if [[ ${MULTIBUILD_VARIANT} = "2.0" ]] && use python ; then + python_foreach_impl $@ + else + $@ + fi +} + src_configure() { local myconf local audio="no" @@ -104,7 +112,6 @@ src_configure() { $(use_enable static-libs static) \ $(use_enable introspection) \ --with-audio=${audio} \ - $(use_with python) \ $(use_with sasl) \ $(use_enable smartcard) \ $(use_enable usbredir) \ @@ -124,25 +131,37 @@ src_configure() { use gtk3 && MULTIBUILD_VARIANTS+=( 3.0 ) configure() { - [[ ${MULTIBUILD_VARIANT} != "2.0" ]] && myconf+=( --with-python ) - myconf+=( --with-gtk=${MULTIBUILD_VARIANT} ) - ECONF_SOURCE="${S}" econf ${myconf[@]} + local myconf=() + + if [[ ${MULTIBUILD_ID} =~ "python" ]] ; then + myconf+=( + $(use_with python) + --with-gtk=${MULTIBUILD_VARIANT[1]} + ) + else + myconf+=( + --without-python + --with-gtk=${MULTIBUILD_VARIANT} + ) + fi + + ECONF_SOURCE="${S}" econf $@ ${myconf[@]} } - multibuild_foreach_variant run_in_build_dir configure + multibuild_foreach_variant filter_combination run_in_build_dir configure ${myconf} } src_compile() { - multibuild_foreach_variant run_in_build_dir default + multibuild_foreach_variant filter_combination run_in_build_dir default } src_test() { - multibuild_foreach_variant run_in_build_dir default + multibuild_foreach_variant filter_combination run_in_build_dir default } src_install() { dodoc AUTHORS ChangeLog NEWS README THANKS TODO - multibuild_foreach_variant run_in_build_dir default + multibuild_foreach_variant filter_combination run_in_build_dir default # Remove .la files if they're not needed use static-libs || prune_libtool_files