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