1 |
commit: dfc99c2058fa2a623d10d11928d6eb531dfa966f |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 17 17:18:21 2018 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 17 17:21:53 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfc99c20 |
7 |
|
8 |
app-office/gnumeric: add missing DTD to DEPEND |
9 |
|
10 |
Delete unneeded SRC_URI. Make sure gobject-introspection can be |
11 |
installed for all supported python versions. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/649390 |
14 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
15 |
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org> |
16 |
|
17 |
app-office/gnumeric/gnumeric-1.12.43.ebuild | 28 ++++++++++++++++++++-------- |
18 |
1 file changed, 20 insertions(+), 8 deletions(-) |
19 |
|
20 |
diff --git a/app-office/gnumeric/gnumeric-1.12.43.ebuild b/app-office/gnumeric/gnumeric-1.12.43.ebuild |
21 |
index 84dd56b8e17..4f7ba1dc802 100644 |
22 |
--- a/app-office/gnumeric/gnumeric-1.12.43.ebuild |
23 |
+++ b/app-office/gnumeric/gnumeric-1.12.43.ebuild |
24 |
@@ -3,20 +3,20 @@ |
25 |
|
26 |
EAPI="6" |
27 |
GNOME2_LA_PUNT="yes" |
28 |
-PYTHON_COMPAT=( python2_7 ) |
29 |
+PYTHON_COMPAT=( python2_7 python{3_4,3_5,3_6} ) |
30 |
|
31 |
-inherit gnome2 flag-o-matic python-single-r1 |
32 |
+inherit gnome2 flag-o-matic python-r1 |
33 |
|
34 |
DESCRIPTION="The GNOME Spreadsheet" |
35 |
HOMEPAGE="http://www.gnumeric.org/" |
36 |
LICENSE="GPL-2" |
37 |
-SRC_URI="http://ftp.gnome.org/pub/GNOME/sources/gnumeric/1.12/gnumeric-1.12.43.tar.xz" |
38 |
|
39 |
SLOT="0" |
40 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
41 |
|
42 |
-IUSE="introspection libgda perl python" |
43 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
44 |
+IUSE="+introspection libgda perl python" |
45 |
+# python-loader plugin is python2.7 only |
46 |
+REQUIRED_USE="python? ( $(python_gen_useflags -2) )" |
47 |
|
48 |
# Missing gnome-extra/libgnomedb required version in tree |
49 |
# but its upstream is dead and will be dropped soon. |
50 |
@@ -44,17 +44,23 @@ RDEPEND=" |
51 |
libgda? ( gnome-extra/libgda:5[gtk] ) |
52 |
" |
53 |
DEPEND="${RDEPEND} |
54 |
+ app-text/docbook-xml-dtd:4.5 |
55 |
+ app-text/yelp-tools |
56 |
dev-util/gtk-doc-am |
57 |
>=dev-util/intltool-0.35.0 |
58 |
- app-text/yelp-tools |
59 |
virtual/pkgconfig |
60 |
" |
61 |
|
62 |
-pkg_setup() { |
63 |
- use python && python-single-r1_pkg_setup |
64 |
+src_prepare() { |
65 |
+ # Manage gi overrides ourselves |
66 |
+ sed '/SUBDIRS/ s/introspection//' -i Makefile.{am,in} || die |
67 |
+ gnome2_src_prepare |
68 |
} |
69 |
|
70 |
src_configure() { |
71 |
+ if use python ; then |
72 |
+ python_setup 'python2*' |
73 |
+ fi |
74 |
gnome2_src_configure \ |
75 |
--disable-static \ |
76 |
--with-zlib \ |
77 |
@@ -63,3 +69,9 @@ src_configure() { |
78 |
$(use_with perl) \ |
79 |
$(use_with python) |
80 |
} |
81 |
+ |
82 |
+src_install() { |
83 |
+ gnome2_src_install |
84 |
+ python_moduleinto gi.overrides |
85 |
+ python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py |
86 |
+} |