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