commit:     141b9e0b32772aa76a24caf5313946f26a81f835
Author:     Robert Greener <me <AT> r0bert <DOT> dev>
AuthorDate: Sun Jul  3 18:13:39 2022 +0000
Commit:     Robert Greener <me <AT> r0bert <DOT> dev>
CommitDate: Sun Jul  3 18:13:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=141b9e0b

dev-R/nloptr: new package, add 2.0.3

Signed-off-by: Robert Greener <me <AT> r0bert.dev>

 dev-R/nloptr/Manifest            |  1 +
 dev-R/nloptr/metadata.xml        | 17 +++++++++++++++++
 dev-R/nloptr/nloptr-2.0.3.ebuild | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/dev-R/nloptr/Manifest b/dev-R/nloptr/Manifest
new file mode 100644
index 000000000..9c88420d5
--- /dev/null
+++ b/dev-R/nloptr/Manifest
@@ -0,0 +1 @@
+DIST nloptr_2.0.3.tar.gz 2219877 BLAKE2B 
28504ebd4b94e8de8da0b7a86da87f4d2d3e40dfb7411d3662df48f529a3c6e5b0f03b2094ade747d0c914627456df336183c72e2670b0c10fab7389ce72f3c8
 SHA512 
08f8a6b7ddc20f7b75c567ee7e55abd47228c4fc8db254080dc7f4010311a92ad4c75ca9b593adbb4183308e4142fdc9ab80aed1b7fe5da3b7450a19624b98e6

diff --git a/dev-R/nloptr/metadata.xml b/dev-R/nloptr/metadata.xml
new file mode 100644
index 000000000..5a16e11e0
--- /dev/null
+++ b/dev-R/nloptr/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>m...@r0bert.dev</email>
+               <name>Robert Greener</name>
+       </maintainer>
+       <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>
+       <upstream>
+               <maintainer>
+                       <name>Aymeric Stamm</name>
+                       <email>aymeric.st...@math.cnrs.fr</email>
+               </maintainer>
+               <bugs-to>https://github.com/astamm/nloptr/issues</bugs-to>
+               <remote-id type="github">astamm/nloptr</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-R/nloptr/nloptr-2.0.3.ebuild b/dev-R/nloptr/nloptr-2.0.3.ebuild
new file mode 100644
index 000000000..feb76ef4d
--- /dev/null
+++ b/dev-R/nloptr/nloptr-2.0.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit R-packages edo
+
+DESCRIPTION='R Interface to NLopt'
+KEYWORDS="~amd64"
+LICENSE='LGPL-3+'
+RESTRICT="!test? ( test )"
+IUSE="test"
+
+DEPEND="
+       >=dev-R/testthat-3.0.0
+       test? (
+               dev-R/xml2
+       )
+"
+
+SUGGESTED_PACKAGES="
+       dev-R/covr
+       dev-R/knitr
+       dev-R/rmarkdown
+       >=dev-R/testthat-3.0.0
+       dev-R/xml2
+"
+
+src_test() {
+       cd "${WORKDIR}/${P}/tests" || die
+       NOT_CRAN=true R_LIBS="${T}/R" edo Rscript --vanilla testthat.R
+}

Reply via email to