Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-libs/dart/
Date: Tue, 18 May 2021 01:19:53
Message-Id: 1621300786.9adc0ea1222632d9b65a23fe5e3641f5e5e0f252.Alessandro-Barbieri@gentoo
1 commit: 9adc0ea1222632d9b65a23fe5e3641f5e5e0f252
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue May 18 01:19:11 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Tue May 18 01:19:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9adc0ea1
7
8 sci-libs/dart: new package WIP
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 sci-libs/dart/Manifest | 1 +
14 sci-libs/dart/dart-6.10.1.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++
15 sci-libs/dart/metadata.xml | 24 ++++++++++++
16 3 files changed, 107 insertions(+)
17
18 diff --git a/sci-libs/dart/Manifest b/sci-libs/dart/Manifest
19 new file mode 100644
20 index 000000000..461c20c15
21 --- /dev/null
22 +++ b/sci-libs/dart/Manifest
23 @@ -0,0 +1 @@
24 +DIST dart-6.10.1.tar.gz 15867405 BLAKE2B 64c42ce1d808a88df53f4292df30c0bc58b52f864342ac0b353ad0496d41bd4986ad231cb08869058a16591350acf0fc0c12ae15d574d919c1c27f102028f608 SHA512 8abbf883628442ed5166e436349de8caaaf72a0ecfa88e75b986a550d617bd9b5df8ff32e32395e941ba12b7ad359be15b2ab2f566d99aa6c603bd0ebade1df0
25
26 diff --git a/sci-libs/dart/dart-6.10.1.ebuild b/sci-libs/dart/dart-6.10.1.ebuild
27 new file mode 100644
28 index 000000000..8a66abbff
29 --- /dev/null
30 +++ b/sci-libs/dart/dart-6.10.1.ebuild
31 @@ -0,0 +1,82 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7,8,9} )
38 +
39 +inherit cmake python-single-r1
40 +
41 +DESCRIPTION="Dynamic Animation and Robotics Toolkit"
42 +HOMEPAGE="https://dartsim.github.io"
43 +SRC_URI="https://github.com/dartsim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="bullet examples extras glut ipopt +nlopt ode openscenegraph python tests tutorials urdfdom"
49 +#TODO: pagmo
50 +
51 +REQUIRED_USE="
52 + python? ( ${PYTHON_REQUIRED_USE} )
53 +
54 + || ( ipopt nlopt )
55 +"
56 +
57 +RDEPEND="
58 + app-arch/lz4
59 + >=dev-cpp/eigen-3.0.5
60 + dev-libs/boost
61 + dev-libs/tinyxml
62 + dev-libs/tinyxml2
63 + >=sci-libs/libccd-2.0
64 + >=media-libs/assimp-3.0.0
65 + >=sci-libs/fcl-0.2.9
66 + sci-libs/flann
67 + sci-libs/octomap
68 + virtual/opengl
69 + x11-libs/libXi
70 + x11-libs/libXmu
71 +
72 + bullet? ( sci-physics/bullet )
73 + examples? ( dev-games/openscenegraph )
74 + glut? ( media-libs/freeglut )
75 + ipopt? ( >=sci-libs/ipopt-3.11.9 )
76 + nlopt? ( >=sci-libs/nlopt-2.4.1 )
77 + python? ( ${PYTHON_DEPS} )
78 + ode? ( dev-games/ode )
79 + openscenegraph? ( dev-games/openscenegraph )
80 + urdfdom? ( dev-libs/urdfdom )
81 +"
82 +DEPEND="
83 + ${RDEPEND}
84 + urdfdom? ( dev-libs/urdfdom_headers )
85 +"
86 +
87 +pkg_setup() {
88 + use python && python-single-r1_pkg_setup
89 +}
90 +
91 +src_configure() {
92 + local mycmakeargs=(
93 + -DDART_VERBOSE=ON
94 +
95 + -DDART_BUILD_DARTPY=$(usex python)
96 + -DDART_BUILD_EXTRAS=$(usex extras)
97 + )
98 + cmake_src_configure
99 +}
100 +
101 +src_compile() {
102 + cmake_src_compile
103 +# use examples && emake examples
104 +# use tests && emake tests
105 +# use tutorials && emake tutorials
106 +}
107 +
108 +src_install() {
109 + cmake_src_install
110 + #TODO: python examples tests tutorials
111 + mv "${ED}/usr/share/doc/dart" "${ED}/usr/share/doc/${P}" || die
112 + docompress -x "/usr/share/doc/${P}"
113 +}
114
115 diff --git a/sci-libs/dart/metadata.xml b/sci-libs/dart/metadata.xml
116 new file mode 100644
117 index 000000000..486eef082
118 --- /dev/null
119 +++ b/sci-libs/dart/metadata.xml
120 @@ -0,0 +1,24 @@
121 +<?xml version="1.0" encoding="UTF-8"?>
122 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
123 +<pkgmetadata>
124 + <maintainer type="person">
125 + <email>lssndrbarbieri@×××××.com</email>
126 + <name>Alessandro Barbieri</name>
127 + </maintainer>
128 + <upstream>
129 + <bugs-to>https://github.com/dartsim/dart/issues</bugs-to>
130 + <remote-id type="github">dartsim/dart</remote-id>
131 + </upstream>
132 + <use>
133 + <flag name="bullet">Bullet Collision Detector Support</flag>
134 + <flag name="examples">Build the examples</flag>
135 + <flag name="extras">Build the experimental projects that are derived from the core DART project</flag>
136 + <flag name="ipopt">IPopt Optimization Support</flag>
137 + <flag name="nlopt">NLopt Optimization Support</flag>
138 + <flag name="ode">ODE Collision Detector Support</flag>
139 + <flag name="openscenegraph">OpenSceneGraph GUI and examples</flag>
140 + <flag name="tests">Build the tests</flag>
141 + <flag name="tutorials">Build the tutorials</flag>
142 + <flag name="urdfdom">URDF parser</flag>
143 + </use>
144 +</pkgmetadata>