1 |
commit: 74e34376cdf8e653a6ed3c54687daeb826917075 |
2 |
Author: band-a-prend <torokhov-s-a <AT> yandex <DOT> ru> |
3 |
AuthorDate: Sun Mar 14 20:47:46 2021 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Tue Apr 20 15:44:15 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=74e34376 |
7 |
|
8 |
dev-cpp/blitz: 1.0.3_pre fix boost, doxygen dependencies |
9 |
|
10 |
The blitz-1.0.2_p20200524 provides libblitz.so.1.0.3 therefore |
11 |
the new ebuild is renamed to *-1.0.3_pre20200524 instead of revision bump |
12 |
while both use the same git-commit-sha-tarball. |
13 |
|
14 |
Blitz++ optionally depends on dev-libs/boost[static-libs] |
15 |
to allow build with Boost::serialization support |
16 |
(note: cmake option is realy with typo). |
17 |
USE="boost" is used to handle this option. |
18 |
|
19 |
Add USE="doc" app-doc/doxygen build dependency to build dev docs. |
20 |
|
21 |
Add python build time dependency. |
22 |
|
23 |
The testsuite, benchmark, examples targets now is only conditionally build |
24 |
in src_compile() and tests are ran in implicit src_test() phase. |
25 |
|
26 |
Update live ebuild. |
27 |
|
28 |
Signed-off-by: band-a-prend <torokhov-s-a <AT> yandex.ru> |
29 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
30 |
|
31 |
dev-cpp/blitz/blitz-1.0.3_pre20200524.ebuild | 52 ++++++++++++++++++++++++++++ |
32 |
dev-cpp/blitz/blitz-9999.ebuild | 46 ++++++++++++++---------- |
33 |
dev-cpp/blitz/metadata.xml | 10 ++++++ |
34 |
3 files changed, 89 insertions(+), 19 deletions(-) |
35 |
|
36 |
diff --git a/dev-cpp/blitz/blitz-1.0.3_pre20200524.ebuild b/dev-cpp/blitz/blitz-1.0.3_pre20200524.ebuild |
37 |
new file mode 100644 |
38 |
index 000000000..b92ebbcce |
39 |
--- /dev/null |
40 |
+++ b/dev-cpp/blitz/blitz-1.0.3_pre20200524.ebuild |
41 |
@@ -0,0 +1,52 @@ |
42 |
+# Copyright 1999-2021 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+ |
47 |
+PYTHON_COMPAT=( python3_{7..9} ) |
48 |
+ |
49 |
+inherit cmake python-any-r1 |
50 |
+ |
51 |
+COMMIT="39f885951a9b8b11f931f917935a16066a945056" |
52 |
+ |
53 |
+DESCRIPTION="Multi-dimensional array library for C++" |
54 |
+HOMEPAGE="https://github.com/blitzpp/blitz" |
55 |
+SRC_URI="https://github.com/blitzpp/blitz/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
56 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
57 |
+ |
58 |
+LICENSE="BSD LGPL-3+" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
61 |
+IUSE="boost doc test" |
62 |
+RESTRICT="!test? ( test )" |
63 |
+ |
64 |
+BDEPEND=" |
65 |
+ ${PYTHON_DEPS} |
66 |
+ doc? ( app-doc/doxygen[dot] ) |
67 |
+" |
68 |
+DEPEND=" |
69 |
+ boost? ( dev-libs/boost:=[static-libs] ) |
70 |
+" |
71 |
+ |
72 |
+src_configure() { |
73 |
+ local mycmakeargs=( |
74 |
+ -DBUILD_DOC=$(usex doc) |
75 |
+ -DBUILD_TESTING=$(usex test) |
76 |
+ -DENABLE_SERIALISATION=$(usex boost) |
77 |
+ ) |
78 |
+ use doc && mycmakeargs+=( -DDISABLE_REFMAN_PDF=ON ) |
79 |
+ cmake_src_configure |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ cmake_src_compile |
84 |
+ use doc && cmake_build blitz-doc |
85 |
+ use test && cmake_build testsuite benchmark examples |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ cmake_src_install |
90 |
+ if use doc ; then |
91 |
+ find "${D}" -type f \( -name "*.md5" -o -name "*.map" \) -delete || die |
92 |
+ fi |
93 |
+} |
94 |
|
95 |
diff --git a/dev-cpp/blitz/blitz-9999.ebuild b/dev-cpp/blitz/blitz-9999.ebuild |
96 |
index 47a9e5d25..7ac6d5688 100644 |
97 |
--- a/dev-cpp/blitz/blitz-9999.ebuild |
98 |
+++ b/dev-cpp/blitz/blitz-9999.ebuild |
99 |
@@ -1,40 +1,48 @@ |
100 |
-# Copyright 1999-2020 Gentoo Authors |
101 |
+# Copyright 1999-2021 Gentoo Authors |
102 |
# Distributed under the terms of the GNU General Public License v2 |
103 |
|
104 |
EAPI=7 |
105 |
|
106 |
-inherit cmake |
107 |
-CMAKE_MAKEFILE_GENERATOR=emake |
108 |
+PYTHON_COMPAT=( python3_{7..9} ) |
109 |
|
110 |
-DESCRIPTION="multi-dimensional array library for C++" |
111 |
-HOMEPAGE="https://github.com/blitzpp/blitz" |
112 |
+inherit cmake git-r3 python-any-r1 |
113 |
|
114 |
-if [[ ${PV} == 9999 ]] ; then |
115 |
- inherit git-r3 |
116 |
- EGIT_REPO_URI="https://github.com/blitzpp/blitz" |
117 |
-else |
118 |
- COMMIT=39f885951a9b8b11f931f917935a16066a945056 |
119 |
- SRC_URI="https://github.com/blitzpp/blitz/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
120 |
- S="${WORKDIR}"/${PN}-${COMMIT} |
121 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
122 |
-fi |
123 |
+DESCRIPTION="Multi-dimensional array library for C++" |
124 |
+HOMEPAGE="https://github.com/blitzpp/blitz" |
125 |
+EGIT_REPO_URI="https://github.com/blitzpp/blitz" |
126 |
|
127 |
LICENSE="BSD LGPL-3+" |
128 |
SLOT="0" |
129 |
-IUSE="test" |
130 |
+IUSE="boost doc test" |
131 |
RESTRICT="!test? ( test )" |
132 |
|
133 |
+BDEPEND=" |
134 |
+ ${PYTHON_DEPS} |
135 |
+ doc? ( app-doc/doxygen[dot] ) |
136 |
+" |
137 |
+DEPEND=" |
138 |
+ boost? ( dev-libs/boost:=[static-libs] ) |
139 |
+" |
140 |
+ |
141 |
src_configure() { |
142 |
local mycmakeargs=( |
143 |
+ -DBUILD_DOC=$(usex doc) |
144 |
-DBUILD_TESTING=$(usex test) |
145 |
+ -DENABLE_SERIALISATION=$(usex boost) |
146 |
) |
147 |
+ use doc && mycmakeargs+=( -DDISABLE_REFMAN_PDF=ON ) |
148 |
cmake_src_configure |
149 |
} |
150 |
|
151 |
src_compile() { |
152 |
- if use test; then |
153 |
- cmake_build check-testsuite check-benchmarks check-examples |
154 |
- else |
155 |
- cmake build |
156 |
+ cmake_src_compile |
157 |
+ use doc && cmake_build blitz-doc |
158 |
+ use test && cmake_build testsuite benchmark examples |
159 |
+} |
160 |
+ |
161 |
+src_install() { |
162 |
+ cmake_src_install |
163 |
+ if use doc ; then |
164 |
+ find "${D}" -type f \( -name "*.md5" -o -name "*.map" \) -delete || die |
165 |
fi |
166 |
} |
167 |
|
168 |
diff --git a/dev-cpp/blitz/metadata.xml b/dev-cpp/blitz/metadata.xml |
169 |
index e97c4322a..c0e5e78aa 100644 |
170 |
--- a/dev-cpp/blitz/metadata.xml |
171 |
+++ b/dev-cpp/blitz/metadata.xml |
172 |
@@ -9,4 +9,14 @@ |
173 |
<email>sci@g.o</email> |
174 |
<name>Gentoo Science Project</name> |
175 |
</maintainer> |
176 |
+ <longdescription> |
177 |
+ Blitz++ is a C++ template class library that provides high-performance |
178 |
+ multidimensional array containers for scientific compiting. |
179 |
+ </longdescription> |
180 |
+ <use> |
181 |
+ <flag name="boost">Enable serialization support using Boost::Serialization.</flag> |
182 |
+ </use> |
183 |
+ <upstream> |
184 |
+ <remote-id type="github">blitzpp/blitz</remote-id> |
185 |
+ </upstream> |
186 |
</pkgmetadata> |