1 |
grozin 10/05/01 12:18:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: maxima-5.21.1-r1.ebuild |
5 |
Removed: maxima-5.21.1.ebuild |
6 |
Log: |
7 |
A patch to support clozurecl-1.5 added |
8 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.79 sci-mathematics/maxima/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.79&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.79&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.78&r2=1.79 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v |
20 |
retrieving revision 1.78 |
21 |
retrieving revision 1.79 |
22 |
diff -u -r1.78 -r1.79 |
23 |
--- ChangeLog 24 Apr 2010 21:23:45 -0000 1.78 |
24 |
+++ ChangeLog 1 May 2010 12:18:10 -0000 1.79 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sci-mathematics/maxima |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.78 2010/04/24 21:23:45 grozin Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.79 2010/05/01 12:18:10 grozin Exp $ |
30 |
+ |
31 |
+*maxima-5.21.1-r1 (01 May 2010) |
32 |
+ |
33 |
+ 01 May 2010; Andrey Grozin <grozin@g.o> -maxima-5.21.1.ebuild, |
34 |
+ +maxima-5.21.1-r1.ebuild, -files/maxima-5.21.1-clozurecl-1.5.patch, |
35 |
+ +files/maxima-5.21.1.patch: |
36 |
+ A patch to support clozurecl-1.5 added |
37 |
|
38 |
*maxima-5.21.1 (24 Apr 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-mathematics/maxima/maxima-5.21.1-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.21.1-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.21.1-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: maxima-5.21.1-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/maxima/maxima-5.21.1-r1.ebuild,v 1.1 2010/05/01 12:18:10 grozin Exp $ |
53 |
EAPI=2 |
54 |
inherit eutils elisp-common |
55 |
|
56 |
DESCRIPTION="Free computer algebra environment based on Macsyma" |
57 |
HOMEPAGE="http://maxima.sourceforge.net/" |
58 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
63 |
|
64 |
# Supported lisps with readline |
65 |
SUPP_RL="gcl clisp" |
66 |
# Supported lisps without readline |
67 |
SUPP_NORL="cmucl sbcl ecl openmcl" |
68 |
SUPP_LISPS="${SUPP_RL} ${SUPP_NORL}" |
69 |
# Default lisp if none selected |
70 |
DEF_LISP="sbcl" |
71 |
|
72 |
IUSE="latex emacs tk nls unicode xemacs X ${SUPP_LISPS} ${IUSE}" |
73 |
|
74 |
# Languages |
75 |
LANGS="es pt pt_BR" |
76 |
for lang in ${LANGS}; do |
77 |
IUSE="${IUSE} linguas_${lang}" |
78 |
done |
79 |
|
80 |
RDEPEND="X? ( x11-misc/xdg-utils |
81 |
sci-visualization/gnuplot[gd] |
82 |
tk? ( dev-lang/tk ) ) |
83 |
latex? ( virtual/latex-base ) |
84 |
emacs? ( virtual/emacs |
85 |
latex? ( app-emacs/auctex ) ) |
86 |
xemacs? ( app-editors/xemacs |
87 |
latex? ( app-emacs/auctex ) )" |
88 |
|
89 |
PDEPEND="emacs? ( app-emacs/imaxima )" |
90 |
|
91 |
# create lisp dependencies |
92 |
for LISP in ${SUPP_LISPS}; do |
93 |
if [ "${LISP}" = "gcl" ] |
94 |
then |
95 |
RDEPEND="${RDEPEND} gcl? ( >=dev-lisp/gcl-2.6.8_pre[ansi] )" |
96 |
else if [ "${LISP}" = "ecl" ] |
97 |
then |
98 |
RDEPEND="${RDEPEND} ecl? ( >=dev-lisp/ecls-10.4.1 )" |
99 |
else if [ "${LISP}" = "openmcl" ] |
100 |
then |
101 |
RDEPEND="${RDEPEND} openmcl? ( dev-lisp/clozurecl )" |
102 |
else |
103 |
RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP} )" |
104 |
fi |
105 |
fi |
106 |
fi |
107 |
DEF_DEP="${DEF_DEP} !${LISP}? ( " |
108 |
done |
109 |
DEF_DEP="${DEF_DEP} dev-lisp/${DEF_LISP}" |
110 |
for LISP in ${SUPP_NORL}; do |
111 |
RDEPEND="${RDEPEND} ${LISP}? ( app-misc/rlwrap )" |
112 |
[[ ${LISP} = ${DEF_LISP} ]] && \ |
113 |
DEF_DEP="${DEF_DEP} app-misc/rlwrap" |
114 |
done |
115 |
for LISP in ${SUPP_LISPS}; do |
116 |
DEF_DEP="${DEF_DEP} )" |
117 |
done |
118 |
|
119 |
RDEPEND="${RDEPEND} |
120 |
${DEF_DEP}" |
121 |
|
122 |
DEPEND="${RDEPEND} |
123 |
sys-apps/texinfo" |
124 |
|
125 |
TEXMF=/usr/share/texmf-site |
126 |
NO_INIT_PATCH_PV="5.19.1" |
127 |
|
128 |
pkg_setup() { |
129 |
LISPS="" |
130 |
|
131 |
for LISP in ${SUPP_LISPS}; do |
132 |
use ${LISP} && LISPS="${LISPS} ${LISP}" |
133 |
done |
134 |
|
135 |
RL="" |
136 |
|
137 |
for LISP in ${SUPP_NORL}; do |
138 |
use ${LISP} && RL="yes" |
139 |
done |
140 |
|
141 |
if [ -z "${LISPS}" ]; then |
142 |
ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default" |
143 |
LISPS="${DEF_LISP}" |
144 |
RL="yes" |
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 executable name is now ccl |
154 |
# *read-default-float-format* is now bound per-thread |
155 |
# and isn't saved in a heap image |
156 |
epatch "${FILESDIR}"/${P}.patch |
157 |
|
158 |
epatch "${FILESDIR}"/${P}-emacs-version.patch |
159 |
|
160 |
# remove rmaxima if not needed |
161 |
if [ -z "${RL}" ]; then |
162 |
sed -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' \ |
163 |
-i "${S}"/src/Makefile.in \ |
164 |
|| die "sed for rmaxima failed" |
165 |
fi |
166 |
|
167 |
# don't install imaxima, since we have a separate package for it |
168 |
sed -i -e '/^SUBDIRS/s/imaxima//' interfaces/emacs/Makefile.in \ |
169 |
|| die "sed for imaxima failed" |
170 |
} |
171 |
|
172 |
src_configure() { |
173 |
local myconf="" |
174 |
for LISP in ${LISPS}; do |
175 |
myconf="${myconf} --enable-${LISP}" |
176 |
done |
177 |
|
178 |
# remove xmaxima if no tk |
179 |
if use tk; then |
180 |
myconf="${myconf} --with-wish=wish" |
181 |
else |
182 |
myconf="${myconf} --with-wish=none" |
183 |
sed -i \ |
184 |
-e '/^SUBDIRS/s/xmaxima//' \ |
185 |
interfaces/Makefile.in || die "sed for tk failed" |
186 |
fi |
187 |
|
188 |
# enable existing translated doc |
189 |
if use nls; then |
190 |
for lang in ${LANGS}; do |
191 |
if use "linguas_${lang}"; then |
192 |
myconf="${myconf} --enable-lang-${lang}" |
193 |
use unicode && myconf="${myconf} --enable-lang-${lang}-utf8" |
194 |
fi |
195 |
done |
196 |
fi |
197 |
|
198 |
econf ${myconf} |
199 |
} |
200 |
|
201 |
src_install() { |
202 |
einstall emacsdir="${D}${SITELISP}/${PN}" || die "einstall failed" |
203 |
|
204 |
use tk && make_desktop_entry xmaxima xmaxima \ |
205 |
/usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
206 |
"Science;Math;Education" |
207 |
|
208 |
if use latex; then |
209 |
insinto ${TEXMF}/tex/latex/emaxima |
210 |
doins interfaces/emacs/emaxima/emaxima.sty |
211 |
fi |
212 |
|
213 |
# do not use dodoc because interfaces can't read compressed files |
214 |
# read COPYING before attempt to remove it from dodoc |
215 |
insinto /usr/share/${PN}/${PV}/doc |
216 |
doins AUTHORS COPYING README README.lisps || die |
217 |
dodir /usr/share/doc |
218 |
dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} || die |
219 |
|
220 |
if use emacs; then |
221 |
elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el || die |
222 |
fi |
223 |
} |
224 |
|
225 |
pkg_preinst() { |
226 |
# some lisps do not read compress info files (bug #176411) |
227 |
for infofile in "${D}"/usr/share/info/*.bz2 ; do |
228 |
bunzip2 "${infofile}" |
229 |
done |
230 |
} |
231 |
|
232 |
pkg_postinst() { |
233 |
use emacs && elisp-site-regen |
234 |
use latex && mktexlsr |
235 |
} |
236 |
|
237 |
pkg_postrm() { |
238 |
use emacs && elisp-site-regen |
239 |
use latex && mktexlsr |
240 |
} |