summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-05-03 16:31:05 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-05-03 16:31:05 +0000
commit790112ea0fd447b22e75fd2279d480c00cb09993 (patch)
tree3029f738ea7f2c891054bbdf188f0530994f9ad7 /sci-mathematics/gretl
parentVersion bump (diff)
downloadgentoo-2-790112ea0fd447b22e75fd2279d480c00cb09993.tar.gz
gentoo-2-790112ea0fd447b22e75fd2279d480c00cb09993.tar.bz2
gentoo-2-790112ea0fd447b22e75fd2279d480c00cb09993.zip
Version bump
(Portage version: 2.1.9.46/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/gretl')
-rw-r--r--sci-mathematics/gretl/ChangeLog7
-rw-r--r--sci-mathematics/gretl/gretl-1.9.5.ebuild120
2 files changed, 126 insertions, 1 deletions
diff --git a/sci-mathematics/gretl/ChangeLog b/sci-mathematics/gretl/ChangeLog
index cc5dc6808827..9639ef53d1b7 100644
--- a/sci-mathematics/gretl/ChangeLog
+++ b/sci-mathematics/gretl/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-mathematics/gretl
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.31 2011/03/14 21:19:15 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.32 2011/05/03 16:31:05 bicatali Exp $
+
+*gretl-1.9.5 (03 May 2011)
+
+ 03 May 2011; Sébastien Fabbro <bicatali@gentoo.org> +gretl-1.9.5.ebuild:
+ Version bump
14 Mar 2011; Sébastien Fabbro <bicatali@gentoo.org> gretl-1.9.4.ebuild:
Removed obsolete dependencies on gnomeprint, bug #358443
diff --git a/sci-mathematics/gretl/gretl-1.9.5.ebuild b/sci-mathematics/gretl/gretl-1.9.5.ebuild
new file mode 100644
index 000000000000..2e342de646d2
--- /dev/null
+++ b/sci-mathematics/gretl/gretl-1.9.5.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/gretl-1.9.5.ebuild,v 1.1 2011/05/03 16:31:05 bicatali Exp $
+
+USE_EINSTALL=true
+EAPI=4
+inherit eutils gnome2 elisp-common
+
+DESCRIPTION="Regression, econometrics and time-series library"
+HOMEPAGE="http://gretl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="accessibility emacs gnome gtk nls odbc openmp readline R sourceview static-libs"
+
+RDEPEND="
+ dev-libs/libxml2:2
+ dev-libs/glib:2
+ >=sci-visualization/gnuplot-4.2
+ virtual/lapack
+ virtual/latex-base
+ sci-libs/fftw:3.0
+ dev-libs/gmp
+ dev-libs/mpfr
+ readline? ( sys-libs/readline )
+ accessibility? ( app-accessibility/flite )
+ gtk? ( sci-visualization/gnuplot[gd]
+ media-libs/gd[png]
+ x11-libs/gtk+:2 )
+ gnome? ( sci-visualization/gnuplot[gd]
+ media-libs/gd[png]
+ gnome-base/libgnomeui
+ gnome-base/gconf:2 )
+ R? ( dev-lang/R )
+ sourceview? ( x11-libs/gtksourceview:2.0 )
+ odbc? ( dev-db/unixODBC )
+ emacs? ( virtual/emacs )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+SITEFILE=50${PN}-gentoo.el
+
+pkg_setup() {
+ if use openmp &&
+ [[ $(tc-getCC)$ == *gcc* ]] &&
+ ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
+ ! has_version sys-devel/gcc[openmp] )
+ then
+ ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
+ die "Need an OpenMP capable compiler"
+ fi
+}
+
+src_configure() {
+ local myconf
+ if use gtk; then
+ myconf="--enable-gui"
+ myconf="${myconf} $(use_with sourceview gtksourceview)"
+ myconf="${myconf} $(use_with gnome)"
+ else
+ myconf="--disable-gui --without-gnome --without-gtksourceview"
+ fi
+
+ econf \
+ --disable-rpath \
+ --enable-shared \
+ --with-mpfr \
+ $(use_enable nls) \
+ $(use_enable openmp) \
+ $(use_enable static-libs static) \
+ $(use_with readline) \
+ $(use_with odbc) \
+ $(use_with accessibility audio) \
+ $(use_with R libR) \
+ ${myconf} \
+ LAPACK_LIBS="$(pkg-config --libs lapack)"
+}
+
+src_compile() {
+ emake
+ if use emacs; then
+ elisp-compile utils/emacs/gretl.el || die "elisp-compile failed"
+ fi
+}
+
+src_install() {
+ if use gnome; then
+ gnome2_src_install gnome_prefix="${ED}"/usr svprefix="${ED}usr"
+ else
+ einstall svprefix="${ED}usr"
+ fi
+ if use gtk && ! use gnome; then
+ doicon gnome/gretl.png
+ make_desktop_entry gretl_x11 gretl
+ fi
+ if use emacs; then
+ elisp-install ${PN} utils/emacs/gretl.{el,elc} \
+ || die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die "elisp-site-file-install failed"
+ 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
+}