From ddb397be87e7c39398d587dbd1b0fb28e440304a Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Wed, 19 May 2021 19:35:01 +0200 Subject: [PATCH] sci-libs/dart: improved dependencies, WIP Signed-off-by: Alessandro Barbieri --- ...rt-6.10.1.ebuild => dart-6.10.1-r1.ebuild} | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) rename sci-libs/dart/{dart-6.10.1.ebuild => dart-6.10.1-r1.ebuild} (76%) diff --git a/sci-libs/dart/dart-6.10.1.ebuild b/sci-libs/dart/dart-6.10.1-r1.ebuild similarity index 76% rename from sci-libs/dart/dart-6.10.1.ebuild rename to sci-libs/dart/dart-6.10.1-r1.ebuild index 8a66abbff0..4775af2f80 100644 --- a/sci-libs/dart/dart-6.10.1.ebuild +++ b/sci-libs/dart/dart-6.10.1-r1.ebuild @@ -14,8 +14,9 @@ SRC_URI="https://github.com/dartsim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" -IUSE="bullet examples extras glut ipopt +nlopt ode openscenegraph python tests tutorials urdfdom" +IUSE="bullet doc examples extras glut +ipopt +nlopt ode openscenegraph python test tutorials urdfdom" #TODO: pagmo +RESTRIC="!test? ( test )" REQUIRED_USE=" python? ( ${PYTHON_REQUIRED_USE} ) @@ -41,9 +42,14 @@ RDEPEND=" bullet? ( sci-physics/bullet ) examples? ( dev-games/openscenegraph ) glut? ( media-libs/freeglut ) - ipopt? ( >=sci-libs/ipopt-3.11.9 ) + ipopt? ( sci-libs/ipopt ) nlopt? ( >=sci-libs/nlopt-2.4.1 ) - python? ( ${PYTHON_DEPS} ) + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + dev-python/pybind11[${PYTHON_USEDEP}] + ') + ) ode? ( dev-games/ode ) openscenegraph? ( dev-games/openscenegraph ) urdfdom? ( dev-libs/urdfdom ) @@ -52,6 +58,7 @@ DEPEND=" ${RDEPEND} urdfdom? ( dev-libs/urdfdom_headers ) " +BDEPEND="doc? ( app-doc/doxygen )" pkg_setup() { use python && python-single-r1_pkg_setup @@ -69,9 +76,10 @@ src_configure() { src_compile() { cmake_src_compile -# use examples && emake examples -# use tests && emake tests -# use tutorials && emake tutorials + use examples && cmake_src_compile examples +# use python && cmake_src_compile dartpy +# use test && cmake_src_compile tests +# use tutorials && cmake_src_compile tutorials } src_install() {