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.7.7.ebuild gretl-1.7.5.ebuild gretl-1.7.4.ebuild
Date: Sat, 30 Aug 2008 16:59:29
Message-Id: E1KZTnK-0005hS-2J@stork.gentoo.org
1 bicatali 08/08/30 16:59:26
2
3 Modified: ChangeLog
4 Added: gretl-1.7.7.ebuild
5 Removed: gretl-1.7.5.ebuild gretl-1.7.4.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.2_rc8/cvs/Linux 2.6.23-gentoo-r9 x86_64)
9
10 Revision Changes Path
11 1.15 sci-mathematics/gretl/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/gretl/ChangeLog?rev=1.15&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/gretl/ChangeLog?rev=1.15&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/gretl/ChangeLog?r1=1.14&r2=1.15
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v
20 retrieving revision 1.14
21 retrieving revision 1.15
22 diff -u -r1.14 -r1.15
23 --- ChangeLog 19 Aug 2008 14:27:52 -0000 1.14
24 +++ ChangeLog 30 Aug 2008 16:59:25 -0000 1.15
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sci-mathematics/gretl
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.14 2008/08/19 14:27:52 markusle Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.15 2008/08/30 16:59:25 bicatali Exp $
30 +
31 +*gretl-1.7.7 (30 Aug 2008)
32 +
33 + 30 Aug 2008; Sébastien Fabbro <bicatali@g.o>
34 + -files/gretl-1.6.5-cli.patch, -gretl-1.7.4.ebuild, -gretl-1.7.5.ebuild,
35 + +gretl-1.7.7.ebuild:
36 + Version bump
37
38 19 Aug 2008; Markus Dittrich <markusle@g.o>
39 files/gretl-1.7.6-ldflags.patch:
40
41
42
43 1.1 sci-mathematics/gretl/gretl-1.7.7.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/gretl/gretl-1.7.7.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/gretl/gretl-1.7.7.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gretl-1.7.7.ebuild
49 ===================================================================
50 # Copyright 1999-2008 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.7.7.ebuild,v 1.1 2008/08/30 16:59:25 bicatali Exp $
53
54 USE_EINSTALL=true
55 EAPI=1
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 gmp gnome gtk nls odbc readline sourceview"
67
68 RDEPEND="dev-libs/libxml2
69 dev-libs/glib:2
70 sci-visualization/gnuplot
71 virtual/lapack
72 virtual/latex-base
73 sci-libs/fftw:3.0
74 dev-libs/mpfr
75 readline? ( sys-libs/readline )
76 gmp? ( dev-libs/gmp )
77 accessibility? ( app-accessibility/flite )
78 gtk? ( >=x11-libs/gtk+-2.10:2 )
79 gnome? ( gnome-base/libgnomeui
80 gnome-base/libgnomeprint:2.2
81 gnome-base/libgnomeprintui:2.2
82 gnome-base/gconf:2 )
83 sourceview? ( x11-libs/gtksourceview )
84 odbc? ( dev-db/unixODBC )
85 emacs? ( virtual/emacs )"
86
87 DEPEND="${RDEPEND}
88 dev-util/pkgconfig"
89
90 SITEFILE=50${PN}-gentoo.el
91
92 pkg_setup() {
93 if use gtk && ! built_with_use sci-visualization/gnuplot gd; then
94 eerror "gretl gtk GUI needs gnuplot with gd and gd with png"
95 die "Please install gnuplot with gd and png use flags enabled"
96 fi
97 }
98
99 src_unpack() {
100 unpack ${A}
101 cd "${S}"
102 epatch "${FILESDIR}"/${PN}-1.7.5-locale.patch
103 epatch "${FILESDIR}"/${PN}-1.7.6-ldflags.patch
104 }
105
106 src_compile() {
107
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 --with-mpfr \
119 $(use_enable nls) \
120 $(use_with readline) \
121 $(use_with gmp) \
122 $(use_with odbc) \
123 $(use_with accessibility audio) \
124 ${myconf} \
125 LAPACK_LIBS="$(pkg-config --libs lapack)" \
126 || die "econf failed"
127
128 emake || die "emake failed"
129
130 if use emacs; then
131 elisp-compile utils/emacs/gretl.el || die "elisp-compile failed"
132 fi
133 }
134
135 src_install() {
136 if use gnome; then
137 gnome2_src_install gnome_prefix="${D}"/usr
138 else
139 einstall || die "einstall failed"
140 fi
141 if use gtk && ! use gnome; then
142 doicon gnome/gretl.png
143 make_desktop_entry gretlx11 gretl
144 fi
145 if use emacs; then
146 elisp-install ${PN} utils/emacs/gretl.{el,elc} \
147 || die "elisp-install failed"
148 elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
149 || die "elisp-site-file-install failed"
150 fi
151 dodoc README README.audio ChangeLog CompatLog TODO \
152 || die "dodoc failed"
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 }