1 |
commit: 2c2a87bd3af9346b11fb2dbca3d9fd978cc98dd8 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jun 20 21:34:53 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Jun 20 23:17:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2c2a87bd |
7 |
|
8 |
dev-R/RcppEnsmallen: unbundle ensmallen |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
.../RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild | 16 +++++++++ |
13 |
dev-R/RcppEnsmallen/metadata.xml | 42 +++++++++++----------- |
14 |
2 files changed, 37 insertions(+), 21 deletions(-) |
15 |
|
16 |
diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild |
17 |
index 5b357cc94..8fc973685 100644 |
18 |
--- a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild |
19 |
+++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.15.0.1.ebuild |
20 |
@@ -22,3 +22,19 @@ RDEPEND=" |
21 |
dev-R/Rcpp |
22 |
>=dev-R/RcppArmadillo-0.8.400.0.0 |
23 |
" |
24 |
+ |
25 |
+src_prepare() { |
26 |
+ default |
27 |
+ #remove bundled |
28 |
+ rm -r inst/include/ensmallen_bits || die |
29 |
+ rm inst/include/ensmallen.hpp || die |
30 |
+ #link to sci-libs/ensmallen |
31 |
+ dosym /usr/include/ensmallen_bits inst/include/ensmallen_bits |
32 |
+ dosym /usr/include/ensmallen.hpp inst/include/ensmallen.hpp |
33 |
+} |
34 |
+ |
35 |
+src_install() { |
36 |
+ R-packages_src_install |
37 |
+ dosym /usr/include/ensmallen_bits "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen_bits" |
38 |
+ dosym /usr/include/ensmallen.hpp "/usr/$(get_libdir)/R/site-library/${PN}/include/ensmallen.hpp" |
39 |
+} |
40 |
|
41 |
diff --git a/dev-R/RcppEnsmallen/metadata.xml b/dev-R/RcppEnsmallen/metadata.xml |
42 |
index b666d2f18..c3fb57f8e 100644 |
43 |
--- a/dev-R/RcppEnsmallen/metadata.xml |
44 |
+++ b/dev-R/RcppEnsmallen/metadata.xml |
45 |
@@ -1,25 +1,25 @@ |
46 |
<?xml version="1.0" encoding="UTF-8"?> |
47 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
48 |
<pkgmetadata> |
49 |
- <longdescription> |
50 |
- Header-Only C++ Mathematical Optimization Library for 'Armadillo' |
51 |
- // 'Ensmallen' is a templated C++ mathematical optimization |
52 |
- library (by the 'MLPACK' team) that provides a simple set of |
53 |
- abstractions for writing an objective function to optimize. |
54 |
- Provided within are various standard and cutting-edge |
55 |
- optimizers that include full-batch gradient descent techniques, |
56 |
- small-batch techniques, gradient-free optimizers, and |
57 |
- constrained optimization. The 'RcppEnsmallen' package includes |
58 |
- the header files from the 'Ensmallen' library and pairs the |
59 |
- appropriate header files from 'armadillo' through the |
60 |
- 'RcppArmadillo' package. Therefore, users do not need to |
61 |
- install 'Ensmallen' nor 'Armadillo' to use 'RcppEnsmallen'. |
62 |
- Note that 'Ensmallen' is licensed under 3-Clause BSD, |
63 |
- 'Armadillo' starting from 7.800.0 is licensed under Apache |
64 |
- License 2, 'RcppArmadillo' (the 'Rcpp' bindings/bridge to |
65 |
- 'Armadillo') is licensed under the GNU GPL version 2 or later. |
66 |
- Thus, 'RcppEnsmallen' is also licensed under similar terms. |
67 |
- Note that 'Ensmallen' requires a compiler that supports 'C++11' |
68 |
- and 'Armadillo' 8.400 or later. |
69 |
- </longdescription> |
70 |
+ <!-- maintainer-needed --> |
71 |
+ <upstream> |
72 |
+ <bugs-to>https://github.com/coatless/rcppensmallen/issues</bugs-to> |
73 |
+ <doc lang="en">https://cran.r-project.org/web/packages/RcppEnsmallen/RcppEnsmallen.pdf</doc> |
74 |
+ <changelog>https://cran.r-project.org/web/packages/RcppEnsmallen/ChangeLog</changelog> |
75 |
+ <maintainer> |
76 |
+ <name>James Joseph Balamuta</name> |
77 |
+ <email>balamut2@××××××××.edu</email> |
78 |
+ </maintainer> |
79 |
+ <remote-id type="github">coatless/rcppensmallen</remote-id> |
80 |
+ </upstream> |
81 |
+ <longdescription lang="en"> |
82 |
+Header-Only C++ Mathematical Optimization Library for 'Armadillo' |
83 |
+// 'Ensmallen' is a templated C++ mathematical optimization |
84 |
+library (by the 'MLPACK' team) that provides a simple set of |
85 |
+abstractions for writing an objective function to optimize. |
86 |
+Provided within are various standard and cutting-edge |
87 |
+optimizers that include full-batch gradient descent techniques, |
88 |
+small-batch techniques, gradient-free optimizers, and |
89 |
+constrained optimization. |
90 |
+ </longdescription> |
91 |
</pkgmetadata> |