summaryrefslogtreecommitdiff
path: root/sci-mathematics/unuran
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-03 08:59:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-03 08:59:05 +0000
commite6ba529df30e3fc9dfdf55ec5797f2f764df6e54 (patch)
tree6b38c918c796f792ef4b18b57437c05a1fd46ae8 /sci-mathematics/unuran
parentfbe7acf59ebf6dc3f04a6ef108ff3887fa5d7972 (diff)
gentoo auto-resync : 03:12:2022 - 08:59:05
Diffstat (limited to 'sci-mathematics/unuran')
-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
4 files changed, 93 insertions, 4 deletions
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
+}