summaryrefslogtreecommitdiff
path: root/sci-mathematics
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/Manifest.gzbin16209 -> 16209 bytes
-rw-r--r--sci-mathematics/rngstreams/Manifest2
-rw-r--r--sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild9
-rw-r--r--sci-mathematics/unuran/Manifest5
-rw-r--r--sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch27
-rw-r--r--sci-mathematics/unuran/unuran-1.8.1.ebuild6
-rw-r--r--sci-mathematics/unuran/unuran-1.9.0.ebuild59
7 files changed, 99 insertions, 9 deletions
diff --git a/sci-mathematics/Manifest.gz b/sci-mathematics/Manifest.gz
index a3df9bc0dffa..3ea315b238fe 100644
--- a/sci-mathematics/Manifest.gz
+++ b/sci-mathematics/Manifest.gz
Binary files differ
diff --git a/sci-mathematics/rngstreams/Manifest b/sci-mathematics/rngstreams/Manifest
index ecc2843a6c69..9cc497fd6937 100644
--- a/sci-mathematics/rngstreams/Manifest
+++ b/sci-mathematics/rngstreams/Manifest
@@ -1,3 +1,3 @@
DIST rngstreams-1.0.1.tar.gz 502458 BLAKE2B 119f4bc9ceb34487176c2ad02b6be16b50c6300c0512b05fb2376d02ddd59f17d62fa9e3e190093534614a90daace84701c628962284228be787950a534ec24e SHA512 665c27e72a4e1bdc59864f340208d42fc899c1c9429aafe1c7c3f8778dee0bb87ec9da26976a925197e07931bc1c2864dde0cb3fc08996155f775b7e44f9d7f4
-EBUILD rngstreams-1.0.1.ebuild 794 BLAKE2B 0c2c031df94a8216536196d5a1f1b7b176859782818cbf3633faa3f7cfd5d8ab04a5f68283f3c7267f0bab046f667652eb03c2611c19d7451716fec1f850bae8 SHA512 b99c3a9b98c80f949d848debfdfd42c0f892bcc9a0997b18b0901ef7cffee929f0996c5b0c96fee71688678283b9b7493536766ffce90e67a4fd82e1aff0d3a6
+EBUILD rngstreams-1.0.1.ebuild 853 BLAKE2B 80eaf7d1091b8b645c3f7a80f1acaa2108af3cb1a400a71213648abfbca6875b90e84211de6fd3c0db557d08d7151d78417b4736d6ec58721d12c852f1113646 SHA512 7bd04222b8fb454964c5ee42b09fe76e44646a8d4514f6f811c10f5541c3c2a95a062e5af523511219aface3869458734e7b9252d461403ae3e27aaed6c6ad25
MISC metadata.xml 602 BLAKE2B a98c1ed3c7db964d68e38f4b60ea48389acd6ec394da3534e8955cd742172a709439253f9f6a8cb7e71f195311a9cc75ae38e1a49f97eed3d75769f671068f71 SHA512 d07899c328ef84ac484a4583c0bcc60350554a2cd0a8e5dce5fc3e154b389c243e904f525a6a48fc52e49046b98987e1a22560ddf97f929b845e55dbaaa6805c
diff --git a/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild b/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild
index cf74c8bf763f..6d38a1954b32 100644
--- a/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild
+++ b/sci-mathematics/rngstreams/rngstreams-1.0.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -6,8 +6,8 @@ EAPI=7
inherit out-of-source
DESCRIPTION="Multiple independent streams of pseudo-random numbers"
-HOMEPAGE="http://statmath.wu.ac.at/software/RngStreams/"
-SRC_URI="http://statmath.wu.ac.at/software/RngStreams/${P}.tar.gz"
+HOMEPAGE="https://statmath.wu.ac.at/software/RngStreams/"
+SRC_URI="https://statmath.wu.ac.at/software/RngStreams/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
@@ -15,7 +15,8 @@ KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="doc examples"
my_src_configure() {
- econf --enable-shared --disable-static
+ # bash for bug #818532
+ CONFIG_SHELL="${BROOT}"/bin/bash econf --enable-shared --disable-static
}
my_src_install_all() {
diff --git a/sci-mathematics/unuran/Manifest b/sci-mathematics/unuran/Manifest
index 8813d64553ff..30895e08fd17 100644
--- a/sci-mathematics/unuran/Manifest
+++ b/sci-mathematics/unuran/Manifest
@@ -1,3 +1,6 @@
+AUX unuran-1.9.0-configure-clang16.patch 835 BLAKE2B b52c40054360babbc0f72ba6e4f0836471ae253c906915cb428a4400ba9b5d4214f863dd630e83825cbc8857d37b04b17e2701e3b8112db622ef32c49cf77ad0 SHA512 df0f1e5c674ebd50dc1ccb5b76be330a71c559feb73e69f1277a3dde17ef77c31e9eac6c4b15fe50f10edb6403f8d9191bde2fa4613e87fb5e9c4fd4101fb83e
DIST unuran-1.8.1.tar.gz 4409911 BLAKE2B 2b036032deaeae70aa6ef58124fc88e9c167ae7952d04cba4b50181fff4249eff88c20bbb667c5702899bc863745b6991ae842da86f6bc592b6635dc310ec544 SHA512 4d98861914afe39065ec31ee837c0e21e0fb4f4667f559dee38a7a5c4e06f0d09bd550b20d06321d1f5fcd4799d482a9eebc66ac35f8cd7fff834f536d24854c
-EBUILD unuran-1.8.1.ebuild 1075 BLAKE2B 9b46dd7830ed35f33742528feeae0bde844ab5e62b3f55de474b16d6531af5460e96b547ed433dbe5b5a08f221ae7626d8076a8deab6f2af68f460104576cfda SHA512 646133d49d54ad0922a8f60389f93a08a5e526a05f3b32914ce6b4ea76d9a8cc367b228f2ff8e4575d23bb5a3321cde5f32a8d90e7159a0337aa6ff133505385
+DIST unuran-1.9.0.tar.gz 3803126 BLAKE2B 20a88e9004d284983770364f35941f8ea66e1c68ef8c0ea210e1b12d9027947fbf723032f22f88b87c8f649ab52c904b460673cee8d78a52ff5196a6f4212d9c SHA512 8fe389f2fc569265e7bac2a5de3d12e4a6238076bff2a7e19842a57da314dfdca19ff5c398e24732883a19de794a65bab7d0663b4551c664562a3c93f2d87170
+EBUILD unuran-1.8.1.ebuild 1077 BLAKE2B c6c6125e68735d92cb83640cdac1944de65ecfcd9d1d4d5bfc36184b17cc4c60898a6bac7bc8c7073c6deb970fed41468623c64f3b1354ca09f82a479b6aa6c7 SHA512 bbf41de5e3b22fc9decc023a386862d5ad07a4ed5d2660de1f57e8d3f46a8e940cc21248f7b97cb8a61e10d8f2d9ac9f9f319f8e3e34557982368bdddb7bc32e
+EBUILD unuran-1.9.0.ebuild 1241 BLAKE2B c943cac8fa66d08a3a8f22c3ac10b317b86614a3cbf7ea837b119f2dc3d38fa223d53c51085172ee27cc4bc4eae78b6e955c04a5b677c55ad09da6fde5da4f09 SHA512 abd1d4889a695670408aede080e948941ef1ff4196bba49c7383e15a02a611d4f632841cba0addebc03b6902b1d09225102db1323b314fe5b0a585291fcad57d
MISC metadata.xml 765 BLAKE2B 5bbfff9ee5301a498947abee56c8f2de1dd4e365507e448318c2a0f19279f939a861e6ed3c5421792c4041c6cda79d37b00b345d3014223ce64d9026021de717 SHA512 afc845034ac9d87a5397de9aee88b2d089ebdf7e47f57d803b70893aa4a09127057b349f21f3276e7aaf67136412de667cc0efc3aa1036dca414f18ea0c4efdd
diff --git a/sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch b/sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch
new file mode 100644
index 000000000000..66a9d44538bb
--- /dev/null
+++ b/sci-mathematics/unuran/files/unuran-1.9.0-configure-clang16.patch
@@ -0,0 +1,27 @@
+https://src.fedoraproject.org/rpms/unuran/blob/4e6e6392ad892454339458b655fd0324e58de3b7/f/unuran-configure-c99.patch
+https://bugzilla.redhat.com/show_bug.cgi?id=2150308
+
+Avoid calling the undeclared exit function. Instead return
+from main. Implicit function declarations were removed from C99,
+and future compilers are likely to reject them.
+
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -14,7 +14,7 @@ int main (void)
+ nan = inf / inf;
+ /* nan = 0.0 / 0.0; */
+ status = (nan == nan);
+- exit (status);
++ return status;
+ }]])],
+ [ac_cv_c_ieee_comparisons="yes"],
+ [ac_cv_c_ieee_comparisons="no"],
+@@ -43,7 +43,7 @@ int main (void)
+ double x = 0.0;
+ double inf = 1.0 / x;
+ int status = (inf < DBL_MAX/2.);
+- exit (status);
++ return status;
+ }]])],
+ [ac_cv_c_divide_by_zero="yes"],
+ [ac_cv_c_divide_by_zero="no"],
diff --git a/sci-mathematics/unuran/unuran-1.8.1.ebuild b/sci-mathematics/unuran/unuran-1.8.1.ebuild
index 27d0f064189a..7dfbd8eacfeb 100644
--- a/sci-mathematics/unuran/unuran-1.8.1.ebuild
+++ b/sci-mathematics/unuran/unuran-1.8.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -6,8 +6,8 @@ EAPI=7
inherit out-of-source
DESCRIPTION="Universal Non-Uniform Random number generator"
-HOMEPAGE="http://statmath.wu.ac.at/unuran/"
-SRC_URI="http://statmath.wu.ac.at/unuran/${P}.tar.gz"
+HOMEPAGE="https://statmath.wu.ac.at/unuran/"
+SRC_URI="https://statmath.wu.ac.at/unuran/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
diff --git a/sci-mathematics/unuran/unuran-1.9.0.ebuild b/sci-mathematics/unuran/unuran-1.9.0.ebuild
new file mode 100644
index 000000000000..971d2638952a
--- /dev/null
+++ b/sci-mathematics/unuran/unuran-1.9.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools out-of-source
+
+DESCRIPTION="Universal Non-Uniform Random number generator"
+HOMEPAGE="https://statmath.wu.ac.at/unuran/"
+SRC_URI="https://statmath.wu.ac.at/unuran/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples gsl prng +rngstreams"
+
+DEPEND="
+ gsl? ( sci-libs/gsl:= )
+ prng? ( sci-mathematics/prng )
+ rngstreams? ( sci-mathematics/rngstreams:= )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9.0-configure-clang16.patch
+)
+
+src_prepare() {
+ default
+
+ # Clang 16
+ eautoreconf
+}
+
+my_src_configure() {
+ local udefault=builtin
+ use rngstreams && udefault=rngstream
+
+ CONFIG_SHELL="${BROOT}"/bin/bash econf \
+ --enable-shared \
+ --disable-static \
+ --with-urng-default="${udefault}" \
+ $(use_with gsl urng-gsl) \
+ $(use_with prng urng-prng) \
+ $(use_with rngstreams urng-rngstream)
+}
+
+my_src_install_all() {
+ use doc && dodoc doc/${PN}.pdf
+ einstalldocs
+
+ if use examples; then
+ rm examples/Makefile* || die
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # no static archives
+ find "${D}" -name '*.la' -delete || die
+}