1 |
commit: 274cf2a12b575170b3d394c15009f910531ce1ad |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed May 4 02:37:23 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Wed May 4 02:37:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=274cf2a1 |
7 |
|
8 |
sci-libs/ensmallen: bump |
9 |
|
10 |
Closes: https://bugs.gentoo.org/816804 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
sci-libs/ensmallen/Manifest | 3 +-- |
14 |
sci-libs/ensmallen/ensmallen-2.16.2.ebuild | 28 ---------------------- |
15 |
...allen-2.17.0.ebuild => ensmallen-2.19.0.ebuild} | 26 ++++++++++++++++---- |
16 |
3 files changed, 22 insertions(+), 35 deletions(-) |
17 |
|
18 |
diff --git a/sci-libs/ensmallen/Manifest b/sci-libs/ensmallen/Manifest |
19 |
index f69c4c39a..46c0306ef 100644 |
20 |
--- a/sci-libs/ensmallen/Manifest |
21 |
+++ b/sci-libs/ensmallen/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST ensmallen-2.16.2.tar.gz 1294240 BLAKE2B b388f2c99f289dd20f6d94b5b185d872abc553637c6081ea3a80a3c82ce9ac8b1327496bf3eae6dc5cbf5f4ae12a9fd1e8ccf9c296007f9af9cbfc7560cd0301 SHA512 290932f8e423be7c57d8ba38783a29798df52a7505ded7683f969fa30391398edcca584daca1b1c42977f06180a802d4c3640a9ec24cd787a3914723e4eb6f8d |
24 |
-DIST ensmallen-2.17.0.tar.gz 1318322 BLAKE2B cb74a3bc0118c9e702cc7e4d17326f12df45d5fadc63c8881c5dd2b9a79b004189369e1c7fcb2fc84e0bf7331da3937bffdf75b982de52314487f25191053164 SHA512 49dff47d50beabc74c0eb045f0e995348bc1cc022596de1780cad3e8fc6e6ef6cf97fb23f22c78a0662c377c1dd53d087df799d0fa98ebcc97c03c475b67fd07 |
25 |
+DIST ensmallen-2.19.0.tar.gz 1328515 BLAKE2B 7e381e3e7b8ea335f681770294b57686957104e6074db431d2e3015711faf62123de5c8fc4ee80d8e2f2092fa71c508156957f291760e32bf52d98da60f320f5 SHA512 3c101385d75aa13d21406fd98d4220b5ebd88655ff42039d6d4b22e3a2f21f7dc59dc935c67b8178cbfd104c4c50e611bc787f254973c3410a349648b5ed0342 |
26 |
|
27 |
diff --git a/sci-libs/ensmallen/ensmallen-2.16.2.ebuild b/sci-libs/ensmallen/ensmallen-2.16.2.ebuild |
28 |
deleted file mode 100644 |
29 |
index bd1c0530b..000000000 |
30 |
--- a/sci-libs/ensmallen/ensmallen-2.16.2.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,28 +0,0 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
- |
38 |
-inherit cmake |
39 |
- |
40 |
-DESCRIPTION="header only C++ library for numerical optimization" |
41 |
-HOMEPAGE="https://ensmallen.org" |
42 |
-SRC_URI="https://github.com/mlpack/ensmallen/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
- |
44 |
-KEYWORDS="~amd64" |
45 |
- |
46 |
-LICENSE="BSD" |
47 |
-SLOT="0" |
48 |
-IUSE="openmp test" |
49 |
-RESTRICT="!test? ( test )" |
50 |
- |
51 |
-RDEPEND="sci-libs/armadillo[lapack]" |
52 |
-DEPEND="${RDEPEND}" |
53 |
- |
54 |
-src_configure() { |
55 |
- local mycmakeargs=( |
56 |
- -DUSE_OPENMP=$(usex openmp) |
57 |
- -DBUILD_TESTS=$(usex test) |
58 |
- ) |
59 |
- cmake_src_configure |
60 |
-} |
61 |
|
62 |
diff --git a/sci-libs/ensmallen/ensmallen-2.17.0.ebuild b/sci-libs/ensmallen/ensmallen-2.19.0.ebuild |
63 |
similarity index 54% |
64 |
rename from sci-libs/ensmallen/ensmallen-2.17.0.ebuild |
65 |
rename to sci-libs/ensmallen/ensmallen-2.19.0.ebuild |
66 |
index 2dc0d0e83..3c3baedb6 100644 |
67 |
--- a/sci-libs/ensmallen/ensmallen-2.17.0.ebuild |
68 |
+++ b/sci-libs/ensmallen/ensmallen-2.19.0.ebuild |
69 |
@@ -1,12 +1,15 @@ |
70 |
-# Copyright 1999-2021 Gentoo Authors |
71 |
+# Copyright 1999-2022 Gentoo Authors |
72 |
# Distributed under the terms of the GNU General Public License v2 |
73 |
|
74 |
EAPI=8 |
75 |
|
76 |
-inherit cmake |
77 |
+inherit cmake flag-o-matic |
78 |
|
79 |
DESCRIPTION="header only C++ library for numerical optimization" |
80 |
-HOMEPAGE="https://ensmallen.org" |
81 |
+HOMEPAGE=" |
82 |
+ https://ensmallen.org |
83 |
+ https://github.com/mlpack/ensmallen |
84 |
+" |
85 |
SRC_URI="https://github.com/mlpack/ensmallen/archive/${PV}.tar.gz -> ${P}.tar.gz" |
86 |
|
87 |
KEYWORDS="~amd64" |
88 |
@@ -17,12 +20,25 @@ IUSE="openmp test" |
89 |
RESTRICT="!test? ( test )" |
90 |
|
91 |
RDEPEND="sci-libs/armadillo[lapack]" |
92 |
-DEPEND="${RDEPEND}" |
93 |
+DEPEND=" |
94 |
+ ${RDEPEND} |
95 |
+ test? ( dev-cpp/catch:0 ) |
96 |
+" |
97 |
+ |
98 |
+src_prepare() { |
99 |
+ rm tests/catch.hpp || die |
100 |
+ use test && append-cxxflags "-I/usr/include/catch2" |
101 |
+ cmake_src_prepare |
102 |
+} |
103 |
|
104 |
src_configure() { |
105 |
local mycmakeargs=( |
106 |
-DUSE_OPENMP=$(usex openmp) |
107 |
- -DBUILD_TESTS=$(usex test) |
108 |
) |
109 |
cmake_src_configure |
110 |
} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ use test && cmake_src_compile ensmallen_tests |
114 |
+ return |
115 |
+} |