1 |
grozin 15/05/01 15:16:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: maxima-5.36.1.ebuild |
5 |
Removed: maxima-5.36.0.ebuild |
6 |
Log: |
7 |
Version bump |
8 |
|
9 |
(Portage version: 2.2.18/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.122 sci-mathematics/maxima/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.122&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.122&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.121&r2=1.122 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v |
21 |
retrieving revision 1.121 |
22 |
retrieving revision 1.122 |
23 |
diff -u -r1.121 -r1.122 |
24 |
--- ChangeLog 22 Apr 2015 06:55:34 -0000 1.121 |
25 |
+++ ChangeLog 1 May 2015 15:16:45 -0000 1.122 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-mathematics/maxima |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.121 2015/04/22 06:55:34 jlec Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.122 2015/05/01 15:16:45 grozin Exp $ |
31 |
+ |
32 |
+*maxima-5.36.1 (01 May 2015) |
33 |
+ |
34 |
+ 01 May 2015; Andrey Grozin <grozin@g.o> -maxima-5.36.0.ebuild, |
35 |
+ +maxima-5.36.1.ebuild: |
36 |
+ Version bump |
37 |
|
38 |
22 Apr 2015; Justin Lecher <jlec@g.o> -maxima-5.26.0.ebuild, |
39 |
-maxima-5.27.0-r1.ebuild, -maxima-5.28.0.ebuild, -maxima-5.29.1.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-mathematics/maxima/maxima-5.36.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.36.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.36.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: maxima-5.36.1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2015 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.36.1.ebuild,v 1.1 2015/05/01 15:16:45 grozin Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
inherit autotools elisp-common eutils |
57 |
|
58 |
DESCRIPTION="Free computer algebra environment based on Macsyma" |
59 |
HOMEPAGE="http://maxima.sourceforge.net/" |
60 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
65 |
|
66 |
# Supported lisps |
67 |
LISPS=( sbcl cmucl gcl ecls clozurecl clisp ) |
68 |
# <lisp> supports readline: . - no, y - yes |
69 |
SUPP_RL=( . . y . . y ) |
70 |
# . - just --enable-<lisp>, <flag> - --enable-<flag> |
71 |
CONF_FLAG=( . . . ecl ccl . ) |
72 |
# patch file version; . - no patch |
73 |
PATCH_V=( 0 0 . 1 1 0 ) |
74 |
|
75 |
IUSE="latex emacs tk nls unicode xemacs X ${LISPS[*]}" |
76 |
|
77 |
# Languages |
78 |
LANGS="es pt pt_BR" |
79 |
for lang in ${LANGS}; do |
80 |
IUSE="${IUSE} linguas_${lang}" |
81 |
done |
82 |
|
83 |
RDEPEND="X? ( x11-misc/xdg-utils |
84 |
sci-visualization/gnuplot[gd] |
85 |
tk? ( dev-lang/tk:0 ) ) |
86 |
latex? ( virtual/latex-base ) |
87 |
emacs? ( virtual/emacs |
88 |
latex? ( app-emacs/auctex ) ) |
89 |
xemacs? ( app-editors/xemacs |
90 |
latex? ( app-emacs/auctex ) )" |
91 |
|
92 |
PDEPEND="emacs? ( app-emacs/imaxima )" |
93 |
|
94 |
# generating lisp dependencies |
95 |
depends() { |
96 |
local LISP DEP |
97 |
LISP=${LISPS[$1]} |
98 |
DEP="dev-lisp/${LISP}:=" |
99 |
if [ "${SUPP_RL[$1]}" = "." ]; then |
100 |
DEP="${DEP} app-misc/rlwrap" |
101 |
fi |
102 |
echo ${DEP} |
103 |
} |
104 |
|
105 |
n=${#LISPS[*]} |
106 |
for ((n--; n >= 0; n--)); do |
107 |
LISP=${LISPS[${n}]} |
108 |
RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )" |
109 |
if (( ${n} > 0 )); then |
110 |
DEF_DEP="${DEF_DEP} !${LISP}? ( " |
111 |
fi |
112 |
done |
113 |
|
114 |
# default lisp |
115 |
if use arm; then |
116 |
DEF_LISP=2 # gcl |
117 |
else |
118 |
DEF_LISP=0 # sbcl |
119 |
fi |
120 |
|
121 |
DEF_DEP="${DEF_DEP} `depends ${DEF_LISP}`" |
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[${DEF_LISP}]} as default" |
147 |
NLISPS=${DEF_LISP} |
148 |
fi |
149 |
} |
150 |
|
151 |
src_prepare() { |
152 |
local n PATCHES v |
153 |
PATCHES=( imaxima-0 rmaxima-0 wish-1 xdg-utils-0 ) |
154 |
|
155 |
n=${#PATCHES[*]} |
156 |
for ((n--; n >= 0; n--)); do |
157 |
epatch "${FILESDIR}"/${PATCHES[${n}]}.patch |
158 |
done |
159 |
|
160 |
n=${#LISPS[*]} |
161 |
for ((n--; n >= 0; n--)); do |
162 |
v=${PATCH_V[${n}]} |
163 |
if [ "${v}" != "." ]; then |
164 |
epatch "${FILESDIR}"/${LISPS[${n}]}-${v}.patch |
165 |
fi |
166 |
done |
167 |
|
168 |
# this file is wrong in 5.35.1 |
169 |
rm -f src/sys-proclaim.lisp |
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 |
# re-generate sys-proclaim.lisp (only affects gcl) |
200 |
econf ${CONFS} --enable-sys-proclaim $(use_with tk wish) --with-lispdir="${SITELISP}"/${PN} |
201 |
} |
202 |
|
203 |
src_install() { |
204 |
docompress -x /usr/share/info |
205 |
emake DESTDIR="${D}" emacsdir="${SITELISP}/${PN}" install |
206 |
|
207 |
use tk && make_desktop_entry xmaxima xmaxima \ |
208 |
/usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
209 |
"Science;Math;Education" |
210 |
|
211 |
if use latex; then |
212 |
insinto ${TEXMF}/tex/latex/emaxima |
213 |
doins interfaces/emacs/emaxima/emaxima.sty |
214 |
fi |
215 |
|
216 |
# do not use dodoc because interfaces can't read compressed files |
217 |
# read COPYING before attempt to remove it from dodoc |
218 |
insinto /usr/share/${PN}/${PV}/doc |
219 |
doins AUTHORS COPYING README README.lisps || die |
220 |
dodir /usr/share/doc |
221 |
dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} || die |
222 |
|
223 |
if use emacs; then |
224 |
elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el || die |
225 |
fi |
226 |
|
227 |
# if we use ecls, build an ecls library for maxima |
228 |
if use ecls; then |
229 |
ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
230 |
insinto "${ECLLIB#${EPREFIX}}" |
231 |
doins src/binary-ecl/maxima.fas |
232 |
fi |
233 |
} |
234 |
|
235 |
pkg_postinst() { |
236 |
use emacs && elisp-site-regen |
237 |
use latex && mktexlsr |
238 |
} |
239 |
|
240 |
pkg_postrm() { |
241 |
use emacs && elisp-site-regen |
242 |
use latex && mktexlsr |
243 |
} |