sci-libs/dart: new package WIP

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-05-18 03:19:11 +02:00
parent f3933807f3
commit 9adc0ea122
3 changed files with 107 additions and 0 deletions

1
sci-libs/dart/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST dart-6.10.1.tar.gz 15867405 BLAKE2B 64c42ce1d808a88df53f4292df30c0bc58b52f864342ac0b353ad0496d41bd4986ad231cb08869058a16591350acf0fc0c12ae15d574d919c1c27f102028f608 SHA512 8abbf883628442ed5166e436349de8caaaf72a0ecfa88e75b986a550d617bd9b5df8ff32e32395e941ba12b7ad359be15b2ab2f566d99aa6c603bd0ebade1df0

View File

@@ -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}"
}

View File

@@ -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>lssndrbarbieri@gmail.com</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>