1 |
commit: 2a0bfd380091dc7f2e1f1d1b91f59918873c91b1 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 19:10:55 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 19:11:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a0bfd38 |
7 |
|
8 |
sci-mathematics/singular: new upstream version 4.2.1. |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/singular/Manifest | 1 + |
14 |
sci-mathematics/singular/singular-4.2.1.ebuild | 117 +++++++++++++++++++++++++ |
15 |
2 files changed, 118 insertions(+) |
16 |
|
17 |
diff --git a/sci-mathematics/singular/Manifest b/sci-mathematics/singular/Manifest |
18 |
index 13b96e74c09..1a947fd6580 100644 |
19 |
--- a/sci-mathematics/singular/Manifest |
20 |
+++ b/sci-mathematics/singular/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST singular-4.2.0p1.tar.gz 14155171 BLAKE2B 444553f87d7ca8d6a62e4519c9857a6892757e92285df7c3b686913a9b51c9ae8d802c41382b0b2b6e37dc2dc496d4a10f262c98407470219cdce131e8baf127 SHA512 2ecd8940c9e8d70a93dbdb4df6da313c00151e5cb959f8eed5856e8df99089b5a03e514fbcdc70903c77df8b59fa7ef9f3b134f1de510b795fa6ea0341089bd8 |
23 |
DIST singular-4.2.0p3.tar.gz 16641923 BLAKE2B 4dd7e1a42c71bbba625e171aee656580b443656f50458909ffae1af81b1413d5330aa032656032ea365225eb088491fe2a48997895e37bc89eea5f17b8fbebb8 SHA512 b9833389b648ec4ba2bd09253f00254b9ae3dc61313fc81c9003b283fc413caab4274e55750de1c342ef24a8fc0ce817643cd31eabbb2999de7f5017dfa1411f |
24 |
+DIST singular-4.2.1.tar.gz 16643430 BLAKE2B 2cfc33bd59a5e8756c7ce022ad2b38477a0d7a6747b3c4fd4b1b168cfd179ace52121506cda2c4d5f318abca72231c74f649ede349b17b5f138083428d9da766 SHA512 48bebbe9c886ee56bb2f7bdd9e356bd33e357a2d707c976b8496200f422a2ba25d7c9bba22a261574428abf73a8b6b111d35236fca647e32619659059e861916 |
25 |
|
26 |
diff --git a/sci-mathematics/singular/singular-4.2.1.ebuild b/sci-mathematics/singular/singular-4.2.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..0f3497acf49 |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/singular/singular-4.2.1.ebuild |
31 |
@@ -0,0 +1,117 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit autotools elisp-common flag-o-matic |
38 |
+ |
39 |
+MY_PN=Singular |
40 |
+MY_PV=$(ver_rs 3 '') |
41 |
+# Consistency is different... |
42 |
+MY_DIR2=$(ver_cut 1-3 ${PV}) |
43 |
+MY_DIR=$(ver_rs 1- '-' ${MY_DIR2}) |
44 |
+ |
45 |
+DESCRIPTION="Computer algebra system for polynomial computations" |
46 |
+HOMEPAGE="https://www.singular.uni-kl.de/ https://github.com/Singular/Sources" |
47 |
+SRC_URI="ftp://jim.mathematik.uni-kl.de/pub/Math/${MY_PN}/SOURCES/${MY_DIR}/${PN}-${MY_PV}.tar.gz" |
48 |
+ |
49 |
+LICENSE="BSD GPL-2 GPL-3" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux" |
52 |
+IUSE="emacs examples +readline static-libs" |
53 |
+ |
54 |
+RDEPEND="dev-libs/gmp:0 |
55 |
+ dev-libs/ntl:= |
56 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
57 |
+ sci-mathematics/flint |
58 |
+ sci-libs/cddlib |
59 |
+ dev-lang/perl |
60 |
+ readline? ( sys-libs/readline )" |
61 |
+ |
62 |
+DEPEND="${RDEPEND}" |
63 |
+ |
64 |
+SITEFILE=60${PN}-gentoo.el |
65 |
+ |
66 |
+S="${WORKDIR}/${PN}-${MY_DIR2}" |
67 |
+ |
68 |
+PATCHES=( |
69 |
+ "${FILESDIR}/${PN}-4.2.0-doc_install-v2.patch" |
70 |
+) |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ |
75 |
+ eautoreconf |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ # Needed to avoid segfaults in the test suite until |
80 |
+ # |
81 |
+ # https://github.com/Singular/Singular/issues/1105 |
82 |
+ # |
83 |
+ # makes its way into a release. |
84 |
+ append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks) |
85 |
+ |
86 |
+ econf \ |
87 |
+ --with-gmp \ |
88 |
+ --with-ntl \ |
89 |
+ --with-flint \ |
90 |
+ --enable-gfanlib \ |
91 |
+ --disable-debug \ |
92 |
+ --disable-doc \ |
93 |
+ --enable-factory \ |
94 |
+ --enable-libfac \ |
95 |
+ --disable-polymake \ |
96 |
+ --with-libparse \ |
97 |
+ --disable-optimizationflags \ |
98 |
+ --without-python \ |
99 |
+ --without-pythonmodule \ |
100 |
+ --disable-python \ |
101 |
+ --disable-python-module \ |
102 |
+ --disable-python_module \ |
103 |
+ --disable-pyobject-module \ |
104 |
+ $(use_enable static-libs static) \ |
105 |
+ $(use_enable emacs) \ |
106 |
+ $(use_with readline) |
107 |
+} |
108 |
+ |
109 |
+src_compile() { |
110 |
+ default |
111 |
+ |
112 |
+ if use emacs; then |
113 |
+ pushd "${S}"/emacs |
114 |
+ elisp-compile *.el || die "elisp-compile failed" |
115 |
+ popd |
116 |
+ fi |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ # Do not compress singular's info file (singular.hlp) |
121 |
+ # some consumer of that file do not know how to deal with compression |
122 |
+ docompress -x /usr/share/info |
123 |
+ |
124 |
+ default |
125 |
+ |
126 |
+ dosym Singular /usr/bin/"${PN}" |
127 |
+ |
128 |
+ # purge .la file |
129 |
+ find "${ED}" -name '*.la' -delete || die |
130 |
+} |
131 |
+ |
132 |
+src_test() { |
133 |
+ # SINGULAR_PROCS_DIR need to be set to "" otherwise plugins from |
134 |
+ # an already installed version of singular may be used and cause segfault |
135 |
+ # See https://github.com/Singular/Sources/issues/980 |
136 |
+ SINGULAR_PROCS_DIR="" emake check |
137 |
+} |
138 |
+ |
139 |
+pkg_postinst() { |
140 |
+ einfo "Additional functionality can be enabled by installing" |
141 |
+ einfo "sci-mathematics/4ti2" |
142 |
+ |
143 |
+ use emacs && elisp-site-regen |
144 |
+} |
145 |
+ |
146 |
+pkg_postrm() { |
147 |
+ use emacs && elisp-site-regen |
148 |
+} |