1 |
grozin 13/07/01 11:49:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: maxima-5.30.0-r2.ebuild |
5 |
Removed: maxima-5.30.0-r1.ebuild |
6 |
Log: |
7 |
Fixed #473102 - depend on <texinfo-5.0 again |
8 |
|
9 |
(Portage version: 2.2.0_alpha185/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!) |
10 |
|
11 |
Revision Changes Path |
12 |
1.106 sci-mathematics/maxima/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.106&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.106&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.105&r2=1.106 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v |
21 |
retrieving revision 1.105 |
22 |
retrieving revision 1.106 |
23 |
diff -u -r1.105 -r1.106 |
24 |
--- ChangeLog 5 Jun 2013 15:53:53 -0000 1.105 |
25 |
+++ ChangeLog 1 Jul 2013 11:49:43 -0000 1.106 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-mathematics/maxima |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.105 2013/06/05 15:53:53 grozin Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.106 2013/07/01 11:49:43 grozin Exp $ |
31 |
+ |
32 |
+*maxima-5.30.0-r2 (01 Jul 2013) |
33 |
+ |
34 |
+ 01 Jul 2013; Andrey Grozin <grozin@g.o> -maxima-5.30.0-r1.ebuild, |
35 |
+ +maxima-5.30.0-r2.ebuild, -files/texinfo51.patch: |
36 |
+ Fixed #473102 - depend on <texinfo-5.0 again |
37 |
|
38 |
*maxima-5.30.0-r1 (05 Jun 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-mathematics/maxima/maxima-5.30.0-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.30.0-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.30.0-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: maxima-5.30.0-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 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.30.0-r2.ebuild,v 1.1 2013/07/01 11:49:43 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 (the first one is the default) |
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 . 0 0 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 ) ) |
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 |
DEF_DEP="${DEF_DEP} `depends 0`" |
115 |
|
116 |
n=${#LISPS[*]} |
117 |
for ((n--; n > 0; n--)); do |
118 |
DEF_DEP="${DEF_DEP} )" |
119 |
done |
120 |
|
121 |
unset LISP |
122 |
|
123 |
RDEPEND="${RDEPEND} |
124 |
${DEF_DEP}" |
125 |
|
126 |
DEPEND="${RDEPEND} |
127 |
<sys-apps/texinfo-5.0" |
128 |
|
129 |
TEXMF="${EPREFIX}"/usr/share/texmf-site |
130 |
|
131 |
pkg_setup() { |
132 |
local n=${#LISPS[*]} |
133 |
|
134 |
for ((n--; n >= 0; n--)); do |
135 |
use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}" |
136 |
done |
137 |
|
138 |
if [ -z "${NLISPS}" ]; then |
139 |
ewarn "No lisp specified in USE flags, choosing ${LISPS[0]} as default" |
140 |
NLISPS=0 |
141 |
fi |
142 |
} |
143 |
|
144 |
src_prepare() { |
145 |
local n PATCHES v |
146 |
PATCHES=( imaxima-0 rmaxima-0 wish-0 xdg-utils-0 ) |
147 |
|
148 |
n=${#PATCHES[*]} |
149 |
for ((n--; n >= 0; n--)); do |
150 |
epatch "${FILESDIR}"/${PATCHES[${n}]}.patch |
151 |
done |
152 |
|
153 |
n=${#LISPS[*]} |
154 |
for ((n--; n >= 0; n--)); do |
155 |
v=${PATCH_V[${n}]} |
156 |
if [ "${v}" != "." ]; then |
157 |
epatch "${FILESDIR}"/${LISPS[${n}]}-${v}.patch |
158 |
fi |
159 |
done |
160 |
|
161 |
# bug #343331 |
162 |
rm share/Makefile.in || die |
163 |
rm src/Makefile.in || die |
164 |
touch src/*.mk |
165 |
touch src/Makefile.am |
166 |
eautoreconf |
167 |
} |
168 |
|
169 |
src_configure() { |
170 |
local CONFS CONF n lang |
171 |
for n in ${NLISPS}; do |
172 |
CONF=${CONF_FLAG[${n}]} |
173 |
if [ ${CONF} = . ]; then |
174 |
CONF=${LISPS[${n}]} |
175 |
fi |
176 |
CONFS="${CONFS} --enable-${CONF}" |
177 |
done |
178 |
|
179 |
# enable existing translated doc |
180 |
if use nls; then |
181 |
for lang in ${LANGS}; do |
182 |
if use "linguas_${lang}"; then |
183 |
CONFS="${CONFS} --enable-lang-${lang}" |
184 |
use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8" |
185 |
fi |
186 |
done |
187 |
fi |
188 |
|
189 |
econf ${CONFS} $(use_with tk wish) --with-lispdir="${SITELISP}"/${PN} |
190 |
} |
191 |
|
192 |
src_install() { |
193 |
einstall emacsdir="${ED}${SITELISP}/${PN}" || die "einstall failed" |
194 |
|
195 |
use tk && make_desktop_entry xmaxima xmaxima \ |
196 |
/usr/share/${PN}/${PV}/xmaxima/maxima-new.png \ |
197 |
"Science;Math;Education" |
198 |
|
199 |
if use latex; then |
200 |
insinto ${TEXMF}/tex/latex/emaxima |
201 |
doins interfaces/emacs/emaxima/emaxima.sty |
202 |
fi |
203 |
|
204 |
# do not use dodoc because interfaces can't read compressed files |
205 |
# read COPYING before attempt to remove it from dodoc |
206 |
insinto /usr/share/${PN}/${PV}/doc |
207 |
doins AUTHORS COPYING README README.lisps || die |
208 |
dodir /usr/share/doc |
209 |
dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} || die |
210 |
|
211 |
if use emacs; then |
212 |
elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el || die |
213 |
fi |
214 |
|
215 |
# if we use ecls, build an ecls library for maxima |
216 |
if use ecls; then |
217 |
cd src |
218 |
ecl \ |
219 |
-eval '(require `asdf)' \ |
220 |
-eval '(push "./" asdf:*central-registry*)' \ |
221 |
-eval "(asdf:initialize-output-translations \ |
222 |
'(:output-translations :disable-cache :inherit-configuration))" \ |
223 |
-eval '(load "maxima-build.lisp")' \ |
224 |
-eval '(asdf:make-build :maxima :type :fasl)' \ |
225 |
-eval '(quit)' |
226 |
ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"` |
227 |
insinto "${ECLLIB#${EPREFIX}}" |
228 |
newins maxima.fasb maxima.fas |
229 |
fi |
230 |
} |
231 |
|
232 |
pkg_preinst() { |
233 |
# some lisps do not read compress info files (bug #176411) |
234 |
local infofile |
235 |
for infofile in "${ED}"/usr/share/info/*.bz2 ; do |
236 |
bunzip2 "${infofile}" |
237 |
done |
238 |
} |
239 |
|
240 |
pkg_postinst() { |
241 |
use emacs && elisp-site-regen |
242 |
use latex && mktexlsr |
243 |
} |
244 |
|
245 |
pkg_postrm() { |
246 |
use emacs && elisp-site-regen |
247 |
use latex && mktexlsr |
248 |
} |