Gentoo Archives: gentoo-commits

From: "Markus Dittrich (markusle)" <markusle@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/Macaulay2: Macaulay2-0.9.95-r2.ebuild ChangeLog Macaulay2-0.9.95-r1.ebuild Macaulay2-1.0.ebuild Macaulay2-0.9.95.ebuild Macaulay2-0.9.2.ebuild
Date: Sun, 06 Jan 2008 15:51:28
Message-Id: E1JBXmQ-0006YC-Cm@stork.gentoo.org
1 markusle 08/01/06 15:51:18
2
3 Modified: Macaulay2-0.9.95-r2.ebuild ChangeLog
4 Macaulay2-0.9.95-r1.ebuild
5 Added: Macaulay2-1.0.ebuild
6 Removed: Macaulay2-0.9.95.ebuild Macaulay2-0.9.2.ebuild
7 Log:
8 Version bump and removed old versions.
9 (Portage version: 2.1.4_rc14)
10
11 Revision Changes Path
12 1.3 sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild?r1=1.2&r2=1.3
17
18 Index: Macaulay2-0.9.95-r2.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- Macaulay2-0.9.95-r2.ebuild 1 Jun 2007 01:02:30 -0000 1.2
25 +++ Macaulay2-0.9.95-r2.ebuild 6 Jan 2008 15:51:17 -0000 1.3
26 @@ -1,6 +1,6 @@
27 -# Copyright 1999-2007 Gentoo Foundation
28 +# Copyright 1999-2008 Gentoo Foundation
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild,v 1.2 2007/06/01 01:02:30 markusle Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r2.ebuild,v 1.3 2008/01/06 15:51:17 markusle Exp $
32
33 inherit elisp-common eutils flag-o-matic toolchain-funcs autotools
34
35 @@ -65,12 +65,10 @@
36 }
37
38 src_test() {
39 - cd "${S}"
40 make check || die "tests failed"
41 }
42
43 src_install () {
44 - cd "${S}"
45 make install || die "install failed"
46
47 # nothing in here, get rid of it
48
49
50
51 1.16 sci-mathematics/Macaulay2/ChangeLog
52
53 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog?rev=1.16&view=markup
54 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog?rev=1.16&content-type=text/plain
55 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog?r1=1.15&r2=1.16
56
57 Index: ChangeLog
58 ===================================================================
59 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v
60 retrieving revision 1.15
61 retrieving revision 1.16
62 diff -u -r1.15 -r1.16
63 --- ChangeLog 1 Jun 2007 01:02:30 -0000 1.15
64 +++ ChangeLog 6 Jan 2008 15:51:17 -0000 1.16
65 @@ -1,6 +1,18 @@
66 # ChangeLog for sci-mathematics/Macaulay2
67 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
68 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.15 2007/06/01 01:02:30 markusle Exp $
69 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
70 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.16 2008/01/06 15:51:17 markusle Exp $
71 +
72 +*Macaulay2-1.0 (06 Jan 2008)
73 +
74 + 06 Jan 2008; Markus Dittrich <markusle@g.o>
75 + -files/gentoo-libfac-0.3.2.include.diff,
76 + +files/Macaulay2-1.0-example-fix.patch,
77 + -files/gentoo-factory-1.3b.diff,
78 + -Macaulay2-0.9.2.ebuild, -Macaulay2-0.9.95.ebuild,
79 + +Macaulay2-1.0.ebuild:
80 + Version bump and removed old versions. The tarball for
81 + Macaulay2-1.0 was extracted from upstream's svn release
82 + branch since no sources were posted.
83
84 31 May 2007; Markus Dittrich <markusle@g.o>
85 Macaulay2-0.9.95-r2.ebuild:
86
87
88
89 1.7 sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild
90
91 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild?rev=1.7&view=markup
92 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild?rev=1.7&content-type=text/plain
93 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild?r1=1.6&r2=1.7
94
95 Index: Macaulay2-0.9.95-r1.ebuild
96 ===================================================================
97 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild,v
98 retrieving revision 1.6
99 retrieving revision 1.7
100 diff -u -r1.6 -r1.7
101 --- Macaulay2-0.9.95-r1.ebuild 25 May 2007 17:33:43 -0000 1.6
102 +++ Macaulay2-0.9.95-r1.ebuild 6 Jan 2008 15:51:17 -0000 1.7
103 @@ -1,6 +1,6 @@
104 -# Copyright 1999-2007 Gentoo Foundation
105 +# Copyright 1999-2008 Gentoo Foundation
106 # Distributed under the terms of the GNU General Public License v2
107 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild,v 1.6 2007/05/25 17:33:43 markusle Exp $
108 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-0.9.95-r1.ebuild,v 1.7 2008/01/06 15:51:17 markusle Exp $
109
110 inherit elisp-common eutils flag-o-matic toolchain-funcs autotools
111
112 @@ -65,12 +65,10 @@
113 }
114
115 src_test() {
116 - cd "${S}"
117 make check || die "tests failed"
118 }
119
120 src_install () {
121 - cd "${S}"
122 make install || die "install failed"
123
124 # nothing in here, get rid of it
125
126
127
128 1.1 sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild
129
130 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild?rev=1.1&view=markup
131 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild?rev=1.1&content-type=text/plain
132
133 Index: Macaulay2-1.0.ebuild
134 ===================================================================
135 # Copyright 1999-2008 Gentoo Foundation
136 # Distributed under the terms of the GNU General Public License v2
137 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.0.ebuild,v 1.1 2008/01/06 15:51:17 markusle Exp $
138
139 inherit elisp-common eutils flag-o-matic toolchain-funcs autotools
140
141 IUSE="emacs"
142
143 DESCRIPTION="research tool for commutative algebra and algebraic geometry"
144 SRC_URI="mirror://gentoo/${P}-src.tar.bz2
145 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Factory/factory-3-0-3.tar.gz \
146 ftp://www.mathematik.uni-kl.de/pub/Math/Singular/Libfac/libfac-3-0-3.tar.gz"
147
148 HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/"
149
150 SLOT="0"
151 LICENSE="GPL-2"
152 KEYWORDS="~x86 ~amd64"
153
154 DEPEND="sys-libs/gdbm
155 dev-libs/gmp
156 dev-libs/ntl
157 dev-libs/boehm-gc
158 virtual/blas
159 virtual/lapack
160 dev-util/ctags
161 sys-libs/ncurses
162 emacs? ( virtual/emacs )"
163
164 SITEFILE=70Macaulay2-gentoo.el
165
166 pkg_setup() {
167
168 # boehm-gc currently is broken with USE='threads'
169 # (see bug #195335) causing Macaulay2 to fail
170 if built_with_use =dev-libs/boehm-gc-7* threads; then
171 echo
172 eerror "dev-libs/boehm-gc-7* with USE=\"threads\" is"
173 eerror "currently broken (see bug #195335) causing"
174 eerror "Macaulay to fail building. Please re-emerge"
175 eerror "dev-libs/boehm-gc-7* with USE=\"-threads\"!"
176 die "boehm-gc setup error"
177 echo
178 fi
179 }
180
181 src_unpack() {
182 unpack ${A}
183 cd "${S}"
184 epatch "${FILESDIR}"/${P}-example-fix.patch
185
186 sed -e "s:\$docdirtail/${PN}:\$docdirtail/${P}:" \
187 -i configure.ac \
188 || die "Failed to fix doc install directory."
189 }
190
191 src_compile() {
192 cd "${WORKDIR}/factory-3.0.3"
193 econf --enable-NTL --prefix="${WORKDIR}" || \
194 die "failed to configure factory"
195 emake || die "failed to build factory"
196 make install || die "failed to install factory"
197
198 cd "${WORKDIR}/libfac"
199 CPPFLAGS="-I${WORKDIR}/include" econf --with-NOSTREAMIO \
200 --prefix="${WORKDIR}" || die "failed to configure libfac"
201 emake || die "failed to build libfac"
202 make install || die "failed to install libfac"
203
204 cd "${S}"
205 sed -e "/^docm2RelDir/s:Macaulay2:${P}:" \
206 -i include/config.Makefile.in \
207 || die "failed to fix makefile"
208
209 CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
210 append-ldflags "-L${WORKDIR}/$(get_libdir)"
211 emake -j1 && CPPFLAGS="-I/usr/include/gc -I${WORKDIR}/include" \
212 ./configure --prefix="${D}/usr" --disable-encap \
213 --with-lapacklibs="$(pkg-config lapack --libs)" \
214 || die "failed to configure Macaulay"
215
216 emake -j1 || die "failed to build Macaulay"
217 }
218
219 # checks are currently very broken
220 #src_test() {
221 # cd "${S}"
222 # make check || die "tests failed"
223 #}
224
225 src_install () {
226 make install || die "install failed"
227
228 # nothing useful in here, get rid of it
229 # NOTE: Macaulay installs into lib even on amd64 hence don't
230 # replace lib with $(get_libdir) below!
231 rm -fr "${D}"/usr/lib \
232 || die "failed to remove empty /usr/lib"
233
234 use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
235 }
236
237 pkg_postinst() {
238 if use emacs; then
239 elisp-site-regen
240 elog "If you want to set a hot key for Macaulay2 in Emacs add a line similar to"
241 elog "(global-set-key [ f12 ] 'M2)"
242 elog "in order to set it to F12 (or choose a different one."
243 fi
244 }
245 pkg_postrm() {
246 use emacs && elisp-site-regen
247 }
248
249
250
251 --
252 gentoo-commits@l.g.o mailing list