1 |
commit: 6bad21349cfc8f59458eaa7bdc5ae7ff466586f5 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 5 20:57:13 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Oct 5 21:24:13 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6bad2134 |
7 |
|
8 |
dev-R/RcppEnsmallen: add 0.2.17.0.1 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-R/RcppEnsmallen/Manifest | 1 + |
13 |
.../RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild | 40 ++++++++++++++++++++++ |
14 |
2 files changed, 41 insertions(+) |
15 |
|
16 |
diff --git a/dev-R/RcppEnsmallen/Manifest b/dev-R/RcppEnsmallen/Manifest |
17 |
index 592d85448..4f66f0fdd 100644 |
18 |
--- a/dev-R/RcppEnsmallen/Manifest |
19 |
+++ b/dev-R/RcppEnsmallen/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST RcppEnsmallen_0.2.15.0.1.tar.gz 223966 BLAKE2B fd7ed0b56d2f136f836b8987bb7b599aa1acdffce3c77e381939d7ec575cb5dabb181d5ddd7c229f3905b3d43c69705cd55fffcae5ea057742435ac13baa5080 SHA512 ab3ad2711154342030f66d89a3472181ac311b769b55018742cbee7e233327eabb85d4dccb9a5361f680d1ca0fe5ffa613211f908d85981eea19efd0ecb39f70 |
22 |
+DIST RcppEnsmallen_0.2.17.0.1.tar.gz 243399 BLAKE2B c143d6f2d3631e1226ee35894fc56ea113a756418efbd1e2deb70d9b1ddbf63e79b6cbe8c86f2dab81bbfd62af2ae464651fedd893dee0c6961c8759f589c421 SHA512 6b6c10ad188b13cca2498c5fc2cec74a18eab34f30411cbc48e09c327253889aa85a80717372aadc2f5c2245f7a7332c474cae237730bab5dbf4b4895f0f7607 |
23 |
|
24 |
diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..4a00cf0af |
27 |
--- /dev/null |
28 |
+++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild |
29 |
@@ -0,0 +1,40 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+MYPV="$(ver_cut 2-4 ${PV})" |
36 |
+ |
37 |
+inherit R-packages |
38 |
+ |
39 |
+DESCRIPTION='Header-Only C++ Mathematical Optimization library for armadillo' |
40 |
+#SRC_URI="mirror://cran/src/contrib/RcppEnsmallen/RcppEnsmallen_${PV}.tar.gz" |
41 |
+KEYWORDS="~amd64" |
42 |
+LICENSE='GPL-2+' |
43 |
+ |
44 |
+DEPEND=" |
45 |
+ >=dev-lang/R-3.3.0 |
46 |
+ dev-R/Rcpp |
47 |
+ =sci-libs/ensmallen-${MYPV}* |
48 |
+" |
49 |
+RDEPEND=" |
50 |
+ ${DEPEND} |
51 |
+ dev-R/Rcpp |
52 |
+ >=dev-R/RcppArmadillo-0.8.400.0.0 |
53 |
+" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ #remove bundled |
58 |
+ rm -r inst/include/ensmallen_bits || die |
59 |
+ rm inst/include/ensmallen.hpp || die |
60 |
+ #link to sci-libs/ensmallen |
61 |
+ dosym /usr/include/ensmallen_bits inst/include/ensmallen_bits |
62 |
+ dosym /usr/include/ensmallen.hpp inst/include/ensmallen.hpp |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ R-packages_src_install |
67 |
+ dosym /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits" |
68 |
+ dosym /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp" |
69 |
+} |