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/maxima: maxima-5.11.0-r2.ebuild ChangeLog maxima-5.13.0.ebuild maxima-5.9.1-r5.ebuild maxima-5.11.0-r1.ebuild maxima-5.11.0.ebuild
Date: Thu, 13 Sep 2007 14:15:59
Message-Id: E1IVpMs-0003kj-Ha@stork.gentoo.org
1 bicatali 07/09/13 14:08:30
2
3 Modified: maxima-5.11.0-r2.ebuild ChangeLog
4 Added: maxima-5.13.0.ebuild
5 Removed: maxima-5.9.1-r5.ebuild maxima-5.11.0-r1.ebuild
6 maxima-5.11.0.ebuild
7 Log:
8 Version bump. Thanks for Andrey Grozin <A.G.Grozin@×××××××.su> to maintain
9 (Portage version: 2.1.2.12)
10
11 Revision Changes Path
12 1.4 sci-mathematics/maxima/maxima-5.11.0-r2.ebuild
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.11.0-r2.ebuild?rev=1.4&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.11.0-r2.ebuild?rev=1.4&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.11.0-r2.ebuild?r1=1.3&r2=1.4
17
18 Index: maxima-5.11.0-r2.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.11.0-r2.ebuild,v
21 retrieving revision 1.3
22 retrieving revision 1.4
23 diff -u -r1.3 -r1.4
24 --- maxima-5.11.0-r2.ebuild 9 Jul 2007 01:39:58 -0000 1.3
25 +++ maxima-5.11.0-r2.ebuild 13 Sep 2007 14:08:30 -0000 1.4
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2007 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.11.0-r2.ebuild,v 1.3 2007/07/09 01:39:58 nerdboy Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.11.0-r2.ebuild,v 1.4 2007/09/13 14:08:30 bicatali Exp $
31
32 inherit eutils elisp-common autotools fdo-mime
33
34 @@ -18,7 +18,7 @@
35 x11-misc/xdg-utils
36 tetex? ( virtual/tetex )
37 emacs? ( virtual/emacs
38 - tetex? ( || ( app-emacs/auctex app-xemacs/auctex ) ) )
39 + tetex? ( || ( app-emacs/auctex app-xemacs/auctex ) ) )
40 clisp? ( >=dev-lisp/clisp-2.33.2-r1 )
41 gcl? ( >=dev-lisp/gcl-2.6.7 )
42 sbcl? ( >=dev-lisp/sbcl-0.9.4 app-misc/rlwrap )
43 @@ -69,7 +69,7 @@
44 fi
45 fi
46
47 - if ! built_with_use -a sci-visualization/gnuplot png gd; then
48 + if ! built_with_use -a sci-visualization/gnuplot gd; then
49 elog "To benefit full plotting capability of maxima,"
50 elog "enable the png and gd USE flags enabled for"
51 elog "both sci-visualization/gnuplot and media-libs/gd"
52
53
54
55 1.30 sci-mathematics/maxima/ChangeLog
56
57 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.30&view=markup
58 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.30&content-type=text/plain
59 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.29&r2=1.30
60
61 Index: ChangeLog
62 ===================================================================
63 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v
64 retrieving revision 1.29
65 retrieving revision 1.30
66 diff -u -r1.29 -r1.30
67 --- ChangeLog 9 Jul 2007 01:39:58 -0000 1.29
68 +++ ChangeLog 13 Sep 2007 14:08:30 -0000 1.30
69 @@ -1,6 +1,24 @@
70 # ChangeLog for sci-mathematics/maxima
71 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
72 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.29 2007/07/09 01:39:58 nerdboy Exp $
73 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.30 2007/09/13 14:08:30 bicatali Exp $
74 +
75 +*maxima-5.13.0 (13 Sep 2007)
76 +
77 + 13 Sep 2007; Sébastien Fabbro <bicatali@g.o>
78 + -files/maxima-5.9.1-fix-clisp-getpid.patch,
79 + -files/maxima-5.9.1-no-kill-minus-one.patch,
80 + -files/maxima-5.9.1-unicode-fix.patch,
81 + -files/maxima-5.9.3-default-browser.patch,
82 + -files/maxima-5.9.3-emaxima.patch,
83 + -files/maxima-5.11.0-default-browser.patch,
84 + -files/maxima-5.11.0-default-psviewer.patch,
85 + -files/maxima-5.11.0-sbcl-disable-debugger.patch,
86 + +files/maxima-5.13.0-xdg-utils.patch, -maxima-5.9.1-r5.ebuild,
87 + -maxima-5.11.0.ebuild, -maxima-5.11.0-r1.ebuild, +maxima-5.13.0.ebuild,
88 + maxima-5.11.0-r2.ebuild:
89 + Version bump. Thanks for Andrey Grozin <A.G.Grozin@×××××××.su> to maintain
90 + it in the science overlay. Closing bug #191529 and bug #192241. Cleaning
91 + old versions.
92
93 09 Jul 2007; Steve Arnold <nerdboy@g.o> maxima-5.11.0.ebuild,
94 maxima-5.11.0-r1.ebuild, maxima-5.11.0-r2.ebuild:
95
96
97
98 1.1 sci-mathematics/maxima/maxima-5.13.0.ebuild
99
100 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild?rev=1.1&view=markup
101 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild?rev=1.1&content-type=text/plain
102
103 Index: maxima-5.13.0.ebuild
104 ===================================================================
105 # Copyright 1999-2007 Gentoo Foundation
106 # Distributed under the terms of the GNU General Public License v2
107 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild,v 1.1 2007/09/13 14:08:30 bicatali Exp $
108
109 inherit eutils elisp-common autotools
110
111 DESCRIPTION="Free computer algebra environment based on Macsyma"
112 HOMEPAGE="http://maxima.sourceforge.net/"
113 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
114
115 LICENSE="GPL-2 AECA"
116 SLOT="0"
117 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
118 IUSE="cmucl clisp sbcl gcl tetex emacs tk nls unicode"
119
120 # rlwrap is recommended for cmucl and sbcl
121 RDEPEND=">=sci-visualization/gnuplot-4.0
122 x11-misc/xdg-utils
123 tetex? ( virtual/tetex )
124 emacs? ( virtual/emacs
125 tetex? ( || ( app-emacs/auctex app-xemacs/auctex ) ) )
126 clisp? ( >=dev-lisp/clisp-2.33.2-r1 )
127 gcl? ( >=dev-lisp/gcl-2.6.7 )
128 sbcl? ( >=dev-lisp/sbcl-0.9.4 app-misc/rlwrap )
129 cmucl? ( >=dev-lisp/cmucl-19a app-misc/rlwrap )
130 !clisp? ( !sbcl? ( !cmucl? ( >=dev-lisp/gcl-2.6.7 ) ) )
131 tk? ( >=dev-lang/tk-8.3.3 )"
132
133 DEPEND="${RDEPEND} >=sys-apps/texinfo-4.3"
134 # the make install already strips maxima exec.
135 RESTRICT="strip"
136
137 LANGS="es pt pt_BR"
138
139 for lang in ${LANGS}; do
140 IUSE="${IUSE} linguas_${lang}"
141 done
142
143 pkg_setup() {
144 # Don't install in the main tree, as this may cause file collisions
145 if use tetex; then
146 local TEXMFPATH="$(kpsewhich -var-value=TEXMFSITE)"
147 local TEXMFCONFIGFILE="$(kpsewhich texmf.cnf)"
148
149 if [ -z "${TEXMFPATH}" ]; then
150 eerror "You haven't defined the TEXMFSITE variable in your TeX config."
151 eerror "Please do so in the file ${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf}"
152 die "Define TEXMFSITE in TeX configuration!"
153 else
154 # go through the colon separated list of directories (maybe only one) provided in the variable
155 # TEXMFPATH (generated from TEXMFSITE from TeX's config) and choose only the first entry.
156 # All entries are separated by colons, even when defined with semi-colons, kpsewhich changes
157 # the output to a generic format, so IFS has to be redefined.
158 local IFS="${IFS}:"
159
160 for strippedpath in ${TEXMFPATH}
161 do
162 if [ -d ${strippedpath} ]; then
163 MAXIMA_TEXMFDIR="${strippedpath}"
164 break
165 fi
166 done
167
168 # verify if an existing path was chosen to prevent from installing into the wrong directory
169 if [ -z ${MAXIMA_TEXMFDIR} ]; then
170 eerror "TEXMFSITE does not contain any existing directory."
171 eerror "Please define an existing directory in your TeX config file"
172 eerror "${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf} or create at least one of the there specified directories"
173 die "TEXMFSITE variable did not contain an existing directory"
174 fi
175 fi
176 fi
177
178 if ! built_with_use -a sci-visualization/gnuplot gd; then
179 elog "To benefit full plotting capability of maxima,"
180 elog "enable the gd USE flag enabled for sci-visualization/gnuplot"
181 elog "Then re-emerge maxima"
182 epause 5
183 fi
184
185 # enable gcl if no other lisp selected
186 if use gcl || (! use cmucl && ! use clisp && ! use sbcl ); then
187 if ! built_with_use dev-lisp/gcl ansi; then
188 eerror "GCL must be installed with ANSI."
189 eerror "Try USE=\"ansi\" emerge gcl"
190 die "This package needs gcl with USE=ansi"
191 fi
192 enablegcl="--enable-gcl --enable-gcl-alt-link"
193 fi
194 }
195
196 src_unpack() {
197 unpack ${A}
198 # use xdg-open to view ps, pdf
199 epatch "${FILESDIR}/${P}-xdg-utils.patch"
200 }
201
202 src_compile() {
203 eautoreconf
204
205 # remove rmaxima if neither cmucl nor sbcl
206 if ! use sbcl && ! use cmucl ; then
207 sed -i -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' src/Makefile.in
208 fi
209
210 # remove xmaxima if no tk
211 local myconf="${enablegcl}"
212 if use tk; then
213 myconf="${myconf} --with-wish=wish"
214 else
215 myconf="${myconf} --with-wish=none"
216 sed -i -e '/^SUBDIRS/s/xmaxima//' interfaces/Makefile.in
217 fi
218
219 # enable existing translated doc
220 if use nls; then
221 for lang in ${LANGS}; do
222 if use "linguas_${lang}"; then
223 myconf="${myconf} --enable-lang-${lang}"
224 use unicode && myconf="${myconf} --enable-lang-${lang}-utf8"
225 fi
226 done
227 fi
228
229 econf \
230 $(use_enable cmucl) \
231 $(use_enable clisp) \
232 $(use_enable sbcl) \
233 ${myconf} \
234 || die "econf failed"
235 emake || die "emake failed"
236 }
237
238 src_install() {
239 einstall || die "einstall failed"
240
241 use tk && make_desktop_entry xmaxima xmaxima \
242 /usr/share/${PN}/${PV}/xmaxima/maxima-new.png
243
244 use emacs && \
245 elisp-site-file-install "${FILESDIR}/50maxima-gentoo.el"
246
247 if use tetex; then
248 insinto "${MAXIMA_TEXMFDIR}/tex/latex/emaxima"
249 doins interfaces/emacs/emaxima/emaxima.sty
250 fi
251
252 insinto "/usr/share/${PN}/${PV}/doc"
253 doins AUTHORS ChangeLog COPYING NEWS README*
254 dodir /usr/share/doc
255 dosym "/usr/share/${PN}/${PV}/doc" "/usr/share/doc/${PF}"
256 }
257
258 pkg_preinst() {
259 # all lisps do not bunzip2 info files on the fly
260 for infofile in $(ls ${D}/usr/share/info/*.bz2); do
261 bunzip2 "${infofile}"
262 done
263 }
264
265 pkg_postinst() {
266 use emacs && elisp-site-regen
267 use tetex && mktexlsr
268 }
269
270 pkg_postrm() {
271 use emacs && elisp-site-regen
272 }
273
274
275
276 --
277 gentoo-commits@g.o mailing list