Files
guru/dev-R/nloptr/nloptr-2.0.3-r1.ebuild
Robert Greener 7acf642228 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@r0bert.dev>
2022-07-05 13:46:00 +01:00

34 lines
549 B
Bash

# 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
)
>=sci-libs/nlopt-2.7.0
"
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
}