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