summaryrefslogtreecommitdiff
path: root/sci-mathematics/gretl
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/gretl
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/gretl')
-rw-r--r--sci-mathematics/gretl/Manifest9
-rw-r--r--sci-mathematics/gretl/files/50gretl-gentoo.el16
-rw-r--r--sci-mathematics/gretl/files/gretl-1.9.14-readline.patch10
-rw-r--r--sci-mathematics/gretl/gretl-1.9.14.ebuild111
-rw-r--r--sci-mathematics/gretl/gretl-1.9.90.ebuild111
-rw-r--r--sci-mathematics/gretl/metadata.xml26
6 files changed, 283 insertions, 0 deletions
diff --git a/sci-mathematics/gretl/Manifest b/sci-mathematics/gretl/Manifest
new file mode 100644
index 000000000000..292028b4a75d
--- /dev/null
+++ b/sci-mathematics/gretl/Manifest
@@ -0,0 +1,9 @@
+AUX 50gretl-gentoo.el 473 SHA256 7f5398d85016858044257a900e33d9441aa7a3981ac1d71feff79c26b03aa939 SHA512 dff2fd680e295ba8cd722092d5ffe8cb36cd9b79f2ed2be69c8adaa5e414a456abb40c0ec70a6fc0d6b9fb09bf936e3c6ef6804f87bde62d86d3692c34ec595e WHIRLPOOL 6ab37909501bd70482b3b0f0f7febf8930701aafbd227c1bba6c0d9f50be3c46947eb236e1e30b43d7313f739a1b49727d40fc4e055672ce6d4e812a26cfeec8
+AUX gretl-1.9.14-readline.patch 390 SHA256 be172668e2e85b1ac8490b9aeb3f205189cf270ea65e89d76805fad136e4d987 SHA512 e67dc762b90fa9dee505155452008667916724e669216da09816a2236b863d9798e091237bbb722aea91e42c6ce1fe50deff33cc4148a7b403c1a455f4c74177 WHIRLPOOL 7f02f2638db3bca1edb84ccd3e169f208c8095638c1d1d8516551822684e6198c5d62f0a38769f19ea447d28cb660377b320d23990bdc99041c13b0bef6d3b50
+DIST gretl-1.9.14.tar.xz 7564192 SHA256 ceabb8cbf461ab340093f3d38d9c87d91f6d17c62906d3d8d7bfe58812ba965b SHA512 61ff44cc52f3da971d3cf2cc6e52e0401280521fd761ea098f753acc529c9d35a12fc296b46136d5d257c9a29a83f91a78a77822a00ce3f65776a17f97223ee1 WHIRLPOOL d592d50ba57cfcde2cba6e31199f2d853d300fe5fcc4e2afc6c9906f8f9f6c3ac02a2d24a98c53fb86fb92e7c133717bbdadaa6bd93406d1deb69b3b30be2756
+DIST gretl-1.9.90.tar.xz 7764820 SHA256 f14941786de985e40af8e5f31fb71ee05b17002627055f0f6341b63258c4fdcc SHA512 35ec45fb2ad2dec490567411c1a5d909dc7fc8f0c4a6ca142e6e92b2d95a9efc9581f154a7806cf3f5178b530cdca9508b7c215bca29e1bcaebfa874d476667a WHIRLPOOL c688135030057df291576b5e8e08300d59b183a013064ae9adb7a934e4fd5436b0b2b23d27f340dcd4c0aac24fd16419dd377e3c650a2c90705e5caa8cedf24f
+EBUILD gretl-1.9.14.ebuild 2564 SHA256 200eabf4422359b8497cefad5365c8c8038a98974d6b4ba513402224bb833cc3 SHA512 8d582245edbf018e413015a8e6775dffbcb6bf7a7fda2562fd5765e4b3146e4b43156ced5b8bd484d1bb7d643caee06e5e51d502c5fb15d68359a0210842c8a9 WHIRLPOOL 79d3715267211465492d047e74c39184f175c232b8307a0c9b59459f9c5cb4ce08e19d42e120dd6b9ea34397250fa18f9fd7b3ea9ff4408d940cb8854642dc10
+EBUILD gretl-1.9.90.ebuild 2700 SHA256 d443ffba42871113d49053a6f763ee8b86ecb0131f1c8829b1f7c7a7b7dc42c9 SHA512 fe5c407c2b6259fc0921f012b7a19f48a5068482f2dede71ab11eff05f2344cec5a14be582d65aa0644a21d124f5be047201e2364194924dac68e339f181fb66 WHIRLPOOL 8165df3ed0cc234f8452fab99052cce8db690b55681f7d79ce3b5a48e0afcf4976ea2b4227ee14132b2e3b8462293d0ff298a50eb93c2693c85574eb2c5472ae
+MISC ChangeLog 2672 SHA256 67f0ef52909947a77adf5733ddf82c9aa8c1d553bc99f6ddd8c6f2702394faf8 SHA512 caeede82a067bf7c41db144334c9cbd178b53ba2afb532ab2477fc433564a6215e4a62ee559c4d6af8a90dfe8414ed793a85e3915d8fb71f830302a4b85473a0 WHIRLPOOL 94b1680257dd7097771fdabc6e633643cd58d37d510f5cf76813310ea6b1306d6f6feee46f99155c42db30d5c683e7f3b81d41392c900c83152ae729fe68a43f
+MISC ChangeLog-2015 8301 SHA256 62d79b4d1348c4797aee80b7988cc85e5072ca7ae4095d7361efaf9fd5627ab1 SHA512 59e2f7caa9ade3da477de557b558e7e4b9965c7bc45bfe2de83644d19e8755e4248eeeaef009d210c403fddf30d613f763bb1556ebd16334a337649229d457cc WHIRLPOOL d64a1108f703215c1ef8b2469508c345f0ffc8ea824acc3a254a95e944d78e6fc25e2ed202d37fdc9aa45997c915f69efbd37c09567165338f60a1350bcf7f87
+MISC metadata.xml 1122 SHA256 0afaca4222891d50992d18f84a9e9cf786de9c3292775987af03d9cd24bf75ed SHA512 d5f169c5b22c7991efb2080425f682d51b9c5acd472d3f3155f64a45044c1a9a449ca5d34be9f792d7ce62be41584926c35896ffaf82c07fd6aeca17d0da423d WHIRLPOOL 3adbf0fa7ab3f3af1d5d3e9cc955e4ae310b1bf769b7a35c2010111e2375d51547b059feb0977ec1a9e8ddb7ce97eecb3f74f535b5627eef0903467a995e5b4f
diff --git a/sci-mathematics/gretl/files/50gretl-gentoo.el b/sci-mathematics/gretl/files/50gretl-gentoo.el
new file mode 100644
index 000000000000..c5f3159efc0b
--- /dev/null
+++ b/sci-mathematics/gretl/files/50gretl-gentoo.el
@@ -0,0 +1,16 @@
+
+;;; sci-mathematics/gretl site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'gretl-mode "gretl" nil t)
+;; not adding to auto-mode-alist since .inp is too generic as extension
+;;(add-to-list 'auto-mode-alist '("\\.inp\\'" . gretl-mode))
+
+;; Automatically turn on the abbrev, auto-fill and font-lock features
+(add-hook 'gretl-mode-hook
+ (lambda ()
+ (abbrev-mode 1)
+ (auto-fill-mode 1)
+ (if (eq window-system 'x)
+ (font-lock-mode 1))))
diff --git a/sci-mathematics/gretl/files/gretl-1.9.14-readline.patch b/sci-mathematics/gretl/files/gretl-1.9.14-readline.patch
new file mode 100644
index 000000000000..9f6996b9c916
--- /dev/null
+++ b/sci-mathematics/gretl/files/gretl-1.9.14-readline.patch
@@ -0,0 +1,10 @@
+--- cli/complete.c.ORIG 2007-08-22 16:44:46.000000000 +0200
++++ cli/complete.c 2014-03-26 16:54:40.463070119 +0100
+@@ -126,6 +126,6 @@
+ rl_readline_name = "gretl";
+
+ /* Tell the completer that we want a crack first. */
+- rl_attempted_completion_function = (CPPFunction *) gretl_completion;
++ rl_attempted_completion_function = (rl_completion_func_t*) gretl_completion;
+ }
+
diff --git a/sci-mathematics/gretl/gretl-1.9.14.ebuild b/sci-mathematics/gretl/gretl-1.9.14.ebuild
new file mode 100644
index 000000000000..3d18e40578d0
--- /dev/null
+++ b/sci-mathematics/gretl/gretl-1.9.14.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_EINSTALL=true
+
+inherit eutils elisp-common toolchain-funcs
+
+DESCRIPTION="Regression, econometrics and time-series library"
+HOMEPAGE="http://gretl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="accessibility cpu_flags_x86_avx emacs gnome gtk nls odbc openmp python
+ readline cpu_flags_x86_sse2 R static-libs"
+
+CDEPEND="
+ dev-libs/glib:2
+ dev-libs/gmp:0=
+ dev-libs/libxml2:2
+ dev-libs/mpfr:0
+ sci-libs/fftw:3.0
+ sci-visualization/gnuplot
+ virtual/lapack
+ virtual/latex-base
+ accessibility? ( app-accessibility/flite )
+ emacs? ( virtual/emacs )
+ gtk? (
+ media-libs/gd[png]
+ sci-visualization/gnuplot[gd]
+ x11-libs/gtk+:3
+ x11-libs/gtksourceview:3.0 )
+ odbc? ( dev-db/unixODBC )
+ R? ( dev-lang/R )
+ readline? ( sys-libs/readline:0 )"
+RDEPEND="${CDEPEND}
+ python? ( dev-python/numpy )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+
+SITEFILE=50${PN}-gentoo.el
+
+REQUIRED_USE="emacs? ( gtk )"
+
+pkg_setup() {
+ if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp
+ then
+ ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
+ die "Need an OpenMP capable compiler"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-readline.patch
+}
+
+src_configure() {
+ econf \
+ --disable-rpath \
+ --enable-shared \
+ --with-mpfr \
+ $(use_enable cpu_flags_x86_avx avx) \
+ $(use_enable gtk gui) \
+ $(use_enable gtk gtk3) \
+ $(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 odbc) \
+ $(use_with readline) \
+ $(use_with R libR) \
+ ${myconf} \
+ LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
+}
+
+src_compile() {
+ emake
+ if use emacs; then
+ cd utils/emacs && emake
+ elisp-compile gretl.el
+ fi
+}
+
+src_install() {
+ # to fix
+ emake -j1 DESTDIR="${D}" install
+ 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() {
+ if use emacs; then
+ elisp-site-regen
+ elog "To begin using gretl-mode for all \".inp\" files that you edit,"
+ elog "add the following line to your \"~/.emacs\" file:"
+ elog " (add-to-list 'auto-mode-alist '(\"\\\\.inp\\\\'\" . gretl-mode))"
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/gretl/gretl-1.9.90.ebuild b/sci-mathematics/gretl/gretl-1.9.90.ebuild
new file mode 100644
index 000000000000..a376ae9b64c8
--- /dev/null
+++ b/sci-mathematics/gretl/gretl-1.9.90.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_EINSTALL=true
+
+inherit eutils elisp-common toolchain-funcs
+
+DESCRIPTION="Regression, econometrics and time-series library"
+HOMEPAGE="http://gretl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0/10"
+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"
+
+CDEPEND="
+ dev-libs/glib:2=
+ dev-libs/gmp:0=
+ dev-libs/libxml2:2=
+ dev-libs/mpfr:0=
+ sci-libs/fftw:3.0=
+ sci-visualization/gnuplot
+ virtual/lapack
+ virtual/latex-base
+ accessibility? ( app-accessibility/flite:= )
+ curl? ( net-misc/curl:0= )
+ emacs? ( virtual/emacs )
+ gtk? (
+ media-libs/gd:2=[png]
+ sci-visualization/gnuplot[gd]
+ 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}
+ python? ( dev-python/numpy )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+
+SITEFILE=50${PN}-gentoo.el
+
+REQUIRED_USE="emacs? ( gtk ) !curl? ( !gtk )"
+
+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"
+ fi
+}
+
+src_configure() {
+ 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 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 mpi) \
+ $(use_with odbc) \
+ $(use_with readline) \
+ $(use_with R libR) \
+ ${myconf} \
+ LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
+}
+
+src_compile() {
+ emake
+ if use emacs; then
+ cd utils/emacs && emake
+ elisp-compile gretl.el
+ fi
+}
+
+src_install() {
+ # to fix
+ emake -j1 DESTDIR="${D}" install
+ 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() {
+ if use emacs; then
+ elisp-site-regen
+ elog "To use gretl-mode for all \".inp\" files that you edit,"
+ elog "add the following line to your \"~/.emacs\" file:"
+ elog " (add-to-list 'auto-mode-alist '(\"\\\\.inp\\\\'\" . gretl-mode))"
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/gretl/metadata.xml b/sci-mathematics/gretl/metadata.xml
new file mode 100644
index 000000000000..fd52df2f1c98
--- /dev/null
+++ b/sci-mathematics/gretl/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ GNU Regression, Econometrics and Time-series Library provides
+ a library which comprises various functions relating to econometric
+ estimation, a command-line client program and a GUI. The library is
+ based on the stand-alone command-line econometrics program ESL,
+ originally written by Ramu Ramanathan of the Department of Economics
+ at UC-San Diego. The interfaces offer several least-squares based
+ estimators. Besides reading data files in its own format it also
+ reads RATS 4 databases. It has a built-in spreadsheet for editing
+ data, and uses gnuplot for graphing. It can output regression results
+ in LaTeX format.
+</longdescription>
+ <use>
+ <flag name="R">Enable support for <pkg>dev-lang/R</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gretl</remote-id>
+ </upstream>
+</pkgmetadata>