From 9adc0ea1222632d9b65a23fe5e3641f5e5e0f252 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Tue, 18 May 2021 03:19:11 +0200 Subject: [PATCH] sci-libs/dart: new package WIP Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri --- sci-libs/dart/Manifest | 1 + sci-libs/dart/dart-6.10.1.ebuild | 82 ++++++++++++++++++++++++++++++++ sci-libs/dart/metadata.xml | 24 ++++++++++ 3 files changed, 107 insertions(+) create mode 100644 sci-libs/dart/Manifest create mode 100644 sci-libs/dart/dart-6.10.1.ebuild create mode 100644 sci-libs/dart/metadata.xml diff --git a/sci-libs/dart/Manifest b/sci-libs/dart/Manifest new file mode 100644 index 0000000000..461c20c15f --- /dev/null +++ b/sci-libs/dart/Manifest @@ -0,0 +1 @@ +DIST dart-6.10.1.tar.gz 15867405 BLAKE2B 64c42ce1d808a88df53f4292df30c0bc58b52f864342ac0b353ad0496d41bd4986ad231cb08869058a16591350acf0fc0c12ae15d574d919c1c27f102028f608 SHA512 8abbf883628442ed5166e436349de8caaaf72a0ecfa88e75b986a550d617bd9b5df8ff32e32395e941ba12b7ad359be15b2ab2f566d99aa6c603bd0ebade1df0 diff --git a/sci-libs/dart/dart-6.10.1.ebuild b/sci-libs/dart/dart-6.10.1.ebuild new file mode 100644 index 0000000000..8a66abbff0 --- /dev/null +++ b/sci-libs/dart/dart-6.10.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit cmake python-single-r1 + +DESCRIPTION="Dynamic Animation and Robotics Toolkit" +HOMEPAGE="https://dartsim.github.io" +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" +#TODO: pagmo + +REQUIRED_USE=" + python? ( ${PYTHON_REQUIRED_USE} ) + + || ( ipopt nlopt ) +" + +RDEPEND=" + app-arch/lz4 + >=dev-cpp/eigen-3.0.5 + dev-libs/boost + dev-libs/tinyxml + dev-libs/tinyxml2 + >=sci-libs/libccd-2.0 + >=media-libs/assimp-3.0.0 + >=sci-libs/fcl-0.2.9 + sci-libs/flann + sci-libs/octomap + virtual/opengl + x11-libs/libXi + x11-libs/libXmu + + bullet? ( sci-physics/bullet ) + examples? ( dev-games/openscenegraph ) + glut? ( media-libs/freeglut ) + ipopt? ( >=sci-libs/ipopt-3.11.9 ) + nlopt? ( >=sci-libs/nlopt-2.4.1 ) + python? ( ${PYTHON_DEPS} ) + ode? ( dev-games/ode ) + openscenegraph? ( dev-games/openscenegraph ) + urdfdom? ( dev-libs/urdfdom ) +" +DEPEND=" + ${RDEPEND} + urdfdom? ( dev-libs/urdfdom_headers ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DDART_VERBOSE=ON + + -DDART_BUILD_DARTPY=$(usex python) + -DDART_BUILD_EXTRAS=$(usex extras) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile +# use examples && emake examples +# use tests && emake tests +# use tutorials && emake tutorials +} + +src_install() { + cmake_src_install + #TODO: python examples tests tutorials + mv "${ED}/usr/share/doc/dart" "${ED}/usr/share/doc/${P}" || die + docompress -x "/usr/share/doc/${P}" +} diff --git a/sci-libs/dart/metadata.xml b/sci-libs/dart/metadata.xml new file mode 100644 index 0000000000..486eef0826 --- /dev/null +++ b/sci-libs/dart/metadata.xml @@ -0,0 +1,24 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + https://github.com/dartsim/dart/issues + dartsim/dart + + + Bullet Collision Detector Support + Build the examples + Build the experimental projects that are derived from the core DART project + IPopt Optimization Support + NLopt Optimization Support + ODE Collision Detector Support + OpenSceneGraph GUI and examples + Build the tests + Build the tutorials + URDF parser + +