Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/maxima: ChangeLog maxima-5.13.0.ebuild
Date: Thu, 20 Sep 2007 11:22:20
Message-Id: E1IYJyY-0000py-JE@stork.gentoo.org
1 bicatali 07/09/20 11:13:42
2
3 Modified: ChangeLog maxima-5.13.0.ebuild
4 Log:
5 Enabling only one lisp. Priority are: 1.sbcl, 2.clisp, 3.
6 (Portage version: 2.1.3.9)
7
8 Revision Changes Path
9 1.34 sci-mathematics/maxima/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.34&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?rev=1.34&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/ChangeLog?r1=1.33&r2=1.34
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v
18 retrieving revision 1.33
19 retrieving revision 1.34
20 diff -u -r1.33 -r1.34
21 --- ChangeLog 14 Sep 2007 08:39:04 -0000 1.33
22 +++ ChangeLog 20 Sep 2007 11:13:42 -0000 1.34
23 @@ -1,6 +1,12 @@
24 # ChangeLog for sci-mathematics/maxima
25 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.33 2007/09/14 08:39:04 bicatali Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.34 2007/09/20 11:13:42 bicatali Exp $
28 +
29 + 20 Sep 2007; Sébastien Fabbro <bicatali@g.o> maxima-5.13.0.ebuild:
30 + Enabling only one lisp. Priority are: 1.sbcl, 2.clisp, 3.
31 + cmucl, 4. gcl, since gcl-2.6.7 is fairly unstable for maxima. Hopefully
32 + taking care of bug #192613. General cleaning and commenting, removed
33 + useless eautoreconf.
34
35 14 Sep 2007; Sébastien Fabbro <bicatali@g.o> maxima-5.9.1.ebuild:
36 fixed a doc link (bug #182643)
37
38
39
40 1.5 sci-mathematics/maxima/maxima-5.13.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild?rev=1.5&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild?rev=1.5&content-type=text/plain
44 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild?r1=1.4&r2=1.5
45
46 Index: maxima-5.13.0.ebuild
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild,v
49 retrieving revision 1.4
50 retrieving revision 1.5
51 diff -u -r1.4 -r1.5
52 --- maxima-5.13.0.ebuild 15 Sep 2007 19:30:36 -0000 1.4
53 +++ maxima-5.13.0.ebuild 20 Sep 2007 11:13:42 -0000 1.5
54 @@ -1,8 +1,8 @@
55 # Copyright 1999-2007 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild,v 1.4 2007/09/15 19:30:36 bicatali Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0.ebuild,v 1.5 2007/09/20 11:13:42 bicatali Exp $
59
60 -inherit eutils elisp-common autotools
61 +inherit eutils elisp-common
62
63 DESCRIPTION="Free computer algebra environment based on Macsyma"
64 HOMEPAGE="http://maxima.sourceforge.net/"
65 @@ -34,6 +34,8 @@
66 IUSE="${IUSE} linguas_${lang}"
67 done
68
69 +RESTRICT="clisp? ( strip )"
70 +
71 pkg_setup() {
72 # Don't install in the main tree, as this may cause file collisions
73 if use tetex; then
74 @@ -68,20 +70,28 @@
75 fi
76 fi
77
78 - if ! built_with_use -a sci-visualization/gnuplot gd; then
79 + if ! built_with_use sci-visualization/gnuplot gd; then
80 elog "To benefit full plotting capability of maxima,"
81 elog "enable the gd USE flag enabled for sci-visualization/gnuplot"
82 elog "Then re-emerge maxima"
83 epause 5
84 fi
85
86 - # enable gcl if no other lisp selected
87 - if use sbcl || (! use cmucl && ! use clisp && ! use gcl ); then
88 - ENABLE_SBCL="--enable-sbcl"
89 + # lisp priorities
90 + MAXIMA_LISP="sbcl"
91 + if use clisp && use gcl && ! use sbcl; then
92 + MAXIMA_LISP=clisp
93 + elif use clisp && use cmucl && ! use sbcl; then
94 + MAXIMA_LISP=clisp
95 + elif use cmucl && use gcl && ! use sbcl; then
96 + MAXIMA_LISP=cmucl
97 + elif use gcl && ! use sbcl; then
98 + MAXIMA_LISP=gcl
99 fi
100 + einfo "Selected lisp: ${MAXIMA_LISP}"
101
102 - if use gcl; then
103 - einfo "Using gcl: it might break, recompile with another lisp, or use default (sbcl)."
104 + if [[ ${MAXIMA_LISP} == gcl ]]; then
105 + ewarn "Using gcl: if it breaks, recompile with another lisp or use default (sbcl)."
106 if ! built_with_use dev-lisp/gcl ansi; then
107 eerror "GCL must be installed with ANSI."
108 eerror "Try USE=\"ansi\" emerge gcl"
109 @@ -94,20 +104,17 @@
110 unpack ${A}
111 # use xdg-open to view ps, pdf
112 epatch "${FILESDIR}"/${P}-xdg-utils.patch
113 -}
114 -
115 -src_compile() {
116 - eautoreconf
117 -
118 # remove rmaxima if neither cmucl nor sbcl
119 - if ! use sbcl && ! use cmucl && [[ -z ${ENABLE_SBCL} ]]; then
120 + if [[ ${MAXIMA_LISP} != cmucl ]] || [[ ${MAXIMA_LISP} != sbcl ]]; then
121 sed -i \
122 -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' \
123 - src/Makefile.in || die "sed for rmaxima failed"
124 + "${S}"/src/Makefile.in \
125 + || die "sed for rmaxima failed"
126 fi
127 +}
128
129 - local myconf=${ENABLE_SBCL}
130 -
131 +src_compile() {
132 + local myconf="--enable-${MAXIMA_LISP}"
133 # remove xmaxima if no tk
134 if use tk; then
135 myconf="${myconf} --with-wish=wish"
136 @@ -128,12 +135,7 @@
137 done
138 fi
139
140 - econf \
141 - $(use_enable cmucl) \
142 - $(use_enable clisp) \
143 - $(use_enable gcl) \
144 - ${myconf} \
145 - || die "econf failed"
146 + econf ${myconf} || die "econf failed"
147 emake || die "emake failed"
148 }
149
150 @@ -160,10 +162,13 @@
151 }
152
153 pkg_preinst() {
154 - # all lisps do not bunzip2 info files on the fly
155 - for infofile in $(ls ${D}/usr/share/info/*.bz2); do
156 + # some lisps do not read compress info files (bug #176411)
157 + for infofile in "${D}"/usr/share/info/*.bz2 ; do
158 bunzip2 "${infofile}"
159 done
160 + for infofile in "${D}"/usr/share/info/*.gz ; do
161 + gunzip "${infofile}"
162 + done
163 }
164
165 pkg_postinst() {
166
167
168
169 --
170 gentoo-commits@g.o mailing list