Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/gnumeric/
Date: Wed, 23 Jun 2021 21:33:38
Message-Id: 1624483981.951c4423f05131f27fbe9f30a326ecd83ff7f480.soap@gentoo
1 commit: 951c4423f05131f27fbe9f30a326ecd83ff7f480
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 23 21:33:01 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 23 21:33:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=951c4423
7
8 app-office/gnumeric: add 1.12.50
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 app-office/gnumeric/Manifest | 1 +
13 app-office/gnumeric/gnumeric-1.12.50.ebuild | 93 +++++++++++++++++++++++++++++
14 2 files changed, 94 insertions(+)
15
16 diff --git a/app-office/gnumeric/Manifest b/app-office/gnumeric/Manifest
17 index c9cb81cc636..a64ffdbbe41 100644
18 --- a/app-office/gnumeric/Manifest
19 +++ b/app-office/gnumeric/Manifest
20 @@ -1 +1,2 @@
21 DIST gnumeric-1.12.49.tar.xz 18057896 BLAKE2B 75ae1683feb7f37cdff4cb5fbec04b0f241e4590236ea68706180853c1a950092bf0d902652d65288b42dba13c384e1ac364cefb32b9d60c37a9948d9d7fc8eb SHA512 047d625aee3a15dd8881f2e11cc7c67d211d40be86ec018517d1b3140ff4bd031fb2cb86e48f1f6ee22432aa1f39c978bad5fd5bf5c6a1be9aa53411136429ed
22 +DIST gnumeric-1.12.50.tar.xz 18062104 BLAKE2B 46d15e5fe540cce904de07b263707d7fd8c29d9a2611105cdb117a3acd6693651e588b4d281038b48fbc36bba100d162c2c2ab1be589ea206272155cbd9046df SHA512 d5896cb8390c99fb3871c722116cc085b93b788fab91bf44d24f20228b8290170a0adc906160a6aa46431ae43b04079621c370dcda42658fa9ae3c1d8baf1730
23
24 diff --git a/app-office/gnumeric/gnumeric-1.12.50.ebuild b/app-office/gnumeric/gnumeric-1.12.50.ebuild
25 new file mode 100644
26 index 00000000000..63de219a0b6
27 --- /dev/null
28 +++ b/app-office/gnumeric/gnumeric-1.12.50.ebuild
29 @@ -0,0 +1,93 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{7..9} )
36 +
37 +inherit gnome.org libtool python-r1 xdg
38 +
39 +DESCRIPTION="The GNOME Spreadsheet"
40 +HOMEPAGE="http://www.gnumeric.org/"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
45 +IUSE="+introspection libgda perl"
46 +REQUIRED_USE="introspection? ( ${PYTHON_REQUIRED_USE} )"
47 +
48 +# Missing gnome-extra/libgnomedb required version in tree
49 +# but its upstream is dead and will be dropped soon.
50 +
51 +# lots of missing files, also fails tests due to 80-bit long story
52 +# upstream bug #721556
53 +RESTRICT="test"
54 +
55 +# Gnumeric has two python components
56 +# 1. The python loader for loading python-based plugins.
57 +# This component is pure python 2 and a port "is not currently being worked on".
58 +# 2. The python gobject-based introspection API. This component is compatible
59 +# with python 3.
60 +# Component 1. can only be re-enabled once someone has ported the upstream
61 +# codebase to python 3.
62 +# https://gitlab.gnome.org/GNOME/gnumeric/issues/419#note_618852
63 +RDEPEND="
64 + app-arch/bzip2
65 + sys-libs/zlib
66 + >=dev-libs/glib-2.40.0:2
67 + >=gnome-extra/libgsf-1.14.33:=
68 + >=x11-libs/goffice-0.10.50:0.10
69 + >=dev-libs/libxml2-2.4.12:2
70 + >=x11-libs/pango-1.24.0:=
71 +
72 + >=x11-libs/gtk+-3.8.7:3
73 + x11-libs/cairo:=[svg]
74 +
75 + introspection? (
76 + ${PYTHON_DEPS}
77 + >=dev-libs/gobject-introspection-1:=
78 + )
79 + perl? ( dev-lang/perl:= )
80 + libgda? ( gnome-extra/libgda:5[gtk] )"
81 +DEPEND="${RDEPEND}"
82 +BDEPEND="
83 + app-text/docbook-xml-dtd:4.5
84 + app-text/yelp-tools
85 + dev-util/gtk-doc-am
86 + >=dev-util/intltool-0.35.0
87 + virtual/pkgconfig"
88 +
89 +src_prepare() {
90 + default
91 +
92 + # Manage gi overrides ourselves
93 + sed '/SUBDIRS/ s/introspection//' -i Makefile.{am,in} || die
94 + elibtoolize
95 +}
96 +
97 +src_configure() {
98 + econf \
99 + --disable-gtk-doc \
100 + --disable-maintainer-mode \
101 + --disable-schemas-compile \
102 + --disable-static \
103 + --without-psiconv \
104 + --without-python \
105 + --with-zlib \
106 + $(use_with libgda gda) \
107 + $(use_enable introspection) \
108 + $(use_with perl)
109 +}
110 +
111 +src_install() {
112 + default
113 + dodoc HACKING MAINTAINERS
114 +
115 + if use introspection; then
116 + python_moduleinto gi.overrides
117 + python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
118 + fi
119 +
120 + # no static archives
121 + find "${ED}" -name '*.la' -delete || die
122 +}