1 |
grozin 11/08/31 14:20:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: maxima-5.25.1.ebuild |
5 |
Removed: maxima-5.25.0.ebuild |
6 |
Log: |
7 |
Version bump |
8 |
|
9 |
(Portage version: 2.2.0_alpha51/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.92 sci-mathematics/maxima/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.92&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.92&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.91&r2=1.92 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v |
21 |
retrieving revision 1.91 |
22 |
retrieving revision 1.92 |
23 |
diff -u -r1.91 -r1.92 |
24 |
--- ChangeLog 27 Aug 2011 05:03:22 -0000 1.91 |
25 |
+++ ChangeLog 31 Aug 2011 14:20:28 -0000 1.92 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for sci-mathematics/maxima |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.91 2011/08/27 05:03:22 grozin Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.92 2011/08/31 14:20:28 grozin Exp $ |
31 |
+ |
32 |
+*maxima-5.25.1 (31 Aug 2011) |
33 |
+ |
34 |
+ 31 Aug 2011; Andrey Grozin <grozin@g.o> -maxima-5.25.0.ebuild, |
35 |
+ -files/maxima-5.25.0-wish.patch, -files/maxima-5.25.0.patch, |
36 |
+ +maxima-5.25.1.ebuild, +files/maxima-5.25.1-wish.patch, |
37 |
+ +files/maxima-5.25.1.patch: |
38 |
+ Version bump |
39 |
|
40 |
27 Aug 2011; Andrey Grozin <grozin@g.o> maxima-5.25.0.ebuild, |
41 |
+files/maxima-ecl-ldflags.patch: |
42 |
|
43 |
|
44 |
|
45 |
1.1 sci-mathematics/maxima/maxima-5.25.1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.25.1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.25.1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: maxima-5.25.1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2011 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.25.1.ebuild,v 1.1 2011/08/31 14:20:28 grozin Exp $ |
55 |
|
56 |
EAPI=3 |
57 |
|
58 |
inherit autotools elisp-common |
59 |
|
60 |
DESCRIPTION="Free computer algebra environment based on Macsyma" |
61 |
HOMEPAGE="http://maxima.sourceforge.net/" |
62 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
67 |
|
68 |
# Supported lisps (the first one is the default) |
69 |
LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) |
70 |
# . - just dev-lisp/<lisp>, <version> - >= dev-lisp/<lisp>-<version> |
71 |
MIN_VER=( . . 2.6.8_pre[ansi] 10 . . ) |
72 |
# <lisp> supports readline: . - no, y - yes |
73 |
SUPP_RL=( . . y . . y ) |
74 |
# . - just --enable-<lisp>, <flag> - --enable-<flag> |
75 |
CONF_FLAG=( . . . ecl ccl . ) |
76 |
|
77 |
IUSE="latex emacs tk nls unicode xemacs X ${LISPS[*]}" |
78 |
|
79 |
# Languages |
80 |
LANGS="es pt pt_BR" |
81 |
for lang in ${LANGS}; do |
82 |
IUSE="${IUSE} linguas_${lang}" |
83 |
done |
84 |
|
85 |
RDEPEND="X? ( x11-misc/xdg-utils |
86 |
sci-visualization/gnuplot[gd] |
87 |
tk? ( dev-lang/tk ) ) |
88 |
latex? ( virtual/latex-base ) |
89 |
emacs? ( virtual/emacs |
90 |
latex? ( app-emacs/auctex ) ) |
91 |
xemacs? ( app-editors/xemacs |
92 |
latex? ( app-emacs/auctex ) )" |
93 |
|
94 |
PDEPEND="emacs? ( app-emacs/imaxima )" |
95 |
|
96 |
# generating lisp dependencies |
97 |
depends() { |
98 |
local LISP DEP |
99 |
LISP=${LISPS[$1]} |
100 |
DEP=${MIN_VER[$1]} |
101 |
if [ "${DEP}" = "." ]; then |
102 |
DEP="dev-lisp/${LISP}" |
103 |
else |
104 |
DEP=">=dev-lisp/${LISP}-${DEP}" |
105 |
fi |
106 |
if [ "${SUPP_RL[$1]}" = "." ]; then |
107 |
DEP="${DEP} app-misc/rlwrap" |
108 |
fi |
109 |
echo ${DEP} |
110 |
} |
111 |
|
112 |
n=${#LISPS[*]} |
113 |
for ((n--; n >= 0; n--)); do |
114 |
LISP=${LISPS[${n}]} |
115 |
RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" |
116 |
if (( ${n} > 0 )); then |
117 |
DEF_DEP="${DEF_DEP} !${LISP}? ( " |
118 |
fi |
119 |
done |
120 |
|
121 |
DEF_DEP="${DEF_DEP} `depends 0`" |
122 |
|
123 |
n=${#LISPS[*]} |
124 |
for ((n--; n > 0; n--)); do |
125 |
DEF_DEP="${DEF_DEP} )" |
126 |
done |
127 |
|
128 |
unset LISP |
129 |
|
130 |
RDEPEND="${RDEPEND} |
131 |
${DEF_DEP}" |
132 |
|
133 |
DEPEND="${RDEPEND} |
134 |
sys-apps/texinfo" |
135 |
|
136 |
TEXMF="${EPREFIX}"/usr/share/texmf-site |
137 |
|
138 |
pkg_setup() { |
139 |
local n=${#LISPS[*]} |
140 |
|
141 |
for ((n--; n >= 0; n--)); do |
142 |
use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" |
143 |
done |
144 |
|
145 |
if [ -z "${NLISPS}" ]; then |
146 |
ewarn "No lisp specified in USE flags, choosing ${LISPS[0]} as default" |
147 |
NLISPS=0 |
148 |
fi |
149 |
} |
150 |
|
151 |
src_prepare() { |
152 |
# use xdg-open to view ps, pdf |
153 |
epatch "${FILESDIR}"/${PN}-xdg-utils.patch |
154 |
|
155 |
# Don't use lisp init files |
156 |
# ClozureCL (former OpenMCL) executable name is ccl |
157 |
epatch "${FILESDIR}"/${P}.patch |
158 |
|
159 |
# make xmaxima conditional on tk (wish) |
160 |
epatch "${FILESDIR}"/${P}-wish.patch |
161 |
|
162 |
# don't install imaxima, since we have a separate package for it |
163 |
epatch "${FILESDIR}"/${PN}-imaxima.patch |
164 |
|
165 |
# remove rmaxima if not needed |
166 |
epatch "${FILESDIR}"/${PN}-rmaxima.patch |
167 |
|
168 |
# fix LDFLAGS handling in ecl (#378195) |
169 |
epatch "${FILESDIR}"/${PN}-ecl-ldflags.patch |
170 |
|
171 |
# bug #343331 |
172 |
rm share/Makefile.in || die |
173 |
rm src/Makefile.in || die |
174 |
touch src/*.mk |
175 |
touch src/Makefile.am |
176 |
eautoreconf |
177 |
} |
178 |
|
179 |
src_configure() { |
180 |
local CONFS CONF n lang |
181 |
for n in ${NLISPS}; do |
182 |
CONF=${CONF_FLAG[${n}]} |
183 |
if [ ${CONF} = . ]; then |
184 |
CONF=${LISPS[${n}]} |
185 |
fi |
186 |
CONFS="${CONFS} --enable-${CONF}" |
187 |
done |
188 |
|
189 |
# enable existing translated doc |
190 |
if use nls; then |
191 |
for lang in ${LANGS}; do |
192 |
if use "linguas_${lang}"; then |
193 |
CONFS="${CONFS} --enable-lang-${lang}" |
194 |
use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
195 |
fi |
196 |
done |
197 |
fi |
198 |
|
199 |
econf ${CONFS} $(use_with tk wish) --with-lispdir="${SITELISP}"/${PN} |
200 |
} |
201 |
|
202 |
src_install() { |
203 |
einstall emacsdir="${ED}${SITELISP}/${PN}" || die "einstall failed" |
204 |
|
205 |
use tk && make_desktop_entry xmaxima xmaxima \ |
206 |
/usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
207 |
"Science;Math;Education" |
208 |
|
209 |
if use latex; then |
210 |
insinto ${TEXMF}/tex/latex/emaxima |
211 |
doins interfaces/emacs/emaxima/emaxima.sty |
212 |
fi |
213 |
|
214 |
# do not use dodoc because interfaces can't read compressed files |
215 |
# read COPYING before attempt to remove it from dodoc |
216 |
insinto /usr/share/${PN}/${PV}/doc |
217 |
doins AUTHORS COPYING README README.lisps || die |
218 |
dodir /usr/share/doc |
219 |
dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} || die |
220 |
|
221 |
if use emacs; then |
222 |
elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el || die |
223 |
fi |
224 |
|
225 |
# if we use ecls, build an ecls library for maxima |
226 |
if use ecls; then |
227 |
cd src |
228 |
mkdir ./lisp-cache |
229 |
ecl \ |
230 |
-eval '(require `asdf)' \ |
231 |
-eval '(setf asdf::*user-cache* (truename "./lisp-cache"))' \ |
232 |
-eval '(load "maxima-build.lisp")' \ |
233 |
-eval '(asdf:make-build :maxima :type :fasl :move-here ".")' \ |
234 |
-eval '(quit)' |
235 |
ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
236 |
insinto "${ECLLIB#${EPREFIX}}" |
237 |
newins maxima.fasb maxima.fas |
238 |
fi |
239 |
} |
240 |
|
241 |
pkg_preinst() { |
242 |
# some lisps do not read compress info files (bug #176411) |
243 |
local infofile |
244 |
for infofile in "${ED}"/usr/share/info/*.bz2 ; do |
245 |
bunzip2 "${infofile}" |
246 |
done |
247 |
} |
248 |
|
249 |
pkg_postinst() { |
250 |
use emacs && elisp-site-regen |
251 |
use latex && mktexlsr |
252 |
} |
253 |
|
254 |
pkg_postrm() { |
255 |
use emacs && elisp-site-regen |
256 |
use latex && mktexlsr |
257 |
} |