1 |
tomka 14/07/04 11:08:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: Macaulay2-1.7_pre.ebuild |
5 |
Log: |
6 |
bump to prerelease version as latest release fails |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 565C32BC) |
9 |
|
10 |
Revision Changes Path |
11 |
1.32 sci-mathematics/Macaulay2/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog?rev=1.32&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog?rev=1.32&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog?r1=1.31&r2=1.32 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v |
20 |
retrieving revision 1.31 |
21 |
retrieving revision 1.32 |
22 |
diff -u -r1.31 -r1.32 |
23 |
--- ChangeLog 3 May 2014 15:44:12 -0000 1.31 |
24 |
+++ ChangeLog 4 Jul 2014 11:08:51 -0000 1.32 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sci-mathematics/Macaulay2 |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.31 2014/05/03 15:44:12 tomka Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/ChangeLog,v 1.32 2014/07/04 11:08:51 tomka Exp $ |
30 |
+ |
31 |
+*Macaulay2-1.7_pre (04 Jul 2014) |
32 |
+ |
33 |
+ 04 Jul 2014; Thomas Kahle <tomka@g.o> +Macaulay2-1.7_pre.ebuild: |
34 |
+ bump to prerelease version as latest release fails |
35 |
|
36 |
03 May 2014; Thomas Kahle <tomka@g.o> Macaulay2-1.6.ebuild: |
37 |
Use python-2 for gtest (bug 509462) |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: Macaulay2-1.7_pre.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild,v 1.1 2014/07/04 11:08:51 tomka Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
|
54 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
55 |
|
56 |
inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs |
57 |
|
58 |
FACTORY="factory-4.0.0+m4" |
59 |
FACTORY_GFTABLES="factory.4.0.1-gftables" |
60 |
|
61 |
DESCRIPTION="Research tool for commutative algebra and algebraic geometry" |
62 |
HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/" |
63 |
BASE_URI="http://www.math.uiuc.edu/Macaulay2/Downloads/OtherSourceCode/trunk" |
64 |
SRC_URI=" |
65 |
http://dev.gentoo.org/~tomka/files/${P}.tar.bz2 |
66 |
${BASE_URI}/${FACTORY}.tar.gz |
67 |
${BASE_URI}/${FACTORY_GFTABLES}.tar.gz |
68 |
${BASE_URI}/gtest-1.7.0.tar.gz" |
69 |
|
70 |
SLOT="0" |
71 |
LICENSE="GPL-2" |
72 |
KEYWORDS=" ~amd64 ~x86" |
73 |
IUSE="debug emacs +optimization" |
74 |
|
75 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
76 |
|
77 |
DEPEND="${PYTHON_DEPS} |
78 |
sys-process/time |
79 |
virtual/pkgconfig" |
80 |
|
81 |
RDEPEND="${PYTHON_DEPS} |
82 |
sys-libs/gdbm |
83 |
dev-libs/ntl |
84 |
sci-mathematics/pari[gmp] |
85 |
>=sys-libs/readline-6.1 |
86 |
dev-libs/libxml2:2 |
87 |
sci-mathematics/flint[gc] |
88 |
sci-mathematics/frobby |
89 |
sci-mathematics/4ti2 |
90 |
sci-mathematics/nauty |
91 |
>=sci-mathematics/normaliz-2.8 |
92 |
sci-mathematics/gfan |
93 |
sci-libs/mpir[cxx] |
94 |
dev-libs/mpfr |
95 |
sci-libs/cdd+ |
96 |
sci-libs/cddlib |
97 |
sci-libs/lrslib[gmp] |
98 |
virtual/blas |
99 |
virtual/lapack |
100 |
dev-util/ctags |
101 |
sys-libs/ncurses |
102 |
>=dev-libs/boehm-gc-7.4[threads] |
103 |
dev-libs/libatomic_ops |
104 |
emacs? ( virtual/emacs )" |
105 |
|
106 |
SITEFILE=70Macaulay2-gentoo.el |
107 |
|
108 |
S="${WORKDIR}/M2/" |
109 |
|
110 |
pkg_setup () { |
111 |
tc-export CC CPP CXX PKG_CONFIG |
112 |
append-cppflags "-I/usr/include/frobby" |
113 |
# gtest needs python:2 |
114 |
python-single-r1_pkg_setup |
115 |
} |
116 |
|
117 |
src_prepare() { |
118 |
# Patching .m2 files to look for external programs in |
119 |
# /usr/bin |
120 |
epatch "${FILESDIR}"/1.6-paths-of-external-programs.patch |
121 |
|
122 |
# Shortcircuit lapack tests |
123 |
epatch "${FILESDIR}"/1.6-lapack.patch |
124 |
|
125 |
# Factory is a statically linked library which (in this flavor) are not used by any |
126 |
# other program. We build it internally and don't install it. |
127 |
cp "${DISTDIR}/${FACTORY}.tar.gz" "${S}/BUILD/tarfiles/" \ |
128 |
|| die "copy failed" |
129 |
cp "${DISTDIR}/${FACTORY_GFTABLES}.tar.gz" "${S}/BUILD/tarfiles/" \ |
130 |
|| die "copy failed" |
131 |
# Macaulay2 developers want that gtest is built internally because |
132 |
# the documentation says it may fail if build with options not the |
133 |
# same as the tested program. |
134 |
cp "${DISTDIR}/gtest-1.7.0.tar.gz" "${S}/BUILD/tarfiles/" \ |
135 |
|| die "copy failed" |
136 |
|
137 |
eautoreconf |
138 |
} |
139 |
|
140 |
src_configure (){ |
141 |
# Recommended in bug #268064 Possibly unecessary |
142 |
# but should not hurt anybody. |
143 |
if ! use emacs; then |
144 |
tags="ctags" |
145 |
fi |
146 |
|
147 |
# configure instead of econf to enable install with --prefix |
148 |
./configure LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" \ |
149 |
--prefix="${D}/usr" \ |
150 |
--disable-encap \ |
151 |
--disable-strip \ |
152 |
--with-issue=Gentoo \ |
153 |
$(use_enable optimization optimize) \ |
154 |
$(use_enable debug) \ |
155 |
--enable-build-libraries="factory" \ |
156 |
--with-unbuilt-programs="4ti2 gfan normaliz nauty cddplus lrslib" \ |
157 |
|| die "failed to configure Macaulay" |
158 |
} |
159 |
|
160 |
src_compile() { |
161 |
# Parallel build not supported yet |
162 |
emake IgnoreExampleErrors=true -j1 |
163 |
|
164 |
if use emacs; then |
165 |
cd "${S}/Macaulay2/emacs" || die |
166 |
elisp-compile *.el |
167 |
fi |
168 |
} |
169 |
|
170 |
src_test() { |
171 |
# No parallel tests yet & Need to increase the time |
172 |
# limit for long running tests in Schubert2 to pass |
173 |
emake TLIMIT=550 -j1 check |
174 |
} |
175 |
|
176 |
src_install () { |
177 |
# Parallel install not supported yet |
178 |
emake IgnoreExampleErrors=true -j1 install |
179 |
|
180 |
# Remove emacs files and install them in the |
181 |
# correct place if use emacs |
182 |
rm -rf "${ED}"/usr/share/emacs/site-lisp || die |
183 |
if use emacs; then |
184 |
cd "${S}/Macaulay2/emacs" || die |
185 |
elisp-install ${PN} *.elc *.el |
186 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
187 |
fi |
188 |
} |
189 |
|
190 |
pkg_postinst() { |
191 |
if use emacs; then |
192 |
elisp-site-regen |
193 |
elog "If you want to set a hot key for Macaulay2 in Emacs add a line similar to" |
194 |
elog "(global-set-key [ f12 ] 'M2)" |
195 |
elog "in order to set it to F12 (or choose a different one)." |
196 |
fi |
197 |
} |
198 |
|
199 |
pkg_postrm() { |
200 |
use emacs && elisp-site-regen |
201 |
} |