Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/gnome-chemistry-utils/, sci-chemistry/gnome-chemistry-utils/files/
Date: Sun, 01 Mar 2020 16:21:27
Message-Id: 1583079676.4a452b0ba33a3764af0d6d378fb7f1606d083ba5.pacho@gentoo
1 commit: 4a452b0ba33a3764af0d6d378fb7f1606d083ba5
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 1 16:20:23 2020 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 1 16:21:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a452b0b
7
8 sci-chemistry/gnome-chemistry-utils: Introduce gnome chemistry utils
9
10 Closes: https://bugs.gentoo.org/388887
11 Package-Manager: Portage-2.3.90, Repoman-2.3.20
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 sci-chemistry/gnome-chemistry-utils/Manifest | 1 +
15 .../gnome-chemistry-utils-0.14.17-gnumeric.patch | 47 +++++++++++++++++
16 .../gnome-chemistry-utils-0.14.17.ebuild | 61 ++++++++++++++++++++++
17 sci-chemistry/gnome-chemistry-utils/metadata.xml | 10 ++++
18 4 files changed, 119 insertions(+)
19
20 diff --git a/sci-chemistry/gnome-chemistry-utils/Manifest b/sci-chemistry/gnome-chemistry-utils/Manifest
21 new file mode 100644
22 index 00000000000..26178430558
23 --- /dev/null
24 +++ b/sci-chemistry/gnome-chemistry-utils/Manifest
25 @@ -0,0 +1 @@
26 +DIST gnome-chemistry-utils-0.14.17.tar.xz 5911248 BLAKE2B 5d3bb4afbe3d3f620912e810717f08674d56a11c384b1fb239788cfbbb625797e8c52de2b6d940ae7f3d83847533afedd6ed961b1fa0ea1cec62dda88de1a6df SHA512 01bb964e1484e028c5965f1de74798422b448823047fcadf668dc76e98b3e214939a2f031d0182c717c4376f490e5969a4604ee66d1763e6b480032d7ae97468
27
28 diff --git a/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-0.14.17-gnumeric.patch b/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-0.14.17-gnumeric.patch
29 new file mode 100644
30 index 00000000000..826d9b056df
31 --- /dev/null
32 +++ b/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-0.14.17-gnumeric.patch
33 @@ -0,0 +1,47 @@
34 +Index: gchemutils/configure.ac
35 +===================================================================
36 +--- gchemutils/configure.ac (revision 2072)
37 ++++ gchemutils/configure.ac (revision 2073)
38 +@@ -352,7 +352,7 @@
39 + libspreadsheet=libspreadsheet-1.12
40 + fi
41 +
42 +-PKG_CHECK_MODULES(gnumeric, [$libspreadsheet >= 1.11.6], [build_gnumeric_plugin=yes],
43 ++PKG_CHECK_MODULES(gnumeric, [$libspreadsheet >= 1.12.42], [build_gnumeric_plugin=yes],
44 + [build_gnumeric_plugin=no])
45 + dnl --without is not handled
46 +
47 +Index: gchemutils/gnumeric/functions.cc
48 +===================================================================
49 +--- gchemutils/gnumeric/functions.cc (revision 2072)
50 ++++ gchemutils/gnumeric/functions.cc (revision 2073)
51 +@@ -195,23 +195,23 @@
52 + const GnmFuncDescriptor Chemistry_functions[] = {
53 +
54 + { N_("molarmass"), "s",
55 +- help_molarmass, gnumeric_molarmass, NULL, NULL, NULL,
56 ++ help_molarmass, gnumeric_molarmass, NULL,
57 + GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_NO_TESTSUITE},
58 + { N_("monoisotopicmass"), "s",
59 +- help_monoisotopicmass, gnumeric_monoisotopicmass, NULL, NULL, NULL,
60 ++ help_monoisotopicmass, gnumeric_monoisotopicmass, NULL,
61 + GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_NO_TESTSUITE},
62 + { N_("chemcomposition"), "ss",
63 +- help_chemcomposition, gnumeric_chemcomposition, NULL, NULL, NULL,
64 ++ help_chemcomposition, gnumeric_chemcomposition, NULL,
65 + GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_NO_TESTSUITE},
66 + { N_("elementnumber"), "s",
67 +- help_elementnumber, gnumeric_elementnumber, NULL, NULL, NULL,
68 ++ help_elementnumber, gnumeric_elementnumber, NULL,
69 + GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_NO_TESTSUITE},
70 + { N_("elementsymbol"), "f",
71 +- help_elementsymbol, gnumeric_elementsymbol, NULL, NULL, NULL,
72 ++ help_elementsymbol, gnumeric_elementsymbol, NULL,
73 + GNM_FUNC_SIMPLE, GNM_FUNC_IMPL_STATUS_COMPLETE, GNM_FUNC_TEST_STATUS_NO_TESTSUITE},
74 +
75 +
76 +- {NULL, NULL, NULL, NULL, NULL, NULL, NULL,
77 ++ {NULL, NULL, NULL, NULL, NULL,
78 + GNM_FUNC_IS_PLACEHOLDER, GNM_FUNC_IMPL_STATUS_UNIMPLEMENTED, GNM_FUNC_TEST_STATUS_NO_TESTSUITE}
79 + };
80 +
81
82 diff --git a/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17.ebuild b/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17.ebuild
83 new file mode 100644
84 index 00000000000..a4cf565e9ce
85 --- /dev/null
86 +++ b/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17.ebuild
87 @@ -0,0 +1,61 @@
88 +# Copyright 1999-2020 Gentoo Authors
89 +# Distributed under the terms of the GNU General Public License v2
90 +
91 +EAPI=7
92 +inherit autotools xdg
93 +
94 +DESCRIPTION="Programs and library containing GTK widgets and C++ classes related to chemistry"
95 +HOMEPAGE="http://gchemutils.nongnu.org/"
96 +SRC_URI="http://download.savannah.gnu.org/releases/gchemutils/$(ver_cut 1-2)/${P}.tar.xz"
97 +
98 +SLOT="0"
99 +KEYWORDS="~amd64 ~x86"
100 +LICENSE="GPL-3"
101 +IUSE="gnumeric"
102 +
103 +RDEPEND="
104 + >=app-text/gnome-doc-utils-0.3.2
105 + >=dev-libs/glib-2.36.0:2
106 + >=dev-libs/libxml2-2.4.16:2
107 + >=gnome-extra/libgsf-1.14.9
108 + >=sci-chemistry/bodr-5
109 + >=sci-chemistry/chemical-mime-data-0.1.94
110 + >=sci-chemistry/openbabel-2.3.0:0
111 + >=x11-libs/cairo-1.6.0
112 + >=x11-libs/gdk-pixbuf-2.22.0
113 + >=x11-libs/goffice-0.10.12
114 + x11-libs/gtk+:3
115 + >=x11-libs/libX11-1.0.0
116 + gnumeric? ( >=app-office/gnumeric-1.12.42 )
117 +"
118 +DEPEND="${RDEPEND}"
119 +BDEPEND="
120 + virtual/pkgconfig
121 + app-doc/doxygen
122 +"
123 +
124 +src_prepare() {
125 + xdg_src_prepare
126 +
127 + # From Debian
128 + eapply "${FILESDIR}/${P}-gnumeric.patch"
129 + eautoreconf
130 +}
131 +
132 +src_configure() {
133 + # lasem is not in the tree
134 + econf \
135 + --without-lasem \
136 + --disable-mozilla-plugin \
137 + --disable-scrollkeeper \
138 + --disable-update-databases
139 +}
140 +
141 +src_install() {
142 + default
143 +
144 + mv "${ED}"/usr/share/appdata "${ED}"/usr/share/metainfo || die
145 + rm -rf "${ED}"/usr/share/mimelnk/ || die
146 +
147 + find "${D}" -name '*.la' -type f -delete || die
148 +}
149
150 diff --git a/sci-chemistry/gnome-chemistry-utils/metadata.xml b/sci-chemistry/gnome-chemistry-utils/metadata.xml
151 new file mode 100644
152 index 00000000000..0d27f618fe3
153 --- /dev/null
154 +++ b/sci-chemistry/gnome-chemistry-utils/metadata.xml
155 @@ -0,0 +1,10 @@
156 +<?xml version="1.0" encoding="UTF-8"?>
157 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
158 +<pkgmetadata>
159 + <maintainer type="person">
160 + <email>pacho@g.o</email>
161 + </maintainer>
162 + <use>
163 + <flag name="gnumeric">Add a Gnumeric plugin to provide a molarmass function for the spreadsheet</flag>
164 + </use>
165 +</pkgmetadata>