1 |
grozin 10/04/24 21:23:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: maxima-5.21.1.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.2_rc67/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.78 sci-mathematics/maxima/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.78&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.78&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.77&r2=1.78 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v |
19 |
retrieving revision 1.77 |
20 |
retrieving revision 1.78 |
21 |
diff -u -r1.77 -r1.78 |
22 |
--- ChangeLog 12 Apr 2010 11:58:46 -0000 1.77 |
23 |
+++ ChangeLog 24 Apr 2010 21:23:45 -0000 1.78 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sci-mathematics/maxima |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.77 2010/04/12 11:58:46 grozin Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.78 2010/04/24 21:23:45 grozin Exp $ |
29 |
+ |
30 |
+*maxima-5.21.1 (24 Apr 2010) |
31 |
+ |
32 |
+ 24 Apr 2010; Andrey Grozin <grozin@g.o> +maxima-5.21.1.ebuild, |
33 |
+ +files/maxima-5.21.1-clozurecl-1.5.patch, |
34 |
+ +files/maxima-5.21.1-emacs-version.patch: |
35 |
+ Version bump |
36 |
|
37 |
*maxima-5.20.1-r2 (12 Apr 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-mathematics/maxima/maxima-5.21.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.21.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.21.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: maxima-5.21.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 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.21.1.ebuild,v 1.1 2010/04/24 21:23:45 grozin Exp $ |
52 |
EAPI=2 |
53 |
inherit eutils elisp-common |
54 |
|
55 |
DESCRIPTION="Free computer algebra environment based on Macsyma" |
56 |
HOMEPAGE="http://maxima.sourceforge.net/" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
62 |
|
63 |
# Supported lisps with readline |
64 |
SUPP_RL="gcl clisp" |
65 |
# Supported lisps without readline |
66 |
SUPP_NORL="cmucl sbcl ecl openmcl" |
67 |
SUPP_LISPS="${SUPP_RL} ${SUPP_NORL}" |
68 |
# Default lisp if none selected |
69 |
DEF_LISP="sbcl" |
70 |
|
71 |
IUSE="latex emacs tk nls unicode xemacs X ${SUPP_LISPS} ${IUSE}" |
72 |
|
73 |
# Languages |
74 |
LANGS="es pt pt_BR" |
75 |
for lang in ${LANGS}; do |
76 |
IUSE="${IUSE} linguas_${lang}" |
77 |
done |
78 |
|
79 |
RDEPEND="X? ( x11-misc/xdg-utils |
80 |
sci-visualization/gnuplot[gd] |
81 |
tk? ( dev-lang/tk ) ) |
82 |
latex? ( virtual/latex-base ) |
83 |
emacs? ( virtual/emacs |
84 |
latex? ( app-emacs/auctex ) ) |
85 |
xemacs? ( app-editors/xemacs |
86 |
latex? ( app-emacs/auctex ) )" |
87 |
|
88 |
PDEPEND="emacs? ( app-emacs/imaxima )" |
89 |
|
90 |
# create lisp dependencies |
91 |
for LISP in ${SUPP_LISPS}; do |
92 |
if [ "${LISP}" = "gcl" ] |
93 |
then |
94 |
RDEPEND="${RDEPEND} gcl? ( >=dev-lisp/gcl-2.6.8_pre[ansi] )" |
95 |
else if [ "${LISP}" = "ecl" ] |
96 |
then |
97 |
RDEPEND="${RDEPEND} ecl? ( >=dev-lisp/ecls-10.4.1 )" |
98 |
else if [ "${LISP}" = "openmcl" ] |
99 |
then |
100 |
RDEPEND="${RDEPEND} openmcl? ( dev-lisp/clozurecl )" |
101 |
else |
102 |
RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP} )" |
103 |
fi |
104 |
fi |
105 |
fi |
106 |
DEF_DEP="${DEF_DEP} !${LISP}? ( " |
107 |
done |
108 |
DEF_DEP="${DEF_DEP} dev-lisp/${DEF_LISP}" |
109 |
for LISP in ${SUPP_NORL}; do |
110 |
RDEPEND="${RDEPEND} ${LISP}? ( app-misc/rlwrap )" |
111 |
[[ ${LISP} = ${DEF_LISP} ]] && \ |
112 |
DEF_DEP="${DEF_DEP} app-misc/rlwrap" |
113 |
done |
114 |
for LISP in ${SUPP_LISPS}; do |
115 |
DEF_DEP="${DEF_DEP} )" |
116 |
done |
117 |
|
118 |
RDEPEND="${RDEPEND} |
119 |
${DEF_DEP}" |
120 |
|
121 |
DEPEND="${RDEPEND} |
122 |
sys-apps/texinfo" |
123 |
|
124 |
TEXMF=/usr/share/texmf-site |
125 |
NO_INIT_PATCH_PV="5.19.1" |
126 |
|
127 |
pkg_setup() { |
128 |
LISPS="" |
129 |
|
130 |
for LISP in ${SUPP_LISPS}; do |
131 |
use ${LISP} && LISPS="${LISPS} ${LISP}" |
132 |
done |
133 |
|
134 |
RL="" |
135 |
|
136 |
for LISP in ${SUPP_NORL}; do |
137 |
use ${LISP} && RL="yes" |
138 |
done |
139 |
|
140 |
if [ -z "${LISPS}" ]; then |
141 |
ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default" |
142 |
LISPS="${DEF_LISP}" |
143 |
RL="yes" |
144 |
fi |
145 |
} |
146 |
|
147 |
src_prepare() { |
148 |
# use xdg-open to view ps, pdf |
149 |
epatch "${FILESDIR}"/${PN}-xdg-utils.patch |
150 |
|
151 |
epatch "${FILESDIR}"/${PN}-${NO_INIT_PATCH_PV}-no-init-files.patch |
152 |
|
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}-clozurecl-1.5.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 |
} |