public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/gnumeric/
Date: Fri,  6 Sep 2019 07:29:11 +0000 (UTC)	[thread overview]
Message-ID: <1567754776.6eb1fb6129b4297b07ecb003e36f1d84b9c6486f.mgorny@gentoo> (raw)

commit:     6eb1fb6129b4297b07ecb003e36f1d84b9c6486f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 13 07:58:09 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep  6 07:26:16 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb1fb61

app-office/gnumeric: Improve Python support

Add missing PYTHON_REQUIRED_USE and PYTHON_DEPS for gi.overrides
install.  While at it, make it conditional to USE=introspection.
Reduce deps for USE=python to Python 2 variants.

Closes: https://bugs.gentoo.org/690552
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/12691
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-office/gnumeric/gnumeric-1.12.43.ebuild | 17 +++++++++++------
 app-office/gnumeric/gnumeric-1.12.44.ebuild | 17 +++++++++++------
 2 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/app-office/gnumeric/gnumeric-1.12.43.ebuild b/app-office/gnumeric/gnumeric-1.12.43.ebuild
index ed6ea6ba93b..903ec136a3a 100644
--- a/app-office/gnumeric/gnumeric-1.12.43.ebuild
+++ b/app-office/gnumeric/gnumeric-1.12.43.ebuild
@@ -16,7 +16,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
 
 IUSE="+introspection libgda perl python"
 # python-loader plugin is python2.7 only
-REQUIRED_USE="python? ( $(python_gen_useflags -2) )"
+REQUIRED_USE="
+	introspection? ( ${PYTHON_REQUIRED_USE} )
+	python? ( || ( $(python_gen_useflags -2) ) )"
 
 # Missing gnome-extra/libgnomedb required version in tree
 # but its upstream is dead and will be dropped soon.
@@ -37,9 +39,10 @@ RDEPEND="
 	>=x11-libs/gtk+-3.8.7:3
 	x11-libs/cairo:=[svg]
 
-	introspection? ( >=dev-libs/gobject-introspection-1:= )
+	introspection? ( ${PYTHON_DEPS}
+	>=dev-libs/gobject-introspection-1:= )
 	perl? ( dev-lang/perl:= )
