Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-libs/meschach/
Date: Wed, 08 Sep 2021 10:07:03
Message-Id: 1631095616.8aa354b46fc4c815fba679c9d086cec77e2025cc.Alessandro-Barbieri@gentoo
1 commit: 8aa354b46fc4c815fba679c9d086cec77e2025cc
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 8 09:24:59 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Wed Sep 8 10:06:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8aa354b4
7
8 sci-libs/meschach: add 1.2b_p20170511
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sci-libs/meschach/Manifest | 1 +
13 sci-libs/meschach/meschach-1.2b_p20170511.ebuild | 74 ++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/sci-libs/meschach/Manifest b/sci-libs/meschach/Manifest
17 index aa641bb63..df80a73fe 100644
18 --- a/sci-libs/meschach/Manifest
19 +++ b/sci-libs/meschach/Manifest
20 @@ -1,2 +1,3 @@
21 +DIST meschach-1.2b_p20170511.tar.gz 577104 BLAKE2B 83b47828c814d4a7f4957f02448babb0961383f61f329431ef74a8ec2800c196d5cb0e1363a258b06f18adccaf39d859e640f01bf7f98b5b0ac634adc5f58beb SHA512 054c9380ff2df4c8c3bda0eb20df2a9da8fe357fd939116a257bb2831d04893aad29999df0d2bd9434173a1246ec18a73779abdadc477f9c2dd9d027446393d1
22 DIST meschach_1.2b-14.debian.tar.xz 40664 BLAKE2B 753cdcdf8ecd63be14a294a6607380462df8a74c1cc84fafcfe4140cb10eaeb590dbe12883e2a973691a920b1e7f4efdf884781b49ea947b1132ff213f4a2652 SHA512 9793127a1785fb757b61132db1c471a2ff7949c383870f10d0b24ea2e1dafcb9d9379b61698179f91fdba4405e18e1692efcc26b759b1a5d9519e8c46206636b
23 DIST meschach_1.2b.orig.tar.gz 220166 BLAKE2B fe38d9887977f45cc54857fe9c33f1eb50d1192ce3cae643127962cfce7657d9890964aabd3690751648a3a850fbbb39c6fb2110f8b4fcd789c7b8efefcec2c5 SHA512 0b8748915739b624aa44b0bf6f2c59aaf3d09f69f9455220e4baeb423c094a89cc25c03d6ced0d58bfd7c5d6626f3995fc853119ab0f7d6af151d8479c326068
24
25 diff --git a/sci-libs/meschach/meschach-1.2b_p20170511.ebuild b/sci-libs/meschach/meschach-1.2b_p20170511.ebuild
26 new file mode 100644
27 index 000000000..8ddb5297b
28 --- /dev/null
29 +++ b/sci-libs/meschach/meschach-1.2b_p20170511.ebuild
30 @@ -0,0 +1,74 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit cmake
37 +
38 +COMMIT="201bcf933bcd4d971c3ab50e0651c6e65ba004b9"
39 +MAJOR="$(ver_cut 1)"
40 +VERSION="$(ver_cut 1-2)"
41 +
42 +DESCRIPTION="Meschach is a C-language library of routines for performing matrix computations"
43 +HOMEPAGE="
44 + https://github.com/yageek/Meschach
45 + http://homepage.divms.uiowa.edu/~dstewart/meschach
46 +"
47 +S="${WORKDIR}/${PN^}-${COMMIT}"
48 +
49 +SRC_URI="https://github.com/yageek/Meschach/archive/${COMMIT}.tar.gz -> ${PF}.tar.gz"
50 +LICENSE="meschach"
51 +SLOT="0"
52 +KEYWORDS="~amd64"
53 +
54 +IUSE="+complex +double munroll old segmem +float +sparse unroll"
55 +
56 +#PATCHES=(
57 +# "${FILESDIR}/.patch"
58 +#)
59 +
60 +src_configure() {
61 + mycmakeargs=(
62 + -DANDROID_COMPILE=OFF
63 + -DCOMPLEX_OPTION=$(usex complex)
64 + -DREAL_DBL_OPTION=$(usex double)
65 + -DREAL_FLT_OPTION=$(usex float)
66 + -DMUNROLL_OPTION=$(usex munroll)
67 + -DSEGMENTED_OPTION=$(usex segmem)
68 + -DSPARSE_OPTION=$(usex sparse)
69 + -DVUNROLL_OPTION=$(usex unroll)
70 + )
71 + cmake_src_configure
72 +}
73 +
74 +src_compile() {
75 + cmake_src_compile
76 +}
77 +
78 +src_install() {
79 + pushd "${BUILD_DIR}" || die
80 + ln -s "lib${PN}.so" "lib${PN}.so.${MAJOR}" || die
81 + ln -s "lib${PN}.so.${MAJOR}" "lib${PN}.so.${VERSION}" || die
82 + dolib.so "lib${PN}.so"
83 + dolib.so "lib${PN}.so.${MAJOR}"
84 + dolib.so "lib${PN}.so.${VERSION}"
85 +
86 +# exeinto "/usr/libexec/${PN}"
87 +# doexe iotort
88 +# doexe itertort
89 +# doexe memtort
90 +# doexe mfuntort
91 +# doexe sptort
92 +# doexe torture
93 +# doexe ztorture
94 + popd || die
95 +
96 + insinto "/usr/include/${PN}"
97 + doins *.h
98 +
99 + insinto "/usr/share/${PN}"
100 + doins *.dat
101 +
102 + dodoc -r DOC/.
103 + dodoc README.md
104 +}