1 |
bicatali 08/04/29 08:54:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: maxima-5.15.0.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.5_rc6) |
8 |
|
9 |
Revision Changes Path |
10 |
1.53 sci-mathematics/maxima/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.53&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.53&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.52&r2=1.53 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v |
19 |
retrieving revision 1.52 |
20 |
retrieving revision 1.53 |
21 |
diff -u -r1.52 -r1.53 |
22 |
--- ChangeLog 18 Apr 2008 21:59:20 -0000 1.52 |
23 |
+++ ChangeLog 29 Apr 2008 08:54:24 -0000 1.53 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-mathematics/maxima |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.52 2008/04/18 21:59:20 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.53 2008/04/29 08:54:24 bicatali Exp $ |
29 |
+ |
30 |
+*maxima-5.15.0 (29 Apr 2008) |
31 |
+ |
32 |
+ 29 Apr 2008; Sébastien Fabbro <bicatali@g.o> |
33 |
+ +maxima-5.15.0.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
18 Apr 2008; Markus Meier <maekke@g.o> maxima-5.14.0.ebuild: |
37 |
amd64/x86 stable, bug #215787 |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-mathematics/maxima/maxima-5.15.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.15.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.15.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: maxima-5.15.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.15.0.ebuild,v 1.1 2008/04/29 08:54:24 bicatali Exp $ |
51 |
inherit eutils elisp-common |
52 |
|
53 |
DESCRIPTION="Free computer algebra environment based on Macsyma" |
54 |
HOMEPAGE="http://maxima.sourceforge.net/" |
55 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
56 |
|
57 |
LICENSE="GPL-2 AECA" |
58 |
SLOT="0" |
59 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
60 |
|
61 |
# Supported lisps with readline |
62 |
SUPP_RL="gcl clisp" |
63 |
# Supported lisps without readline |
64 |
SUPP_NORL="cmucl sbcl" |
65 |
SUPP_LISPS="${SUPP_RL} ${SUPP_NORL}" |
66 |
# Default lisp if none selected |
67 |
DEF_LISP="sbcl" |
68 |
|
69 |
IUSE="latex emacs tk nls unicode xemacs X ${SUPP_LISPS} ${IUSE}" |
70 |
|
71 |
# Languages |
72 |
LANGS="es pt pt_BR" |
73 |
for lang in ${LANGS}; do |
74 |
IUSE="${IUSE} linguas_${lang}" |
75 |
done |
76 |
|
77 |
# tetex>=3, so no use of virtual/latex-base (bug #203558) |
78 |
RDEPEND="X? ( x11-misc/xdg-utils |
79 |
sci-visualization/gnuplot |
80 |
tk? ( dev-lang/tk ) ) |
81 |
latex? ( || ( dev-texlive/texlive-latexrecommended |
82 |
>=app-text/tetex-3 |
83 |
app-text/ptex ) ) |
84 |
emacs? ( virtual/emacs latex? ( app-emacs/auctex ) ) |
85 |
xemacs? ( virtual/xemacs latex? ( app-xemacs/auctex ) )" |
86 |
|
87 |
# create lisp dependencies |
88 |
for LISP in ${SUPP_LISPS}; do |
89 |
RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP} )" |
90 |
DEF_DEP="${DEF_DEP} !${LISP}? ( " |
91 |
done |
92 |
DEF_DEP="${DEF_DEP} dev-lisp/${DEF_LISP}" |
93 |
for LISP in ${SUPP_NORL}; do |
94 |
RDEPEND="${RDEPEND} ${LISP}? ( app-misc/rlwrap )" |
95 |
[[ ${LISP} = ${DEF_LISP} ]] && \ |
96 |
DEF_DEP="${DEF_DEP} app-misc/rlwrap" |
97 |
done |
98 |
for LISP in ${SUPP_LISPS}; do |
99 |
DEF_DEP="${DEF_DEP} )" |
100 |
done |
101 |
|
102 |
RDEPEND="${RDEPEND} |
103 |
${DEF_DEP}" |
104 |
|
105 |
DEPEND="${RDEPEND} |
106 |
sys-apps/texinfo" |
107 |
|
108 |
pkg_setup() { |
109 |
LISPS="" |
110 |
|
111 |
for LISP in ${SUPP_LISPS}; do |
112 |
use ${LISP} && LISPS="${LISPS} ${LISP}" |
113 |
done |
114 |
|
115 |
if [ -z "${LISPS}" ]; then |
116 |
ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default" |
117 |
LISPS="${DEF_LISP}" |
118 |
fi |
119 |
|
120 |
RL="" |
121 |
|
122 |
for LISP in ${SUPP_NORL}; do |
123 |
use ${LISP} && RL="yes" |
124 |
done |
125 |
|
126 |
if use gcl; then |
127 |
if ! built_with_use dev-lisp/gcl ansi; then |
128 |
eerror "gcl must be emerged with the USE flag ansi" |
129 |
die "This package needs gcl with USE=ansi" |
130 |
fi |
131 |
fi |
132 |
|
133 |
# Calculating MAXIMA_TEXMFDIR |
134 |
if use latex; then |
135 |
local TEXMFPATH="$(kpsewhich -var-value=TEXMFSITE)" |
136 |
local TEXMFCONFIGFILE="$(kpsewhich texmf.cnf)" |
137 |
|
138 |
if [ -z "${TEXMFPATH}" ]; then |
139 |
eerror "You haven't defined the TEXMFSITE variable in your TeX config." |
140 |
eerror "Please do so in the file ${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf}" |
141 |
die "Define TEXMFSITE in TeX configuration!" |
142 |
else |
143 |
# go through the colon separated list of directories |
144 |
# (maybe only one) provided in the variable |
145 |
# TEXMFPATH (generated from TEXMFSITE from TeX's config) |
146 |
# and choose only the first entry. |
147 |
# All entries are separated by colons, even when defined |
148 |
# with semi-colons, kpsewhich changes |
149 |
# the output to a generic format, so IFS has to be redefined. |
150 |
local IFS="${IFS}:" |
151 |
|
152 |
for strippedpath in ${TEXMFPATH}; do |
153 |
if [ -d ${strippedpath} ]; then |
154 |
MAXIMA_TEXMFDIR="${strippedpath}" |
155 |
break |
156 |
fi |
157 |
done |
158 |
|
159 |
# verify if an existing path was chosen to prevent from |
160 |
# installing into the wrong directory |
161 |
if [ -z ${MAXIMA_TEXMFDIR} ]; then |
162 |
eerror "TEXMFSITE does not contain any existing directory." |
163 |
eerror "Please define an existing directory in your TeX config file" |
164 |
eerror "${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf} or create at least one of the there specified directories" |
165 |
die "TEXMFSITE variable did not contain an existing directory" |
166 |
fi |
167 |
fi |
168 |
fi |
169 |
|
170 |
if use X && ! built_with_use sci-visualization/gnuplot gd; then |
171 |
elog "To benefit full plotting capability of maxima," |
172 |
elog "enable the gd USE flag for sci-visualization/gnuplot" |
173 |
elog "Then re-emerge maxima" |
174 |
epause 5 |
175 |
fi |
176 |
} |
177 |
|
178 |
src_unpack() { |
179 |
unpack ${A} |
180 |
cd "${S}" |
181 |
# use xdg-open to view ps, pdf |
182 |
epatch "${FILESDIR}"/${PN}-xdg-utils.patch |
183 |
epatch "${FILESDIR}"/${PN}-no-init-files.patch |
184 |
# remove rmaxima if neither cmucl nor sbcl |
185 |
if [ -z "${RL}" ]; then |
186 |
sed -i \ |
187 |
-e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' \ |
188 |
"${S}"/src/Makefile.in \ |
189 |
|| die "sed for rmaxima failed" |
190 |
fi |
191 |
} |
192 |
|
193 |
src_compile() { |
194 |
local myconf="" |
195 |
for LISP in ${LISPS}; do |
196 |
myconf="${myconf} --enable-${LISP}" |
197 |
done |
198 |
|
199 |
# remove xmaxima if no tk |
200 |
if use tk; then |
201 |
myconf="${myconf} --with-wish=wish" |
202 |
else |
203 |
myconf="${myconf} --with-wish=none" |
204 |
sed -i \ |
205 |
-e '/^SUBDIRS/s/xmaxima//' \ |
206 |
interfaces/Makefile.in || die "sed for tk failed" |
207 |
fi |
208 |
|
209 |
# enable existing translated doc |
210 |
if use nls; then |
211 |
for lang in ${LANGS}; do |
212 |
if use "linguas_${lang}"; then |
213 |
myconf="${myconf} --enable-lang-${lang}" |
214 |
use unicode && myconf="${myconf} --enable-lang-${lang}-utf8" |
215 |
fi |
216 |
done |
217 |
fi |
218 |
|
219 |
econf ${myconf} || die "econf failed" |
220 |
emake || die "emake failed" |
221 |
} |
222 |
|
223 |
src_install() { |
224 |
einstall emacsdir="${D}${SITELISP}/${PN}" || die "einstall failed" |
225 |
|
226 |
use tk && make_desktop_entry xmaxima xmaxima \ |
227 |
/usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
228 |
"Science;Math;Education" |
229 |
|
230 |
use emacs && \ |
231 |
elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el |
232 |
|
233 |
if use latex; then |
234 |
insinto "${MAXIMA_TEXMFDIR}"/tex/latex/emaxima |
235 |
doins interfaces/emacs/emaxima/emaxima.sty |
236 |
fi |
237 |
|
238 |
# do not use dodoc because interfaces can't read compressed files |
239 |
# read COPYING before attempt to remove it |
240 |
insinto /usr/share/${PN}/${PV}/doc |
241 |
doins AUTHORS COPYING README README.lisps || die |
242 |
dodir /usr/share/doc |
243 |
dosym /usr/share/${PN}/${PV}/doc /usr/share/doc/${PF} |
244 |
} |
245 |
|
246 |
pkg_preinst() { |
247 |
# some lisps do not read compress info files (bug #176411) |
248 |
for infofile in "${D}"/usr/share/info/*.bz2 ; do |
249 |
bunzip2 "${infofile}" |
250 |
done |
251 |
for infofile in "${D}"/usr/share/info/*.gz ; do |
252 |
gunzip "${infofile}" |
253 |
done |
254 |
} |
255 |
|
256 |
pkg_postinst() { |
257 |
use emacs && elisp-site-regen |
258 |
use latex && mktexlsr |
259 |
} |
260 |
|
261 |
pkg_postrm() { |
262 |
use emacs && elisp-site-regen |
263 |
} |
264 |
|
265 |
|
266 |
|
267 |
-- |
268 |
gentoo-commits@l.g.o mailing list |