commit: e1b07a8144314c19e80bf183ac533412954ef62e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun May 18 14:10:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun May 18 14:11:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1b07a81
sci-libs/nlopt: always enable USE=cxx ... in part because the Python bindings need it, otherwise nothing Python-related gets installed. But it seems silly to bother having a USE for this anyway. Closes: https://bugs.gentoo.org/956118 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/nlopt/{nlopt-2.10.0.ebuild => nlopt-2.10.0-r1.ebuild} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sci-libs/nlopt/nlopt-2.10.0.ebuild b/sci-libs/nlopt/nlopt-2.10.0-r1.ebuild similarity index 96% rename from sci-libs/nlopt/nlopt-2.10.0.ebuild rename to sci-libs/nlopt/nlopt-2.10.0-r1.ebuild index 38e80afc3e4e..ae3da33926dd 100644 --- a/sci-libs/nlopt/nlopt-2.10.0.ebuild +++ b/sci-libs/nlopt/nlopt-2.10.0-r1.ebuild @@ -16,7 +16,7 @@ SRC_URI="https://github.com/stevengj/nlopt/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="LGPL-2.1 MIT" SLOT="0" KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" -IUSE="cxx guile octave python test" +IUSE="guile octave python test" REQUIRED_USE="guile? ( ${GUILE_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} )" RESTRICT="!test? ( test )" @@ -53,7 +53,7 @@ src_configure() { # MATLAB detection causes problems (as in bug #826774) if we don't # explicitly disable it. local mycmakeargs=( - -DNLOPT_CXX=$(usex cxx) + -DNLOPT_CXX=ON -DNLOPT_FORTRAN=$(usex test) -DNLOPT_GUILE=$(usex guile) -DNLOPT_JAVA=OFF @@ -94,7 +94,7 @@ src_test() { cd "${BUILD_DIR}"/test || die local a f - for a in {1..$(usex cxx 9 7)}; do + for a in {1..9}; do for f in {5..9}; do ./testopt -a $a -o $f || die "algorithm $a function $f failed" done
