Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/gretl: ChangeLog gretl-1.9.6.ebuild gretl-1.9.4.ebuild gretl-1.9.3.ebuild
Date: Fri, 25 Nov 2011 18:16:07
Message-Id: 20111125181557.930242004B@flycatcher.gentoo.org
1 bicatali 11/11/25 18:15:57
2
3 Modified: ChangeLog
4 Added: gretl-1.9.6.ebuild
5 Removed: gretl-1.9.4.ebuild gretl-1.9.3.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.1.10.37/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.33 sci-mathematics/gretl/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/ChangeLog?rev=1.33&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/ChangeLog?rev=1.33&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/ChangeLog?r1=1.32&r2=1.33
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v
21 retrieving revision 1.32
22 retrieving revision 1.33
23 diff -u -r1.32 -r1.33
24 --- ChangeLog 3 May 2011 16:31:05 -0000 1.32
25 +++ ChangeLog 25 Nov 2011 18:15:57 -0000 1.33
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-mathematics/gretl
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.32 2011/05/03 16:31:05 bicatali Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.33 2011/11/25 18:15:57 bicatali Exp $
31 +
32 +*gretl-1.9.6 (25 Nov 2011)
33 +
34 + 25 Nov 2011; Sébastien Fabbro <bicatali@g.o> -gretl-1.9.3.ebuild,
35 + -gretl-1.9.4.ebuild, +gretl-1.9.6.ebuild:
36 + Version bump
37
38 *gretl-1.9.5 (03 May 2011)
39
40
41
42
43 1.1 sci-mathematics/gretl/gretl-1.9.6.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/gretl-1.9.6.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/gretl-1.9.6.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gretl-1.9.6.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/gretl-1.9.6.ebuild,v 1.1 2011/11/25 18:15:57 bicatali Exp $
53
54 USE_EINSTALL=true
55 EAPI=4
56 inherit eutils gnome2 elisp-common
57
58 DESCRIPTION="Regression, econometrics and time-series library"
59 HOMEPAGE="http://gretl.sourceforge.net/"
60 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
61
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65
66 IUSE="accessibility emacs gnome gtk nls odbc openmp readline R sourceview static-libs"
67
68 RDEPEND="
69 dev-libs/libxml2:2
70 dev-libs/glib:2
71 >=sci-visualization/gnuplot-4.2
72 virtual/lapack
73 virtual/latex-base
74 sci-libs/fftw:3.0
75 dev-libs/gmp
76 dev-libs/mpfr
77 readline? ( sys-libs/readline )
78 accessibility? ( app-accessibility/flite )
79 gtk? ( sci-visualization/gnuplot[gd]
80 media-libs/gd[png]
81 x11-libs/gtk+:2 )
82 gnome? ( sci-visualization/gnuplot[gd]
83 media-libs/gd[png]
84 gnome-base/libgnomeui
85 gnome-base/gconf:2 )
86 R? ( dev-lang/R )
87 sourceview? ( x11-libs/gtksourceview:2.0 )
88 odbc? ( dev-db/unixODBC )
89 emacs? ( virtual/emacs )"
90
91 DEPEND="${RDEPEND}
92 dev-util/pkgconfig"
93
94 SITEFILE=50${PN}-gentoo.el
95
96 pkg_setup() {
97 if use openmp &&
98 [[ $(tc-getCC)$ == *gcc* ]] &&
99 ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
100 ! has_version sys-devel/gcc[openmp] )
101 then
102 ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
103 die "Need an OpenMP capable compiler"
104 fi
105 }
106
107 src_configure() {
108 local myconf
109 if use gtk; then
110 myconf="--enable-gui"
111 myconf="${myconf} $(use_with sourceview gtksourceview)"
112 myconf="${myconf} $(use_with gnome)"
113 else
114 myconf="--disable-gui --without-gnome --without-gtksourceview"
115 fi
116
117 econf \
118 --disable-rpath \
119 --enable-shared \
120 --with-mpfr \
121 $(use_enable nls) \
122 $(use_enable openmp) \
123 $(use_enable static-libs static) \
124 $(use_with readline) \
125 $(use_with odbc) \
126 $(use_with accessibility audio) \
127 $(use_with R libR) \
128 ${myconf} \
129 LAPACK_LIBS="$(pkg-config --libs lapack)"
130 }
131
132 src_compile() {
133 emake
134 if use emacs; then
135 elisp-compile utils/emacs/gretl.el || die "elisp-compile failed"
136 fi
137 }
138
139 src_install() {
140 if use gnome; then
141 gnome2_src_install gnome_prefix="${ED}"/usr svprefix="${ED}usr"
142 else
143 einstall svprefix="${ED}usr"
144 fi
145 if use gtk && ! use gnome; then
146 doicon gnome/gretl.png
147 make_desktop_entry gretl_x11 gretl
148 fi
149 if use emacs; then
150 elisp-install ${PN} utils/emacs/gretl.{el,elc} \
151 || die "elisp-install failed"
152 elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
153 || die "elisp-site-file-install failed"
154 fi
155 dodoc README README.audio ChangeLog CompatLog
156 }
157
158 pkg_postinst() {
159 if use emacs; then
160 elisp-site-regen
161 elog "To begin using gretl-mode for all \".inp\" files that you edit,"
162 elog "add the following line to your \"~/.emacs\" file:"
163 elog " (add-to-list 'auto-mode-alist '(\"\\\\.inp\\\\'\" . gretl-mode))"
164 fi
165 }
166
167 pkg_postrm() {
168 use emacs && elisp-site-regen
169 }