mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -04:00
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
83 lines
1.7 KiB
Bash
83 lines
1.7 KiB
Bash
# 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}"
|
|
}
|