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