summaryrefslogtreecommitdiff
path: root/sci-mathematics/gretl
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/gretl')
-rw-r--r--sci-mathematics/gretl/Manifest7
-rw-r--r--sci-mathematics/gretl/files/gretl-2001d-appdatadir.patch11
-rw-r--r--sci-mathematics/gretl/gretl-2021d.ebuild (renamed from sci-mathematics/gretl/gretl-1.9.90.ebuild)76
-rw-r--r--sci-mathematics/gretl/metadata.xml1
4 files changed, 60 insertions, 35 deletions
diff --git a/sci-mathematics/gretl/Manifest b/sci-mathematics/gretl/Manifest
index b5ddf70ef91a..f33142542155 100644
--- a/sci-mathematics/gretl/Manifest
+++ b/sci-mathematics/gretl/Manifest
@@ -1,4 +1,5 @@
AUX 50gretl-gentoo.el 473 BLAKE2B 4c855e4b79629828ba9f3c187550c64d26b93b6547ed8505d8485ade63d0963d04bf7f3de4b8a0b0d679657e93d2d08ff036d9a2ef1b02ec85936f872cc3aa86 SHA512 dff2fd680e295ba8cd722092d5ffe8cb36cd9b79f2ed2be69c8adaa5e414a456abb40c0ec70a6fc0d6b9fb09bf936e3c6ef6804f87bde62d86d3692c34ec595e
-DIST gretl-1.9.90.tar.xz 7764820 BLAKE2B 1a47c31a62aad662ed3cfb4ad2057000eef14daf1f8cac4125f511f0229e29c1a7f43bc2e6014ec5b971173d9698e842c13e36b0f12faaa2f4fa996e26d984cb SHA512 35ec45fb2ad2dec490567411c1a5d909dc7fc8f0c4a6ca142e6e92b2d95a9efc9581f154a7806cf3f5178b530cdca9508b7c215bca29e1bcaebfa874d476667a
-EBUILD gretl-1.9.90.ebuild 2703 BLAKE2B ec19a3cfd5b3bf7b760a15fd4e329aa68c8240532639b055d59dafb3d3120e6ddd5bb296501efd95fedc179c8e6845a7a76bc6db4a5b5d1c911ccf3e83c28308 SHA512 287f33f86f1f175b64eb595e607a64e3ca5b1cff134bb9e3a44e592b92929e00d21d447d5e96a0ebc8d707062dd53cb644ff65128da821b99edc5b6e23424d20
-MISC metadata.xml 1123 BLAKE2B 842689a5b247691f87412ebe678e2454147bbaf85dde06f7c157cd8eaaadc6c7059f68486708196baf8485feb2ff83e5e8663be3c334d5d6b51f73b66c943f5c SHA512 a64e382dedcd1ded944a6523f3274a9a8afc236a178fd7612a58894a35738d4163b98f162e5419fd87b0c2d9272b1d63bfda66af093302851fa41f15dc3e6b61
+AUX gretl-2001d-appdatadir.patch 246 BLAKE2B b225500d78564d018c54e4e9dcdd166c9c7f779c3d23a716d119cd968f05712bc38154702fb9cf53ad7de42000f75f584f89cffbc098706f01f89b2adc814136 SHA512 2e725e15732ea975b6085be9f84790a07d0d481b1aad0a876a07bf1de06a393ba8ff71f272ed601539458cb9a4a8af41bbc4185ef847ca99cba64aca0897b3f1
+DIST gretl-2021d.tar.xz 13256260 BLAKE2B ba4ae04317e3bd4c9ae064718ceee7b8c6afceaa263c1adcfb7fa5fe8bb74c9abc7f7847666a95f1035c36c553ce8ab80a002f488348e3e02fd321c5dd53d5d8 SHA512 17d5ba473208a5e810329b88c3e6b8421af73d6e1a172547c393143cd8419e2ff6cd07b9c741f0d6e65796fee64f4c71b7f5ccf0c81a67936c4d16f1fd0d7edb
+EBUILD gretl-2021d.ebuild 2842 BLAKE2B 264da0a632af19d6fe06c56acb0585c65174cd8fd2485a65ce7bb6022fd0a630ad802d104b0e28103258d337d8efdf47235b6a41bc43aaea2f97c2d684438750 SHA512 55f86e565ee4f9876feb766e982e5f2fb564d112c610d4de073344d931ff9ea145c810add0088f39c0f7ce9cd638a69888b6d9bb0fdfb84af5777111be0d5b21
+MISC metadata.xml 1199 BLAKE2B d400c41ccef93836c264ca3df2f66ef62ebd228f67dbe43c544aa33bf35b9fc23ed5bd0d38d4ba1e45e27465553ef6f4549b22739c7b385b9cb606bfb4f56ee3 SHA512 860e2aa571e650c80318fa4b1e2d6032e300cd1b7fd0fe9a69dd39d81bda51e05cfc9954e274d8cd6cbc9c2bacf87a9fcc9ad0fd38d66542ef30771158b5f4a3
diff --git a/sci-mathematics/gretl/files/gretl-2001d-appdatadir.patch b/sci-mathematics/gretl/files/gretl-2001d-appdatadir.patch
new file mode 100644
index 000000000000..8b42edccc88b
--- /dev/null
+++ b/sci-mathematics/gretl/files/gretl-2001d-appdatadir.patch
@@ -0,0 +1,11 @@
+--- a/gui/Makefile.in
++++ b/gui/Makefile.in
+@@ -139,7 +139,7 @@
+ else
+ gretldir = $(datarootdir)/gretl
+ uidir = $(gretldir)/ui
+- appdatadir = $(datarootdir)/appdata
++ appdatadir = $(datarootdir)/metainfo
+ endif
+
+ tooldir = $(topsrc)/tools
diff --git a/sci-mathematics/gretl/gretl-1.9.90.ebuild b/sci-mathematics/gretl/gretl-2021d.ebuild
index 57ea0d58c2b7..dcc6aca2cfbe 100644
--- a/sci-mathematics/gretl/gretl-1.9.90.ebuild
+++ b/sci-mathematics/gretl/gretl-2021d.ebuild
@@ -1,76 +1,77 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=8
-USE_EINSTALL=true
-
-inherit elisp-common toolchain-funcs
+inherit elisp-common toolchain-funcs xdg-utils
DESCRIPTION="Regression, econometrics and time-series library"
HOMEPAGE="http://gretl.sourceforge.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.xz"
LICENSE="GPL-3"
-SLOT="0/10"
+SLOT="0/40"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="accessibility cpu_flags_x86_avx +curl emacs gnome gtk mpi nls odbc openmp python
- readline cpu_flags_x86_sse2 R static-libs"
+IUSE="cpu_flags_x86_avx emacs extras gnome gtk mpi nls odbc openmp python
+ readline cpu_flags_x86_sse2 R"
-CDEPEND="
+DEPEND="
dev-libs/glib:2=
- dev-libs/gmp:0=
+ >=dev-libs/gmp-4.0.1:0=
+ dev-libs/json-glib:0=
dev-libs/libxml2:2=
- dev-libs/mpfr:0=
+ >=dev-libs/mpfr-2.2.0:0=
+ net-misc/curl:0=
sci-libs/fftw:3.0=
sci-visualization/gnuplot
virtual/lapack
virtual/latex-base
- accessibility? ( app-accessibility/flite:= )
- curl? ( net-misc/curl:0= )
emacs? ( >=app-editors/emacs-23.1:* )
+ gnome? ( >=gnome-extra/libgsf-1.14.47[gtk?] )
gtk? (
media-libs/gd:2=[png]
- sci-visualization/gnuplot[gd]
+ >=sci-visualization/gnuplot-5.0[cairo]
x11-libs/gtk+:3=
x11-libs/gtksourceview:3.0= )
mpi? ( virtual/mpi )
odbc? ( dev-db/unixODBC:0= )
R? ( dev-lang/R:0= )
readline? ( sys-libs/readline:0= )"
-RDEPEND="${CDEPEND}
+RDEPEND="${DEPEND}
python? ( dev-python/numpy )"
-DEPEND="${CDEPEND}
- virtual/pkgconfig"
+BDEPEND="virtual/pkgconfig
+ extras? ( dev-texlive/texlive-latexextra )
+ gtk? ( x11-misc/xdg-utils )"
SITEFILE=50${PN}-gentoo.el
-REQUIRED_USE="emacs? ( gtk ) !curl? ( !gtk )"
+REQUIRED_USE="emacs? ( gtk )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2001d-appdatadir.patch
+)
+
+DOCS=( README ChangeLog CompatLog )
-pkg_setup() {
- if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp ; then
- ewarn "You are using a non capable gcc compiler ( < 4.2 ? )"
- die "Need an OpenMP capable compiler"
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ use openmp && tc-check-openmp
fi
}
src_configure() {
+ xdg_environment_reset
econf \
--disable-rpath \
- --enable-shared \
- --with-mpfr \
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \
- --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
$(use_enable cpu_flags_x86_avx avx) \
- $(use_enable curl www) \
+ $(use_enable extras build-addons) \
$(use_enable gtk gui) \
$(use_enable gtk xdg) \
$(use_enable gtk xdg-utils) \
$(use_enable nls) \
$(use_enable openmp) \
$(use_enable cpu_flags_x86_sse2 sse2) \
- $(use_enable static-libs static) \
- $(use_with accessibility audio) \
+ $(use_with gnome gsf) \
$(use_with mpi) \
$(use_with odbc) \
$(use_with readline) \
@@ -80,7 +81,7 @@ src_configure() {
}
src_compile() {
- emake
+ default
if use emacs; then
cd utils/emacs && emake
elisp-compile gretl.el
@@ -88,13 +89,13 @@ src_compile() {
}
src_install() {
- # to fix
emake -j1 DESTDIR="${D}" install
+ einstalldocs
+ find "${ED}" -type f -name '*.la' -delete || die
if use emacs; then
elisp-install ${PN} utils/emacs/gretl.{el,elc}
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
- dodoc README README.audio ChangeLog CompatLog
}
pkg_postinst() {
@@ -104,8 +105,19 @@ pkg_postinst() {
elog "add the following line to your \"~/.emacs\" file:"
elog " (add-to-list 'auto-mode-alist '(\"\\\\.inp\\\\'\" . gretl-mode))"
fi
+
+ if use gtk; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ xdg_mimeinfo_database_update
+ fi
}
pkg_postrm() {
use emacs && elisp-site-regen
+ if use gtk; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ xdg_mimeinfo_database_update
+ fi
}
diff --git a/sci-mathematics/gretl/metadata.xml b/sci-mathematics/gretl/metadata.xml
index 47fa48a1557b..8ddce5301b74 100644
--- a/sci-mathematics/gretl/metadata.xml
+++ b/sci-mathematics/gretl/metadata.xml
@@ -18,6 +18,7 @@
in LaTeX format.
</longdescription>
<use>
+ <flag name="extras">Build and install add-ons bundled with gretl</flag>
<flag name="R">Enable support for <pkg>dev-lang/R</pkg></flag>
</use>
<upstream>