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