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.18.1.ebuild
Date: Sun, 19 Apr 2009 22:03:38
Message-Id: E1Lvf6t-0003QI-7r@stork.gentoo.org
1 grozin 09/04/19 22:03:35
2
3 Modified: ChangeLog
4 Added: maxima-5.18.1.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc30/cvs/Linux i686)
8
9 Revision Changes Path
10 1.64 sci-mathematics/maxima/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.64&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.64&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.63&r2=1.64
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v
19 retrieving revision 1.63
20 retrieving revision 1.64
21 diff -u -r1.63 -r1.64
22 --- ChangeLog 1 Apr 2009 21:05:37 -0000 1.63
23 +++ ChangeLog 19 Apr 2009 22:03:35 -0000 1.64
24 @@ -1,10 +1,16 @@
25 # ChangeLog for sci-mathematics/maxima
26 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.63 2009/04/01 21:05:37 ulm Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.64 2009/04/19 22:03:35 grozin Exp $
29 +
30 + 20 Apr 2009; Andrey Grozin <grozin@g.o> ChangeLog:
31 + Version bump
32
33 01 Apr 2009; Ulrich Mueller <ulm@g.o> maxima-5.17.1-r1.ebuild:
34 Restore ~sparc after imaxima keywording, bug 262975.
35
36 + 26 Mar 2009; Andrey Grozin <grozin@g.o> maxima-5.17.1-r1.ebuild:
37 + ~sparc added back
38 +
39 *maxima-5.17.1-r1 (19 Mar 2009)
40
41 19 Mar 2009; Andrey Grozin <grozin@g.o> files/50maxima-gentoo.el,
42
43
44
45 1.1 sci-mathematics/maxima/maxima-5.18.1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.18.1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.18.1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: maxima-5.18.1.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.18.1.ebuild,v 1.1 2009/04/19 22:03:35 grozin Exp $
55 EAPI=2
56 inherit eutils elisp-common
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 AECA"
63 SLOT="0"
64 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
65
66 # Supported lisps with readline
67 SUPP_RL="gcl clisp"
68 # Supported lisps without readline
69 SUPP_NORL="cmucl sbcl"
70 SUPP_LISPS="${SUPP_RL} ${SUPP_NORL}"
71 # Default lisp if none selected
72 DEF_LISP="sbcl"
73
74 IUSE="latex emacs tk nls unicode xemacs X ${SUPP_LISPS} ${IUSE}"
75
76 # Languages
77 LANGS="es pt pt_BR"
78 for lang in ${LANGS}; do
79 IUSE="${IUSE} linguas_${lang}"
80 done
81
82 RDEPEND="X? ( x11-misc/xdg-utils
83 sci-visualization/gnuplot[gd]
84 tk? ( dev-lang/tk ) )
85 latex? ( || ( dev-texlive/texlive-latexrecommended
86 >=app-text/tetex-3
87 app-text/ptex ) )
88 emacs? ( virtual/emacs
89 latex? ( app-emacs/auctex ) )
90 xemacs? ( virtual/xemacs
91 latex? ( app-emacs/auctex ) )"
92
93 PDEPEND="emacs? ( app-emacs/imaxima )"
94
95 # create lisp dependencies
96 for LISP in ${SUPP_LISPS}; do
97 if [ "${LISP}" = "gcl" ]
98 then
99 RDEPEND="${RDEPEND} gcl? ( >=dev-lisp/gcl-2.6.8_pre[ansi] )"
100 else
101 RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP} )"
102 fi
103 DEF_DEP="${DEF_DEP} !${LISP}? ( "
104 done
105 DEF_DEP="${DEF_DEP} dev-lisp/${DEF_LISP}"
106 for LISP in ${SUPP_NORL}; do
107 RDEPEND="${RDEPEND} ${LISP}? ( app-misc/rlwrap )"
108 [[ ${LISP} = ${DEF_LISP} ]] && \
109 DEF_DEP="${DEF_DEP} app-misc/rlwrap"
110 done
111 for LISP in ${SUPP_LISPS}; do
112 DEF_DEP="${DEF_DEP} )"
113 done
114
115 RDEPEND="${RDEPEND}
116 ${DEF_DEP}"
117
118 DEPEND="${RDEPEND}
119 sys-apps/texinfo"
120
121 TEXMF=/usr/share/texmf-site
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-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 }