1 |
commit: 6bd6d0c17fe402c2a3a3e2c38b31fc5a975e50df |
2 |
Author: Harri Nieminen <moikkis <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Dec 1 15:48:13 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 2 13:02:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bd6d0c1 |
7 |
|
8 |
sci-mathematics/Macaulay2: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild | 153 --------------------- |
13 |
sci-mathematics/Macaulay2/Manifest | 4 - |
14 |
sci-mathematics/Macaulay2/files/1.6-lapack.patch | 50 ------- |
15 |
3 files changed, 207 deletions(-) |
16 |
|
17 |
diff --git a/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild b/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild |
18 |
deleted file mode 100644 |
19 |
index 4b4e620d27d..00000000000 |
20 |
--- a/sci-mathematics/Macaulay2/Macaulay2-1.7_pre.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,153 +0,0 @@ |
23 |
-# Copyright 1999-2015 Gentoo Foundation |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=5 |
27 |
- |
28 |
-PYTHON_COMPAT=( python2_7 ) |
29 |
- |
30 |
-inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs |
31 |
- |
32 |
-FACTORY="factory-4.0.0+m4" |
33 |
-FACTORY_GFTABLES="factory.4.0.1-gftables" |
34 |
- |
35 |
-DESCRIPTION="Research tool for commutative algebra and algebraic geometry" |
36 |
-HOMEPAGE="http://www.math.uiuc.edu/Macaulay2/" |
37 |
-BASE_URI="http://www.math.uiuc.edu/Macaulay2/Downloads/OtherSourceCode/trunk" |
38 |
-SRC_URI=" |
39 |
- https://dev.gentoo.org/~tomka/files/${P}.tar.bz2 |
40 |
- ${BASE_URI}/${FACTORY}.tar.gz |
41 |
- ${BASE_URI}/${FACTORY_GFTABLES}.tar.gz |
42 |
- ${BASE_URI}/gtest-1.7.0.tar.gz" |
43 |
- |
44 |
-SLOT="0" |
45 |
-LICENSE="GPL-2" |
46 |
-KEYWORDS="amd64 x86" |
47 |
-IUSE="debug emacs +optimization" |
48 |
- |
49 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
50 |
- |
51 |
-DEPEND="${PYTHON_DEPS} |
52 |
- sys-process/time |
53 |
- virtual/pkgconfig" |
54 |
- |
55 |
-RDEPEND="${PYTHON_DEPS} |
56 |
- sys-libs/gdbm |
57 |
- <dev-libs/ntl-7 |
58 |
- sci-mathematics/pari[gmp] |
59 |
- >=sys-libs/readline-6.1 |
60 |
- dev-libs/libxml2:2 |
61 |
- sci-mathematics/flint[gc] |
62 |
- sci-mathematics/frobby |
63 |
- sci-mathematics/4ti2 |
64 |
- sci-mathematics/nauty |
65 |
- >=sci-mathematics/normaliz-2.8 |
66 |
- sci-mathematics/gfan |
67 |
- sci-libs/mpir[cxx] |
68 |
- dev-libs/mpfr |
69 |
- sci-libs/cdd+ |
70 |
- sci-libs/cddlib |
71 |
- sci-libs/lrslib[gmp] |
72 |
- virtual/blas |
73 |
- virtual/lapack |
74 |
- dev-util/ctags |
75 |
- sys-libs/ncurses |
76 |
- >=dev-libs/boehm-gc-7.4[threads] |
77 |
- dev-libs/libatomic_ops |
78 |
- emacs? ( virtual/emacs )" |
79 |
- |
80 |
-SITEFILE=70Macaulay2-gentoo.el |
81 |
- |
82 |
-S="${WORKDIR}/M2/" |
83 |
- |
84 |
-pkg_setup () { |
85 |
- tc-export CC CPP CXX PKG_CONFIG |
86 |
- append-cppflags "-I/usr/include/frobby" |
87 |
- # gtest needs python:2 |
88 |
- python-single-r1_pkg_setup |
89 |
-} |
90 |
- |
91 |
-src_prepare() { |
92 |
- # Patching .m2 files to look for external programs in |
93 |
- # /usr/bin |
94 |
- epatch "${FILESDIR}"/1.6-paths-of-external-programs.patch |
95 |
- |
96 |
- # Shortcircuit lapack tests |
97 |
- epatch "${FILESDIR}"/1.6-lapack.patch |
98 |
- |
99 |
- # Factory is a statically linked library which (in this flavor) are not used by any |
100 |
- # other program. We build it internally and don't install it. |
101 |
- cp "${DISTDIR}/${FACTORY}.tar.gz" "${S}/BUILD/tarfiles/" \ |
102 |
- || die "copy failed" |
103 |
- cp "${DISTDIR}/${FACTORY_GFTABLES}.tar.gz" "${S}/BUILD/tarfiles/" \ |
104 |
- || die "copy failed" |
105 |
- # Macaulay2 developers want that gtest is built internally because |
106 |
- # the documentation says it may fail if build with options not the |
107 |
- # same as the tested program. |
108 |
- cp "${DISTDIR}/gtest-1.7.0.tar.gz" "${S}/BUILD/tarfiles/" \ |
109 |
- || die "copy failed" |
110 |
- |
111 |
- eautoreconf |
112 |
-} |
113 |
- |
114 |
-src_configure (){ |
115 |
- # Recommended in bug #268064 Possibly unecessary |
116 |
- # but should not hurt anybody. |
117 |
- if ! use emacs; then |
118 |
- tags="ctags" |
119 |
- fi |
120 |
- |
121 |
- # configure instead of econf to enable install with --prefix |
122 |
- ./configure LIBS="$($(tc-getPKG_CONFIG) --libs lapack)" \ |
123 |
- --prefix="${D}/usr" \ |
124 |
- --disable-encap \ |
125 |
- --disable-strip \ |
126 |
- --with-issue=Gentoo \ |
127 |
- $(use_enable optimization optimize) \ |
128 |
- $(use_enable debug) \ |
129 |
- --enable-build-libraries="factory" \ |
130 |
- --with-unbuilt-programs="4ti2 gfan normaliz nauty cddplus lrslib" \ |
131 |
- || die "failed to configure Macaulay" |
132 |
-} |
133 |
- |
134 |
-src_compile() { |
135 |
- # Parallel build not supported yet |
136 |
- emake IgnoreExampleErrors=true -j1 |
137 |
- |
138 |
- if use emacs; then |
139 |
- cd "${S}/Macaulay2/emacs" || die |
140 |
- elisp-compile *.el |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-src_test() { |
145 |
- # No parallel tests yet & Need to increase the time |
146 |
- # limit for long running tests in Schubert2 to pass |
147 |
- emake TLIMIT=550 -j1 check |
148 |
-} |
149 |
- |
150 |
-src_install () { |
151 |
- # Parallel install not supported yet |
152 |
- emake IgnoreExampleErrors=true -j1 install |
153 |
- |
154 |
- # Remove emacs files and install them in the |
155 |
- # correct place if use emacs |
156 |
- rm -rf "${ED}"/usr/share/emacs/site-lisp || die |
157 |
- if use emacs; then |
158 |
- cd "${S}/Macaulay2/emacs" || die |
159 |
- elisp-install ${PN} *.elc *.el |
160 |
- elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
161 |
- fi |
162 |
-} |
163 |
- |
164 |
-pkg_postinst() { |
165 |
- if use emacs; then |
166 |
- elisp-site-regen |
167 |
- elog "If you want to set a hot key for Macaulay2 in Emacs add a line similar to" |
168 |
- elog "(global-set-key [ f12 ] 'M2)" |
169 |
- elog "in order to set it to F12 (or choose a different one)." |
170 |
- fi |
171 |
-} |
172 |
- |
173 |
-pkg_postrm() { |
174 |
- use emacs && elisp-site-regen |
175 |
-} |
176 |
|
177 |
diff --git a/sci-mathematics/Macaulay2/Manifest b/sci-mathematics/Macaulay2/Manifest |
178 |
index 0ee77b1659d..30f7cc5f923 100644 |
179 |
--- a/sci-mathematics/Macaulay2/Manifest |
180 |
+++ b/sci-mathematics/Macaulay2/Manifest |
181 |
@@ -1,5 +1 @@ |
182 |
-DIST Macaulay2-1.7_pre.tar.bz2 4639477 SHA256 b14918187724f8911bc50edf87c9692209ff0c2191feb257084adc87609eb1cd SHA512 e70376d1e54b6e239ebb3bf676507a2115fdf5c4fbe05f320553029a84114b74d78f54e4d1bdc7643131f3c45c301e83c21ff99e4d4b675372e971368398d6f5 WHIRLPOOL 396311aadb8a7845deaee5aeca49c431430abc46201e935ef72c4579c9cbe6cd4da85f3e09ff0fe647031f8050fb7c62f63ecce251bf34648c1848cd00eef68e |
183 |
DIST Macaulay2-1.8.2.1-fat.tar.bz2 26102483 SHA256 11e13fbb4aeeddae1547ed01e499e3f8961446cb9bec8b3162b29cadd2f280c1 SHA512 64f7ea9b01cdb308023a55d8ab8bd6733540f25161dacf27052c071e143418c68c639d5115cf32540c11594b70eae14473f4ef6ce5bd12b6df0722da7c13dd2c WHIRLPOOL 3f9c838d6624f95076957743bf402236708cb2af15b84d24c4446fb193f7608698cc63e43eb8eff8bf878963ce2a9fd85f37128f73d1dbd43d4c0bcda980753d |
184 |
-DIST factory-4.0.0+m4.tar.gz 4711126 SHA256 9b2498cc7fc6765f1c586e8061ebe236cdce4b32a44721a235ad2644ec3124fb SHA512 1dacb9aae52e655bccbbc960397b02351050791594dd9c39771f0da7f8c6e8130a8827c2a675c3fbaaa214606e123ac9776e1c73d143649353cefc50cadeea3e WHIRLPOOL 47c4d6261fc6cc9c172035d8774f0cde9fa669fa164fc4a0f47e84ba789d69d14f5a16d042451564412fdedddec71335714ad751508495c22cea25b69f10b925 |
185 |
-DIST factory.4.0.1-gftables.tar.gz 2974152 SHA256 9cd158ceb1c2b1c47bdca2c0b004bba92cb0e0aaa0ea6a43ca784ebdce10eebd SHA512 060c58fe6e4565dd5e7649bfa070f14dec3c383a55ebab52a9f02b58a6405e2183e0c7e08964cddb87b81e872c0d8a52d7bd4575d07269547be544cf6a725a76 WHIRLPOOL a721a6824681118578c7289cea77a3f47e5c7654f30dc454eaac76b19cc89e416ae54b8d21a69f897d7087d4b67990634fc960f81df2ea53f428868d608dc9c2 |
186 |
-DIST gtest-1.7.0.tar.gz 1001582 SHA256 c0f860eee47c86e0aeb462fd0bdfd70e3975297e0b8b178e0e03a95e1f6c9bc4 SHA512 a9f5c047b39efb2d11b55ee9913662ca402ac6837b3ad2d278ecfbd1caf32ed4546f169e3e92503d57bf3b62ccf89cd062da1c7ea3638aae98e868d2766363c3 WHIRLPOOL 36edbdf8be7c3793a89918a3c43d74e75a6281a37c394f7d2f20506130a76aab04a3beddba01bf7f0e9b6901c7e834ca014c31c913c0ea846d3f6be9c93599d2 |
187 |
|
188 |
diff --git a/sci-mathematics/Macaulay2/files/1.6-lapack.patch b/sci-mathematics/Macaulay2/files/1.6-lapack.patch |
189 |
deleted file mode 100644 |
190 |
index e9a434eeb28..00000000000 |
191 |
--- a/sci-mathematics/Macaulay2/files/1.6-lapack.patch |
192 |
+++ /dev/null |
193 |
@@ -1,50 +0,0 @@ |
194 |
---- configure.ac 2012-10-24 09:29:55.240498786 -0700 |
195 |
-+++ configure.ac.2 2012-10-30 15:07:27.172846300 -0700 |
196 |
-@@ -1285,46 +1285,7 @@ |
197 |
- done |
198 |
- test $BUILD_factory = yes && BUILTLIBS="$SINGULARLIBS $BUILTLIBS" |
199 |
- |
200 |
--# we need to do the fortran library testing last, in case AC_SEARCH_LIBS adds |
201 |
--# one of them to $LIBS, making it impossible to check for the presence of C or |
202 |
--# C++ libraries. (I'm not sure why putting -llapack on the gcc command line |
203 |
--# needlessly causes the library to be linked against.) |
204 |
--FORTRANUSED=no |
205 |
--if test "$LAPACK" = yes |
206 |
--then AC_MSG_CHECKING([whether the vecLib framework is available]) |
207 |
-- SAVELIBS=$LIBS LIBS="-framework vecLib $LIBS" |
208 |
-- AC_LANG(C) |
209 |
-- AC_LINK_IFELSE( |
210 |
-- [AC_LANG_PROGRAM(,[sgemv_();dgetrf_();])], |
211 |
-- [ |
212 |
-- AC_MSG_RESULT(yes) |
213 |
-- ], |
214 |
-- [ |
215 |
-- AC_MSG_RESULT(no) |
216 |
-- LIBS=$SAVELIBS |
217 |
-- FORTRANUSED=yes |
218 |
-- if test $BUILD_lapack = no |
219 |
-- then AC_LANG(Fortran) |
220 |
-- if test "$FC" = "" |
221 |
-- then AC_MSG_ERROR(no fortran compiler found) |
222 |
-- else AC_MSG_NOTICE(using fortran compiler $FC) |
223 |
-- fi |
224 |
-- AC_SEARCH_LIBS(sgemv,blas f77blas,,BUILD_lapack=yes) |
225 |
-- AC_SEARCH_LIBS(dgetrf,lapack,,BUILD_lapack=yes) |
226 |
-- fi |
227 |
-- ]) |
228 |
--fi |
229 |
--test $BUILD_lapack = yes && BUILTLIBS="-llapack -lblas $BUILTLIBS" |
230 |
-- |
231 |
--if test $BUILD_lapack = yes |
232 |
--then # test whether the fortran compiler can handle lapack, which, starting with |
233 |
-- # version 3.2, requires fortran 90, not fortran 77 |
234 |
-- AC_LANG(Fortran) |
235 |
-- AC_MSG_CHECKING([whether the fortran compiler is modern enough for lapack]) |
236 |
-- AC_COMPILE_IFELSE([instrinsic maxloc], |
237 |
-- AC_MSG_ERROR(the fortran compiler ($FC) does not support the Fortran 90 language required for compiling lapack), |
238 |
-- AC_MSG_RESULT(yes)) |
239 |
--fi |
240 |
-+BUILTLIBS="$(${PKG_CONFIG} --libs lapack) $BUILTLIBS" |
241 |
- |
242 |
- if test $BUILD_memtailor = yes |
243 |
- then BUILTLIBS="-lmemtailor $BUILTLIBS" |