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