1 |
commit: 9526b21a4dde5fde5db8f6b0a662e4a869eb237d |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 27 22:43:20 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 27 22:46:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9526b21a |
7 |
|
8 |
sci-mathematics/gretl: add 2021d, drop 1.9.90 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/589074 |
11 |
Closes: https://bugs.gentoo.org/648636 |
12 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
13 |
|
14 |
sci-mathematics/gretl/Manifest | 2 +- |
15 |
.../gretl/files/gretl-2001d-appdatadir.patch | 11 ++++ |
16 |
.../{gretl-1.9.90.ebuild => gretl-2021d.ebuild} | 76 +++++++++++++--------- |
17 |
sci-mathematics/gretl/metadata.xml | 1 + |
18 |
4 files changed, 57 insertions(+), 33 deletions(-) |
19 |
|
20 |
diff --git a/sci-mathematics/gretl/Manifest b/sci-mathematics/gretl/Manifest |
21 |
index 3ca4fcb50dd3..fbcad222b4ce 100644 |
22 |
--- a/sci-mathematics/gretl/Manifest |
23 |
+++ b/sci-mathematics/gretl/Manifest |
24 |
@@ -1 +1 @@ |
25 |
-DIST gretl-1.9.90.tar.xz 7764820 BLAKE2B 1a47c31a62aad662ed3cfb4ad2057000eef14daf1f8cac4125f511f0229e29c1a7f43bc2e6014ec5b971173d9698e842c13e36b0f12faaa2f4fa996e26d984cb SHA512 35ec45fb2ad2dec490567411c1a5d909dc7fc8f0c4a6ca142e6e92b2d95a9efc9581f154a7806cf3f5178b530cdca9508b7c215bca29e1bcaebfa874d476667a |
26 |
+DIST gretl-2021d.tar.xz 13256260 BLAKE2B ba4ae04317e3bd4c9ae064718ceee7b8c6afceaa263c1adcfb7fa5fe8bb74c9abc7f7847666a95f1035c36c553ce8ab80a002f488348e3e02fd321c5dd53d5d8 SHA512 17d5ba473208a5e810329b88c3e6b8421af73d6e1a172547c393143cd8419e2ff6cd07b9c741f0d6e65796fee64f4c71b7f5ccf0c81a67936c4d16f1fd0d7edb |
27 |
|
28 |
diff --git a/sci-mathematics/gretl/files/gretl-2001d-appdatadir.patch b/sci-mathematics/gretl/files/gretl-2001d-appdatadir.patch |
29 |
new file mode 100644 |
30 |
index 000000000000..8b42edccc88b |
31 |
--- /dev/null |
32 |
+++ b/sci-mathematics/gretl/files/gretl-2001d-appdatadir.patch |
33 |
@@ -0,0 +1,11 @@ |
34 |
+--- a/gui/Makefile.in |
35 |
++++ b/gui/Makefile.in |
36 |
+@@ -139,7 +139,7 @@ |
37 |
+ else |
38 |
+ gretldir = $(datarootdir)/gretl |
39 |
+ uidir = $(gretldir)/ui |
40 |
+- appdatadir = $(datarootdir)/appdata |
41 |
++ appdatadir = $(datarootdir)/metainfo |
42 |
+ endif |
43 |
+ |
44 |
+ tooldir = $(topsrc)/tools |
45 |
|
46 |
diff --git a/sci-mathematics/gretl/gretl-1.9.90.ebuild b/sci-mathematics/gretl/gretl-2021d.ebuild |
47 |
similarity index 59% |
48 |
rename from sci-mathematics/gretl/gretl-1.9.90.ebuild |
49 |
rename to sci-mathematics/gretl/gretl-2021d.ebuild |
50 |
index 57ea0d58c2b7..dcc6aca2cfbe 100644 |
51 |
--- a/sci-mathematics/gretl/gretl-1.9.90.ebuild |
52 |
+++ b/sci-mathematics/gretl/gretl-2021d.ebuild |
53 |
@@ -1,76 +1,77 @@ |
54 |
# Copyright 1999-2021 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
-EAPI=5 |
58 |
+EAPI=8 |
59 |
|
60 |
-USE_EINSTALL=true |
61 |
- |
62 |
-inherit elisp-common toolchain-funcs |
63 |
+inherit elisp-common toolchain-funcs xdg-utils |
64 |
|
65 |
DESCRIPTION="Regression, econometrics and time-series library" |
66 |
HOMEPAGE="http://gretl.sourceforge.net/" |
67 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" |
68 |
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.xz" |
69 |
|
70 |
LICENSE="GPL-3" |
71 |
-SLOT="0/10" |
72 |
+SLOT="0/40" |
73 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
74 |
-IUSE="accessibility cpu_flags_x86_avx +curl emacs gnome gtk mpi nls odbc openmp python |
75 |
- readline cpu_flags_x86_sse2 R static-libs" |
76 |
+IUSE="cpu_flags_x86_avx emacs extras gnome gtk mpi nls odbc openmp python |
77 |
+ readline cpu_flags_x86_sse2 R" |
78 |
|
79 |
-CDEPEND=" |
80 |
+DEPEND=" |
81 |
dev-libs/glib:2= |
82 |
- dev-libs/gmp:0= |
83 |
+ >=dev-libs/gmp-4.0.1:0= |
84 |
+ dev-libs/json-glib:0= |
85 |
dev-libs/libxml2:2= |
86 |
- dev-libs/mpfr:0= |
87 |
+ >=dev-libs/mpfr-2.2.0:0= |
88 |
+ net-misc/curl:0= |
89 |
sci-libs/fftw:3.0= |
90 |
sci-visualization/gnuplot |
91 |
virtual/lapack |
92 |
virtual/latex-base |
93 |
- accessibility? ( app-accessibility/flite:= ) |
94 |
- curl? ( net-misc/curl:0= ) |
95 |
emacs? ( >=app-editors/emacs-23.1:* ) |
96 |
+ gnome? ( >=gnome-extra/libgsf-1.14.47[gtk?] ) |
97 |
gtk? ( |
98 |
media-libs/gd:2=[png] |
99 |
- sci-visualization/gnuplot[gd] |
100 |
+ >=sci-visualization/gnuplot-5.0[cairo] |
101 |
x11-libs/gtk+:3= |
102 |
x11-libs/gtksourceview:3.0= ) |
103 |
mpi? ( virtual/mpi ) |
104 |
odbc? ( dev-db/unixODBC:0= ) |
105 |
R? ( dev-lang/R:0= ) |
106 |
readline? ( sys-libs/readline:0= )" |
107 |
-RDEPEND="${CDEPEND} |
108 |
+RDEPEND="${DEPEND} |
109 |
python? ( dev-python/numpy )" |
110 |
-DEPEND="${CDEPEND} |
111 |
- virtual/pkgconfig" |
112 |
+BDEPEND="virtual/pkgconfig |
113 |
+ extras? ( dev-texlive/texlive-latexextra ) |
114 |
+ gtk? ( x11-misc/xdg-utils )" |
115 |
|
116 |
SITEFILE=50${PN}-gentoo.el |
117 |
|
118 |
-REQUIRED_USE="emacs? ( gtk ) !curl? ( !gtk )" |
119 |
+REQUIRED_USE="emacs? ( gtk )" |
120 |
+ |
121 |
+PATCHES=( |
122 |
+ "${FILESDIR}"/${PN}-2001d-appdatadir.patch |
123 |
+) |
124 |
+ |
125 |
+DOCS=( README ChangeLog CompatLog ) |
126 |
|
127 |
-pkg_setup() { |
128 |
- if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp ; then |
129 |
- ewarn "You are using a non capable gcc compiler ( < 4.2 ? )" |
130 |
- die "Need an OpenMP capable compiler" |
131 |
+pkg_pretend() { |
132 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
133 |
+ use openmp && tc-check-openmp |
134 |
fi |
135 |
} |
136 |
|
137 |
src_configure() { |
138 |
+ xdg_environment_reset |
139 |
econf \ |
140 |
--disable-rpath \ |
141 |
- --enable-shared \ |
142 |
- --with-mpfr \ |
143 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
144 |
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
145 |
$(use_enable cpu_flags_x86_avx avx) \ |
146 |
- $(use_enable curl www) \ |
147 |
+ $(use_enable extras build-addons) \ |
148 |
$(use_enable gtk gui) \ |
149 |
$(use_enable gtk xdg) \ |
150 |
$(use_enable gtk xdg-utils) \ |
151 |
$(use_enable nls) \ |
152 |
$(use_enable openmp) \ |
153 |
$(use_enable cpu_flags_x86_sse2 sse2) \ |
154 |
- $(use_enable static-libs static) \ |
155 |
- $(use_with accessibility audio) \ |
156 |
+ $(use_with gnome gsf) \ |
157 |
$(use_with mpi) \ |
158 |
$(use_with odbc) \ |
159 |
$(use_with readline) \ |
160 |
@@ -80,7 +81,7 @@ src_configure() { |
161 |
} |
162 |
|
163 |
src_compile() { |
164 |
- emake |
165 |
+ default |
166 |
if use emacs; then |
167 |
cd utils/emacs && emake |
168 |
elisp-compile gretl.el |
169 |
@@ -88,13 +89,13 @@ src_compile() { |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
- # to fix |
174 |
emake -j1 DESTDIR="${D}" install |
175 |
+ einstalldocs |
176 |
+ find "${ED}" -type f -name '*.la' -delete || die |
177 |
if use emacs; then |
178 |
elisp-install ${PN} utils/emacs/gretl.{el,elc} |
179 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
180 |
fi |
181 |
- dodoc README README.audio ChangeLog CompatLog |
182 |
} |
183 |
|
184 |
pkg_postinst() { |
185 |
@@ -104,8 +105,19 @@ pkg_postinst() { |
186 |
elog "add the following line to your \"~/.emacs\" file:" |
187 |
elog " (add-to-list 'auto-mode-alist '(\"\\\\.inp\\\\'\" . gretl-mode))" |
188 |
fi |
189 |
+ |
190 |
+ if use gtk; then |
191 |
+ xdg_desktop_database_update |
192 |
+ xdg_icon_cache_update |
193 |
+ xdg_mimeinfo_database_update |
194 |
+ fi |
195 |
} |
196 |
|
197 |
pkg_postrm() { |
198 |
use emacs && elisp-site-regen |
199 |
+ if use gtk; then |
200 |
+ xdg_desktop_database_update |
201 |
+ xdg_icon_cache_update |
202 |
+ xdg_mimeinfo_database_update |
203 |
+ fi |
204 |
} |
205 |
|
206 |
diff --git a/sci-mathematics/gretl/metadata.xml b/sci-mathematics/gretl/metadata.xml |
207 |
index 47fa48a1557b..8ddce5301b74 100644 |
208 |
--- a/sci-mathematics/gretl/metadata.xml |
209 |
+++ b/sci-mathematics/gretl/metadata.xml |
210 |
@@ -18,6 +18,7 @@ |
211 |
in LaTeX format. |
212 |
</longdescription> |
213 |
<use> |
214 |
+ <flag name="extras">Build and install add-ons bundled with gretl</flag> |
215 |
<flag name="R">Enable support for <pkg>dev-lang/R</pkg></flag> |
216 |
</use> |
217 |
<upstream> |