1 |
commit: 141b9e0b32772aa76a24caf5313946f26a81f835 |
2 |
Author: Robert Greener <me <AT> r0bert <DOT> dev> |
3 |
AuthorDate: Sun Jul 3 18:13:39 2022 +0000 |
4 |
Commit: Robert Greener <me <AT> r0bert <DOT> dev> |
5 |
CommitDate: Sun Jul 3 18:13:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=141b9e0b |
7 |
|
8 |
dev-R/nloptr: new package, add 2.0.3 |
9 |
|
10 |
Signed-off-by: Robert Greener <me <AT> r0bert.dev> |
11 |
|
12 |
dev-R/nloptr/Manifest | 1 + |
13 |
dev-R/nloptr/metadata.xml | 17 +++++++++++++++++ |
14 |
dev-R/nloptr/nloptr-2.0.3.ebuild | 32 ++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-R/nloptr/Manifest b/dev-R/nloptr/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..9c88420d5 |
20 |
--- /dev/null |
21 |
+++ b/dev-R/nloptr/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST nloptr_2.0.3.tar.gz 2219877 BLAKE2B 28504ebd4b94e8de8da0b7a86da87f4d2d3e40dfb7411d3662df48f529a3c6e5b0f03b2094ade747d0c914627456df336183c72e2670b0c10fab7389ce72f3c8 SHA512 08f8a6b7ddc20f7b75c567ee7e55abd47228c4fc8db254080dc7f4010311a92ad4c75ca9b593adbb4183308e4142fdc9ab80aed1b7fe5da3b7450a19624b98e6 |
24 |
|
25 |
diff --git a/dev-R/nloptr/metadata.xml b/dev-R/nloptr/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000..5a16e11e0 |
28 |
--- /dev/null |
29 |
+++ b/dev-R/nloptr/metadata.xml |
30 |
@@ -0,0 +1,17 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>me@××××××.dev</email> |
36 |
+ <name>Robert Greener</name> |
37 |
+ </maintainer> |
38 |
+ <longdescription lang="en"> Solve optimization problems using an R interface to NLopt. NLopt is a free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization routines available online as well as original implementations of various other algorithms. See https://nlopt.readthedocs.io/en/latest/NLopt_Algorithms/ for more information on the available algorithms. Building from included sources requires 'CMake'. On Linux and 'macOS', if a suitable system build of NLopt (2.7.0 or later) is found, it is used; otherwise, it is built from included sources via 'CMake'. On Windows, NLopt is obtained through 'rwinlib' for 'R leq 4.1.x' or grabbed from the 'Rtools42 toolchain' for 'R geq 4.2.0'.</longdescription> |
39 |
+ <upstream> |
40 |
+ <maintainer> |
41 |
+ <name>Aymeric Stamm</name> |
42 |
+ <email>aymeric.stamm@×××××××××.fr</email> |
43 |
+ </maintainer> |
44 |
+ <bugs-to>https://github.com/astamm/nloptr/issues</bugs-to> |
45 |
+ <remote-id type="github">astamm/nloptr</remote-id> |
46 |
+ </upstream> |
47 |
+</pkgmetadata> |
48 |
|
49 |
diff --git a/dev-R/nloptr/nloptr-2.0.3.ebuild b/dev-R/nloptr/nloptr-2.0.3.ebuild |
50 |
new file mode 100644 |
51 |
index 000000000..feb76ef4d |
52 |
--- /dev/null |
53 |
+++ b/dev-R/nloptr/nloptr-2.0.3.ebuild |
54 |
@@ -0,0 +1,32 @@ |
55 |
+# Copyright 1999-2022 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=7 |
59 |
+ |
60 |
+inherit R-packages edo |
61 |
+ |
62 |
+DESCRIPTION='R Interface to NLopt' |
63 |
+KEYWORDS="~amd64" |
64 |
+LICENSE='LGPL-3+' |
65 |
+RESTRICT="!test? ( test )" |
66 |
+IUSE="test" |
67 |
+ |
68 |
+DEPEND=" |
69 |
+ >=dev-R/testthat-3.0.0 |
70 |
+ test? ( |
71 |
+ dev-R/xml2 |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+SUGGESTED_PACKAGES=" |
76 |
+ dev-R/covr |
77 |
+ dev-R/knitr |
78 |
+ dev-R/rmarkdown |
79 |
+ >=dev-R/testthat-3.0.0 |
80 |
+ dev-R/xml2 |
81 |
+" |
82 |
+ |
83 |
+src_test() { |
84 |
+ cd "${WORKDIR}/${P}/tests" || die |
85 |
+ NOT_CRAN=true R_LIBS="${T}/R" edo Rscript --vanilla testthat.R |
86 |
+} |