1 |
commit: ac15ac48507f43efe4d1be38e13ca1a4b35efaa6 |
2 |
Author: Jeffrey Lin <jeffrey <AT> icurse <DOT> nl> |
3 |
AuthorDate: Sat Mar 27 20:28:03 2021 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 8 02:05:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac15ac48 |
7 |
|
8 |
sci-mathematics/dsfmt: initial import |
9 |
|
10 |
Signed-off-by: Jeffrey Lin <jeffrey <AT> icurse.nl> |
11 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/dsfmt/Manifest | 1 + |
14 |
sci-mathematics/dsfmt/dsfmt-2.2.4.ebuild | 36 ++++++++++++++++++++++++++++++++ |
15 |
sci-mathematics/dsfmt/metadata.xml | 17 +++++++++++++++ |
16 |
3 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/sci-mathematics/dsfmt/Manifest b/sci-mathematics/dsfmt/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..a3eb8fdb327 |
21 |
--- /dev/null |
22 |
+++ b/sci-mathematics/dsfmt/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST dsfmt-2.2.4.tar.gz 4984255 BLAKE2B 6119445d93cb45faab28dfb52a18c07cd5703b243b3cddde35fff7a5e948fa8788dfe8428ae8e0a52604f91ac07fe7b3bb0f6c438ef93b5257b42baee9dfdec5 SHA512 fe84e986cbf198172340adfac0436b08f087643eca3f1ceccacde146cbfd8c41e3eb0dfbb062f7ca5f462db13c386abd7c269bc0cbefc9a0ecf97a8a8870a2e4 |
25 |
|
26 |
diff --git a/sci-mathematics/dsfmt/dsfmt-2.2.4.ebuild b/sci-mathematics/dsfmt/dsfmt-2.2.4.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5de399e78f8 |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/dsfmt/dsfmt-2.2.4.ebuild |
31 |
@@ -0,0 +1,36 @@ |
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 toolchain-funcs |
38 |
+ |
39 |
+MYPN=dSFMT |
40 |
+MYP=${MYPN}-${PV} |
41 |
+ |
42 |
+DESCRIPTION="Double precision SIMD-oriented Fast Mersenne Twister library" |
43 |
+HOMEPAGE="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT" |
44 |
+SRC_URI="https://github.com/MersenneTwister-Lab/dSFMT/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
49 |
+ |
50 |
+S="${WORKDIR}/${MYP}" |
51 |
+ |
52 |
+soname="lib${MYPN}.so" |
53 |
+ |
54 |
+src_compile() { |
55 |
+ emake CCFLAGS="${CFLAGS}" |
56 |
+ $(tc-getCC) -fPIC -shared -DDSFMT_SHLIB -DDSFMT_DO_NOT_USE_OLD_NAMES ${LDFLAGS} ${CFLAGS} -Wl,-soname=${soname} -o ${soname} ${MYPN}.c || die |
57 |
+} |
58 |
+ |
59 |
+src_test() { |
60 |
+ emake std-check |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ doheader dSFMT.c d*.h |
65 |
+ dodoc README*txt CHANGE* |
66 |
+ dolib.so ${soname} |
67 |
+} |
68 |
|
69 |
diff --git a/sci-mathematics/dsfmt/metadata.xml b/sci-mathematics/dsfmt/metadata.xml |
70 |
new file mode 100644 |
71 |
index 00000000000..736cfc4dcf5 |
72 |
--- /dev/null |
73 |
+++ b/sci-mathematics/dsfmt/metadata.xml |
74 |
@@ -0,0 +1,17 @@ |
75 |
+<?xml version="1.0" encoding="UTF-8"?> |
76 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
77 |
+<pkgmetadata> |
78 |
+ <maintainer type="project"> |
79 |
+ <email>sci-mathematics@g.o</email> |
80 |
+ <name>Gentoo Mathematics Project</name> |
81 |
+ </maintainer> |
82 |
+ <longdescription lang="en"> |
83 |
+ The purpose of Double precision SIMD-oriented Fast Mersenne Twister (dSFMT) |
84 |
+ is to speed up the generation by avoiding the expensive conversion |
85 |
+ of integer to double (floating point). dSFMT directly generates |
86 |
+ double precision floating point pseudorandom numbers which have the |
87 |
+ IEEE Standard for Binary Floating-Point Arithmetic (ANSI/IEEE Std |
88 |
+ 754-1985) format. dSFMT is only available on the CPUs which use IEEE |
89 |
+ 754 format double precision floating point numbers. |
90 |
+ </longdescription> |
91 |
+</pkgmetadata> |