Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/maxima: ChangeLog maxima-5.24.0.ebuild
Date: Thu, 28 Apr 2011 19:25:55
Message-Id: 20110428192546.3530B2005C@flycatcher.gentoo.org
1 grozin 11/04/28 19:25:46
2
3 Modified: ChangeLog
4 Added: maxima-5.24.0.ebuild
5 Log:
6 Version bump, closing #364005
7
8 (Portage version: 2.2.0_alpha30/cvs/Linux i686)
9
10 Revision Changes Path
11 1.87 sci-mathematics/maxima/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.87&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.87&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.86&r2=1.87
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v
20 retrieving revision 1.86
21 retrieving revision 1.87
22 diff -u -r1.86 -r1.87
23 --- ChangeLog 17 Feb 2011 17:37:56 -0000 1.86
24 +++ ChangeLog 28 Apr 2011 19:25:46 -0000 1.87
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sci-mathematics/maxima
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.86 2011/02/17 17:37:56 bicatali Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.87 2011/04/28 19:25:46 grozin Exp $
30 +
31 +*maxima-5.24.0 (29 Apr 2011)
32 +
33 + 29 Apr 2011; Andrey Grozin <grozin@g.o>
34 + -files/maxima-5.19.1-no-init-files.patch, +maxima-5.24.0.ebuild,
35 + +files/maxima-5.24.0-wish.patch, +files/maxima-5.24.0.patch,
36 + -files/maxima-wish.patch:
37 + Version bump, closing #364005
38
39 17 Feb 2011; Sébastien Fabbro <bicatali@g.o> -maxima-5.19.2.ebuild,
40 -maxima-5.20.1-r2.ebuild, -files/maxima-5.20.1-ecl-10.4.1.patch,
41
42
43
44 1.1 sci-mathematics/maxima/maxima-5.24.0.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.24.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.24.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: maxima-5.24.0.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.24.0.ebuild,v 1.1 2011/04/28 19:25:46 grozin Exp $
54
55 EAPI=3
56
57 inherit autotools elisp-common
58
59 DESCRIPTION="Free computer algebra environment based on Macsyma"
60 HOMEPAGE="http://maxima.sourceforge.net/"
61 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
66
67 # Supported lisps (the first one is the default)
68 LISPS=( sbcl cmucl gcl ecls clozurecl clisp )
69 # . - just dev-lisp/<lisp>, <version> - >= dev-lisp/<lisp>-<version>
70 MIN_VER=( . . 2.6.8_pre[ansi] 10 . . )
71 # <lisp> supports readline: . - no, y - yes
72 SUPP_RL=( . . y . . y )
73 # . - just --enable-<lisp>, <flag> - --enable-<flag>
74 CONF_FLAG=( . . . ecl ccl . )
75
76 IUSE="latex emacs tk nls unicode xemacs X ${LISPS[*]}"
77
78 # Languages
79 LANGS="es pt pt_BR"
80 for lang in ${LANGS}; do
81 IUSE="${IUSE} linguas_${lang}"
82 done
83
84 RDEPEND="X? ( x11-misc/xdg-utils
85 sci-visualization/gnuplot[gd]
86 tk? ( dev-lang/tk ) )
87 latex? ( virtual/latex-base )
88 emacs? ( virtual/emacs
89 latex? ( app-emacs/auctex ) )
90 xemacs? ( app-editors/xemacs
91 latex? ( app-emacs/auctex ) )"
92
93 PDEPEND="emacs? ( app-emacs/imaxima )"
94
95 # generating lisp dependencies
96 depends() {
97 local LISP DEP
98 LISP=${LISPS[$1]}
99 DEP=${MIN_VER[$1]}
100 if [ "${DEP}" = "." ]; then
101 DEP="dev-lisp/${LISP}"
102 else
103 DEP=">=dev-lisp/${LISP}-${DEP}"
104 fi
105 if [ "${SUPP_RL[$1]}" = "." ]; then
106 DEP="${DEP} app-misc/rlwrap"
107 fi
108 echo ${DEP}
109 }
110
111 n=${#LISPS[*]}
112 for ((n--; n >= 0; n--)); do
113 LISP=${LISPS[${n}]}
114 RDEPEND="${RDEPEND} ${LISP}? ( $(depends ${n}) )"
115 if (( ${n} > 0 )); then
116 DEF_DEP="${DEF_DEP} !${LISP}? ( "
117 fi
118 done
119
120 DEF_DEP="${DEF_DEP} `depends 0`"
121
122 n=${#LISPS[*]}
123 for ((n--; n > 0; n--)); do
124 DEF_DEP="${DEF_DEP} )"
125 done
126
127 unset LISP
128
129 RDEPEND="${RDEPEND}
130 ${DEF_DEP}"
131
132 DEPEND="${RDEPEND}
133 sys-apps/texinfo"
134
135 TEXMF="${EPREFIX}"/usr/share/texmf-site
136
137 pkg_setup() {
138 local n=${#LISPS[*]}
139
140 for ((n--; n >= 0; n--)); do
141 use ${LISPS[${n}]} && NLISPS="${NLISPS} ${n}"
142 done
143
144 if [ -z "${NLISPS}" ]; then
145 ewarn "No lisp specified in USE flags, choosing ${LISPS[0]} as default"
146 NLISPS=0
147 fi
148 }
149
150 src_prepare() {
151 # use xdg-open to view ps, pdf
152 epatch "${FILESDIR}"/${PN}-xdg-utils.patch
153
154 # Don't use lisp init files
155 # ClozureCL (former OpenMCL) executable name is ccl
156 epatch "${FILESDIR}"/${P}.patch
157
158 # make xmaxima conditional on tk (wish)
159 epatch "${FILESDIR}"/${P}-wish.patch
160
161 # don't install imaxima, since we have a separate package for it
162 epatch "${FILESDIR}"/${PN}-imaxima.patch
163
164 # remove rmaxima if not needed
165 epatch "${FILESDIR}"/${PN}-rmaxima.patch
166
167 # bug #343331
168 rm share/Makefile.in || die
169 eautoreconf
170 }
171
172 src_configure() {
173 local CONFS CONF n lang
174 for n in ${NLISPS}; do
175 CONF=${CONF_FLAG[${n}]}
176 if [ ${CONF} = . ]; then
177 CONF=${LISPS[${n}]}
178 fi
179 CONFS="${CONFS} --enable-${CONF}"
180 done
181
182 # enable existing translated doc
183 if use nls; then
184 for lang in ${LANGS}; do
185 if use "linguas_${lang}"; then
186 CONFS="${CONFS} --enable-lang-${lang}"
187 use unicode && CONFS="${CONFS} --enable-lang-${lang}-utf8"
188 fi
189 done
190 fi
191
192 econf ${CONFS} $(use_with tk wish) --with-lispdir="${SITELISP}"/${PN}
193 }
194
195 src_install() {
196 einstall emacsdir="${ED}${SITELISP}/${PN}" || die "einstall failed"
197
198 use tk && make_desktop_entry xmaxima xmaxima \
199 /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \
200 "Science;Math;Education"
201
202 if use latex; then
203 insinto ${TEXMF}/tex/latex/emaxima
204 doins interfaces/emacs/emaxima/emaxima.sty
205 fi
206
207 # do not use dodoc because interfaces can't read compressed files
208 # read COPYING before attempt to remove it from dodoc
209 insinto /usr/share/${PN}/${PV}/doc
210 doins AUTHORS COPYING README README.lisps || die
211 dodir /usr/share/doc
212 dosym ../${PN}/${PV}/doc /usr/share/doc/${PF} || die
213
214 if use emacs; then
215 elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el || die
216 fi
217 }
218
219 pkg_preinst() {
220 # some lisps do not read compress info files (bug #176411)
221 local infofile
222 for infofile in "${ED}"/usr/share/info/*.bz2 ; do
223 bunzip2 "${infofile}"
224 done
225 }
226
227 pkg_postinst() {
228 use emacs && elisp-site-regen
229 use latex && mktexlsr
230 }
231
232 pkg_postrm() {
233 use emacs && elisp-site-regen
234 use latex && mktexlsr
235 }