-	python? ( ${PYTHON_DEPS}
+	python? ( $(python_gen_impl_dep '' -2)
 		>=dev-python/pygobject-3:3[${PYTHON_USEDEP}] )
 	libgda? ( gnome-extra/libgda:5[gtk] )
 "
@@ -59,7 +62,7 @@ src_prepare() {
 
 src_configure() {
 	if use python ; then
-		python_setup 'python2*'
+		python_setup -2
 	fi
 	gnome2_src_configure \
 		--disable-static \
@@ -72,6 +75,8 @@ src_configure() {
 
 src_install() {
 	gnome2_src_install
-	python_moduleinto gi.overrides
-	python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+	if use introspection; then
+		python_moduleinto gi.overrides
+		python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+	fi
 }

diff --git a/app-office/gnumeric/gnumeric-1.12.44.ebuild b/app-office/gnumeric/gnumeric-1.12.44.ebuild
index ed6ea6ba93b..903ec136a3a 100644
--- a/app-office/gnumeric/gnumeric-1.12.44.ebuild
+++ b/app-office/gnumeric/gnumeric-1.12.44.ebuild
@@ -16,7 +16,9 @@ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
 
 IUSE="+introspection libgda perl python"
 # python-loader plugin is python2.7 only
-REQUIRED_USE="python? ( $(python_gen_useflags -2) )"
+REQUIRED_USE="
+	introspection? ( ${PYTHON_REQUIRED_USE} )
+	python? ( || ( $(python_gen_useflags -2) ) )"
 
 # Missing gnome-extra/libgnomedb required version in tree
 # but its upstream is dead and will be dropped soon.
@@ -37,9 +39,10 @@ RDEPEND="
 	>=x11-libs/gtk+-3.8.7:3
 	x11-libs/cairo:=[svg]
 
-	introspection? ( >=dev-libs/gobject-introspection-1:= )
+	introspection? ( ${PYTHON_DEPS}
+	>=dev-libs/gobject-introspection-1:= )
 	perl? ( dev-lang/perl:= )
-	python? ( ${PYTHON_DEPS}
+	python? ( $(python_gen_impl_dep '' -2)
 		>=dev-python/pygobject-3:3[${PYTHON_USEDEP}] )
 	libgda? ( gnome-extra/libgda:5[gtk] )
 "
@@ -59,7 +62,7 @@ src_prepare() {
 
 src_configure() {
 	if use python ; then
-		python_setup 'python2*'
+		python_setup -2
 	fi
 	gnome2_src_configure \
 		--disable-static \
@@ -72,6 +75,8 @@ src_configure() {
 
 src_install() {
 	gnome2_src_install
-	python_moduleinto gi.overrides
-	python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+	if use introspection; then
+		python_moduleinto gi.overrides
+		python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
+	fi
 }


             reply	other threads:[~2019-09-06  7:29 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-06  7:29 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-13 17:03 [gentoo-commits] repo/gentoo:master commit in: app-office/gnumeric/ Pacho Ramos
2025-04-13 17:03 Pacho Ramos
2024-04-07  8:38 Arthur Zamarin
2024-03-15  4:42 Sam James
2024-03-15  4:39 Sam James
2024-02-17 16:01 Mart Raudsepp
2024-02-17 16:01 Mart Raudsepp
2023-11-04 20:20 Mart Raudsepp
2023-03-30 15:53 Arthur Zamarin
2023-02-06  3:04 Matt Turner
2023-01-23  3:58 Matt Turner
2022-10-08 18:25 Sam James
2022-09-22  2:56 Matt Turner
2022-05-02 21:47 David Seifert
2022-04-16 12:25 Yixun Lan
2022-03-19 17:10 David Seifert
2022-03-19  7:53 Agostino Sarubbo
2022-03-15  1:48 Matt Turner
2022-03-15  1:48 Matt Turner
2022-01-22 12:34 David Seifert
2022-01-22 12:34 David Seifert
2022-01-22  9:51 Pacho Ramos
2021-06-23 21:33 David Seifert
2021-05-24 20:01 David Seifert
2021-05-24 13:19 Agostino Sarubbo
2021-05-23 22:28 Agostino Sarubbo
2021-04-29  1:05 Matt Turner
2021-04-22 12:15 David Seifert
2021-01-31 19:32 David Seifert
2021-01-31 18:48 Sam James
2021-01-26 15:19 Sam James
2020-09-12 12:47 David Seifert
2020-06-28 21:04 David Seifert
2020-06-28 20:44 Agostino Sarubbo
2020-06-28 20:27 Agostino Sarubbo
2020-06-07 14:20 David Seifert
2020-04-05 21:51 David Seifert
2020-04-05  6:38 Mikle Kolyada
2020-04-05  6:38 Mikle Kolyada
2020-02-27 23:49 David Seifert
2020-02-09 16:11 Michał Górny
2020-01-03 20:40 David Seifert
2019-02-04 19:58 Dennis Lamm
2018-11-17 17:22 Gilles Dartiguelongue
2018-11-17 17:22 Gilles Dartiguelongue
2018-05-06 21:41 Mart Raudsepp
2018-04-29  0:08 Mart Raudsepp
2018-04-26 17:15 Thomas Deutschmann
2018-02-07 23:20 Gilles Dartiguelongue
2017-12-20 20:23 Mart Raudsepp
2017-07-10  5:30 Mart Raudsepp
2017-07-10  5:30 Mart Raudsepp
2017-03-17 21:48 Andreas Hüttel
2016-09-05 22:37 Gilles Dartiguelongue
2016-07-02 10:43 Pacho Ramos
2016-07-02 10:43 Pacho Ramos
2016-05-28 15:49 Pacho Ramos
2016-05-28 15:49 Pacho Ramos
2016-02-20 13:55 Pacho Ramos
2016-02-20 13:55 Pacho Ramos
2016-01-10 18:30 Pacho Ramos
2015-12-26 14:20 Pacho Ramos
2015-12-26 14:20 Pacho Ramos
2015-10-17 11:24 Pacho Ramos
2015-10-17 11:24 Pacho Ramos
2015-09-07 16:24 Mikle Kolyada
2015-08-31 18:20 Gilles Dartiguelongue
2015-08-31 18:20 Gilles Dartiguelongue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1567754776.6eb1fb6129b4297b07ecb003e36f1d84b9c6486f.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox