Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/gretl: ChangeLog gretl-1.9.0-r1.ebuild gretl-1.9.0.ebuild gretl-1.8.6.ebuild
Date: Sun, 22 Aug 2010 08:34:39
Message-Id: 20100822083434.65D8C2004E@flycatcher.gentoo.org
1 xarthisius 10/08/22 08:34:34
2
3 Modified: ChangeLog
4 Added: gretl-1.9.0-r1.ebuild
5 Removed: gretl-1.9.0.ebuild gretl-1.8.6.ebuild
6 Log:
7 Respect LDFLAGS wrt bug 333873. Thanks to Diego for report. Remove old.
8 (Portage version: 2.1.8.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.25 sci-mathematics/gretl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/ChangeLog?rev=1.25&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/ChangeLog?rev=1.25&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/ChangeLog?r1=1.24&r2=1.25
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v
20 retrieving revision 1.24
21 retrieving revision 1.25
22 diff -u -r1.24 -r1.25
23 --- ChangeLog 11 May 2010 01:34:15 -0000 1.24
24 +++ ChangeLog 22 Aug 2010 08:34:34 -0000 1.25
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sci-mathematics/gretl
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.24 2010/05/11 01:34:15 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/gretl/ChangeLog,v 1.25 2010/08/22 08:34:34 xarthisius Exp $
30 +
31 +*gretl-1.9.0-r1 (22 Aug 2010)
32 +
33 + 22 Aug 2010; Kacper Kowalik <xarthisius@g.o> -gretl-1.8.6.ebuild,
34 + -gretl-1.9.0.ebuild, +gretl-1.9.0-r1.ebuild,
35 + +files/gretl-1.9.0-ldflags.patch:
36 + Respect LDFLAGS wrt bug 333873. Thanks to Diego for report. Remove old.
37
38 11 May 2010; Sébastien Fabbro <bicatali@g.o> gretl-1.9.0.ebuild:
39 Removed TODO from dodoc
40
41
42
43 1.1 sci-mathematics/gretl/gretl-1.9.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/gretl-1.9.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/gretl/gretl-1.9.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gretl-1.9.0-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 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.0-r1.ebuild,v 1.1 2010/08/22 08:34:34 xarthisius Exp $
53
54 USE_EINSTALL=true
55 EAPI=2
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 openmp readline R sourceview"
67
68 RDEPEND="dev-libs/libxml2
69 dev-libs/glib:2
70 >=sci-visualization/gnuplot-4.2
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? ( sci-visualization/gnuplot[gd]
79 media-libs/gd[png]
80 x11-libs/gtk+:2 )
81 gnome? ( sci-visualization/gnuplot[gd]
82 media-libs/gd[png]
83 gnome-base/libgnomeui
84 gnome-base/libgnomeprint:2.2
85 gnome-base/libgnomeprintui:2.2
86 gnome-base/gconf:2 )
87 R? ( dev-lang/R )
88 sourceview? ( x11-libs/gtksourceview )
89 odbc? ( dev-db/unixODBC )
90 emacs? ( virtual/emacs )"
91
92 DEPEND="${RDEPEND}
93 dev-util/pkgconfig"
94
95 SITEFILE=50${PN}-gentoo.el
96
97 pkg_setup() {
98 if use openmp &&
99 [[ $(tc-getCC)$ == *gcc* ]] &&
100 ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
101 ! has_version sys-devel/gcc[openmp] )
102 then
103 ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
104 die "Need an OpenMP capable compiler"
105 fi
106 }
107
108 src_prepare() {
109 epatch "${FILESDIR}"/${PN}-1.7.5-locale.patch \
110 "${FILESDIR}"/${P}-ldflags.patch
111 # fix parallel make reported upstream
112 sed -i \
113 -e 's/make -C/$(MAKE) -C/g' \
114 $(find . -name Makefile.in) || die
115 }
116
117 src_configure() {
118 local myconf
119 if use gtk; then
120 myconf="--enable-gui"
121 myconf="${myconf} $(use_with sourceview gtksourceview)"
122 myconf="${myconf} $(use_with gnome)"
123 else
124 myconf="--disable-gui --without-gnome --without-gtksourceview"
125 fi
126
127 econf \
128 --with-mpfr \
129 $(use_enable nls) \
130 $(use_enable openmp) \
131 $(use_with readline) \
132 $(use_with gmp) \
133 $(use_with odbc) \
134 $(use_with accessibility audio) \
135 $(use_with R libR) \
136 ${myconf} \
137 LAPACK_LIBS="$(pkg-config --libs lapack)"
138 }
139
140 src_compile() {
141 emake || die "emake failed"
142 if use emacs; then
143 elisp-compile utils/emacs/gretl.el || die "elisp-compile failed"
144 fi
145 }
146
147 src_install() {
148 if use gnome; then
149 gnome2_src_install gnome_prefix="${D}"/usr svprefix="${D}usr"
150 else
151 einstall svprefix="${D}usr"
152 fi
153 if use gtk && ! use gnome; then
154 doicon gnome/gretl.png
155 make_desktop_entry gretl_x11 gretl
156 fi
157 if use emacs; then
158 elisp-install ${PN} utils/emacs/gretl.{el,elc} \
159 || die "elisp-install failed"
160 elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
161 || die "elisp-site-file-install failed"
162 fi
163 dodoc README README.audio ChangeLog CompatLog
164 }
165
166 pkg_postinst() {
167 if use emacs; then
168 elisp-site-regen
169 elog "To begin using gretl-mode for all \".inp\" files that you edit,"
170 elog "add the following line to your \"~/.emacs\" file:"
171 elog " (add-to-list 'auto-mode-alist '(\"\\\\.inp\\\\'\" . gretl-mode))"
172 fi
173 }
174
175 pkg_postrm() {
176 use emacs && elisp-site-regen
177 }