1 |
commit: b6a975ddfc6833b2b1af8e560a3c5cc6b9dfe678 |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Fri Oct 2 01:13:18 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Fri Oct 2 01:38:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b6a975dd |
7 |
|
8 |
dev-cpp/blitz: cpp tensor library |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
12 |
|
13 |
dev-cpp/blitz/blitz-1.0.2_p20200524.ebuild | 40 ++++++++++++++++++++++++++++++ |
14 |
dev-cpp/blitz/blitz-9999.ebuild | 40 ++++++++++++++++++++++++++++++ |
15 |
dev-cpp/blitz/metadata.xml | 12 +++++++++ |
16 |
3 files changed, 92 insertions(+) |
17 |
|
18 |
diff --git a/dev-cpp/blitz/blitz-1.0.2_p20200524.ebuild b/dev-cpp/blitz/blitz-1.0.2_p20200524.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000..47a9e5d25 |
21 |
--- /dev/null |
22 |
+++ b/dev-cpp/blitz/blitz-1.0.2_p20200524.ebuild |
23 |
@@ -0,0 +1,40 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit cmake |
30 |
+CMAKE_MAKEFILE_GENERATOR=emake |
31 |
+ |
32 |
+DESCRIPTION="multi-dimensional array library for C++" |
33 |
+HOMEPAGE="https://github.com/blitzpp/blitz" |
34 |
+ |
35 |
+if [[ ${PV} == 9999 ]] ; then |
36 |
+ inherit git-r3 |
37 |
+ EGIT_REPO_URI="https://github.com/blitzpp/blitz" |
38 |
+else |
39 |
+ COMMIT=39f885951a9b8b11f931f917935a16066a945056 |
40 |
+ SRC_URI="https://github.com/blitzpp/blitz/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
41 |
+ S="${WORKDIR}"/${PN}-${COMMIT} |
42 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
43 |
+fi |
44 |
+ |
45 |
+LICENSE="BSD LGPL-3+" |
46 |
+SLOT="0" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+src_configure() { |
51 |
+ local mycmakeargs=( |
52 |
+ -DBUILD_TESTING=$(usex test) |
53 |
+ ) |
54 |
+ cmake_src_configure |
55 |
+} |
56 |
+ |
57 |
+src_compile() { |
58 |
+ if use test; then |
59 |
+ cmake_build check-testsuite check-benchmarks check-examples |
60 |
+ else |
61 |
+ cmake build |
62 |
+ fi |
63 |
+} |
64 |
|
65 |
diff --git a/dev-cpp/blitz/blitz-9999.ebuild b/dev-cpp/blitz/blitz-9999.ebuild |
66 |
new file mode 100644 |
67 |
index 000000000..47a9e5d25 |
68 |
--- /dev/null |
69 |
+++ b/dev-cpp/blitz/blitz-9999.ebuild |
70 |
@@ -0,0 +1,40 @@ |
71 |
+# Copyright 1999-2020 Gentoo Authors |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+ |
74 |
+EAPI=7 |
75 |
+ |
76 |
+inherit cmake |
77 |
+CMAKE_MAKEFILE_GENERATOR=emake |
78 |
+ |
79 |
+DESCRIPTION="multi-dimensional array library for C++" |
80 |
+HOMEPAGE="https://github.com/blitzpp/blitz" |
81 |
+ |
82 |
+if [[ ${PV} == 9999 ]] ; then |
83 |
+ inherit git-r3 |
84 |
+ EGIT_REPO_URI="https://github.com/blitzpp/blitz" |
85 |
+else |
86 |
+ COMMIT=39f885951a9b8b11f931f917935a16066a945056 |
87 |
+ SRC_URI="https://github.com/blitzpp/blitz/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
88 |
+ S="${WORKDIR}"/${PN}-${COMMIT} |
89 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
90 |
+fi |
91 |
+ |
92 |
+LICENSE="BSD LGPL-3+" |
93 |
+SLOT="0" |
94 |
+IUSE="test" |
95 |
+RESTRICT="!test? ( test )" |
96 |
+ |
97 |
+src_configure() { |
98 |
+ local mycmakeargs=( |
99 |
+ -DBUILD_TESTING=$(usex test) |
100 |
+ ) |
101 |
+ cmake_src_configure |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ if use test; then |
106 |
+ cmake_build check-testsuite check-benchmarks check-examples |
107 |
+ else |
108 |
+ cmake build |
109 |
+ fi |
110 |
+} |
111 |
|
112 |
diff --git a/dev-cpp/blitz/metadata.xml b/dev-cpp/blitz/metadata.xml |
113 |
new file mode 100644 |
114 |
index 000000000..e97c4322a |
115 |
--- /dev/null |
116 |
+++ b/dev-cpp/blitz/metadata.xml |
117 |
@@ -0,0 +1,12 @@ |
118 |
+<?xml version="1.0" encoding="UTF-8"?> |
119 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
120 |
+<pkgmetadata> |
121 |
+ <maintainer type="person"> |
122 |
+ <email>gentoo@×××××.cc</email> |
123 |
+ <name>Aisha Tammy</name> |
124 |
+ </maintainer> |
125 |
+ <maintainer type="project"> |
126 |
+ <email>sci@g.o</email> |
127 |
+ <name>Gentoo Science Project</name> |
128 |
+ </maintainer> |
129 |
+</pkgmetadata> |