commit:     9adc0ea1222632d9b65a23fe5e3641f5e5e0f252
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue May 18 01:19:11 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue May 18 01:19:46 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9adc0ea1

sci-libs/dart: new package WIP

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 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(+)

diff --git a/sci-libs/dart/Manifest b/sci-libs/dart/Manifest
new file mode 100644
index 000000000..461c20c15
--- /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 000000000..8a66abbff
--- /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 000000000..486eef082
--- /dev/null
+++ b/sci-libs/dart/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alessandro Barbieri</name>
+       </maintainer>
+       <upstream>
+               <bugs-to>https://github.com/dartsim/dart/issues</bugs-to>
+               <remote-id type="github">dartsim/dart</remote-id>
+       </upstream>
+       <use>
+               <flag name="bullet">Bullet Collision Detector Support</flag>
+               <flag name="examples">Build the examples</flag>
+               <flag name="extras">Build the experimental projects that are 
derived from the core DART project</flag>
+               <flag name="ipopt">IPopt Optimization Support</flag>
+               <flag name="nlopt">NLopt Optimization Support</flag>
+               <flag name="ode">ODE Collision Detector Support</flag>
+               <flag name="openscenegraph">OpenSceneGraph GUI and 
examples</flag>
+               <flag name="tests">Build the tests</flag>
+               <flag name="tutorials">Build the tutorials</flag>
+               <flag name="urdfdom">URDF parser</flag>
+       </use>
+</pkgmetadata>

Reply via email to