public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-R/nloptr/
@ 2022-07-03 18:13 Robert Greener
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Greener @ 2022-07-03 18:13 UTC (permalink / raw
  To: gentoo-commits

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>me@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.stamm@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
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: dev-R/nloptr/
@ 2022-07-05 12:46 Robert Greener
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Greener @ 2022-07-05 12:46 UTC (permalink / raw
  To: gentoo-commits

commit:     7acf64222811aa7664fcdfa175574dcc4f6aac3d
Author:     Robert Greener <me <AT> r0bert <DOT> dev>
AuthorDate: Tue Jul  5 12:44:49 2022 +0000
Commit:     Robert Greener <me <AT> r0bert <DOT> dev>
CommitDate: Tue Jul  5 12:46:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7acf6422

dev-R/nloptr: use nlopt from system

Has side effect of fixing fail to compile bug

Closes: https://bugs.gentoo.org/856526
Signed-off-by: Robert Greener <me <AT> r0bert.dev>

 dev-R/nloptr/{nloptr-2.0.3.ebuild => nloptr-2.0.3-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-R/nloptr/nloptr-2.0.3.ebuild b/dev-R/nloptr/nloptr-2.0.3-r1.ebuild
similarity index 95%
rename from dev-R/nloptr/nloptr-2.0.3.ebuild
rename to dev-R/nloptr/nloptr-2.0.3-r1.ebuild
index feb76ef4d..b8a705a32 100644
--- a/dev-R/nloptr/nloptr-2.0.3.ebuild
+++ b/dev-R/nloptr/nloptr-2.0.3-r1.ebuild
@@ -16,6 +16,7 @@ DEPEND="
 	test? (
 		dev-R/xml2
 	)
+	>=sci-libs/nlopt-2.7.0
 "
 
 SUGGESTED_PACKAGES="


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-05 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-03 18:13 [gentoo-commits] repo/proj/guru:dev commit in: dev-R/nloptr/ Robert Greener
  -- strict thread matches above, loose matches on Subject: below --
2022-07-05 12:46 Robert Greener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox