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.32.1-r1.ebuild
Date: Wed, 29 Jan 2014 13:46:31
Message-Id: 20140129134626.C711E2004E@flycatcher.gentoo.org
1 grozin 14/01/29 13:46:26
2
3 Modified: ChangeLog
4 Added: maxima-5.32.1-r1.ebuild
5 Log:
6 Fix the library version of the ecls maxima needed by sage (bug #499634), thanks to Martin von Gagern <Martin.vGagern@×××.net>
7
8 (Portage version: 2.2.8-r1/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)
9
10 Revision Changes Path
11 1.109 sci-mathematics/maxima/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.109&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.109&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.108&r2=1.109
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v
20 retrieving revision 1.108
21 retrieving revision 1.109
22 diff -u -r1.108 -r1.109
23 --- ChangeLog 11 Jan 2014 11:21:18 -0000 1.108
24 +++ ChangeLog 29 Jan 2014 13:46:26 -0000 1.109
25 @@ -1,6 +1,13 @@
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.108 2014/01/11 11:21:18 grozin Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.109 2014/01/29 13:46:26 grozin Exp $
30 +
31 +*maxima-5.32.1-r1 (29 Jan 2014)
32 +
33 + 29 Jan 2014; Andrey Grozin <grozin@g.o> +maxima-5.32.1-r1.ebuild,
34 + +files/ecls-1.patch:
35 + Fix the library version of the ecls maxima needed by sage (bug #499634),
36 + thanks to Martin von Gagern <Martin.vGagern@×××.net>
37
38 *maxima-5.32.1 (11 Jan 2014)
39
40
41
42
43 1.1 sci-mathematics/maxima/maxima-5.32.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.32.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/maxima/maxima-5.32.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: maxima-5.32.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 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.32.1-r1.ebuild,v 1.1 2014/01/29 13:46:26 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 . 1 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"
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 ECLLIB=`ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)"`
218 insinto "${ECLLIB#${EPREFIX}}"
219 doins src/binary-ecl/maxima.fas
220 fi
221 }
222
223 pkg_preinst() {
224 # some lisps do not read compress info files (bug #176411)
225 local infofile
226 for infofile in "${ED}"/usr/share/info/*.bz2 ; do
227 bunzip2 "${infofile}"
228 done
229 }
230
231 pkg_postinst() {
232 use emacs && elisp-site-regen
233 use latex && mktexlsr
234 }
235
236 pkg_postrm() {
237 use emacs && elisp-site-regen
238 use latex && mktexlsr
239 }