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