From: "Haelwenn Monnier" <contact@hacktivis.me>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-libs/dart/files/, sci-libs/dart/
Date: Sat, 23 Apr 2022 17:49:16 +0000 (UTC) [thread overview]
Message-ID: <1650678775.8983c9529f931d9e61c41e5d863b881d7cf95ac3.lanodan@gentoo> (raw)
commit: 8983c9529f931d9e61c41e5d863b881d7cf95ac3
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Apr 23 00:52:47 2022 +0000
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Sat Apr 23 01:52:55 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8983c952
sci-libs/dart: fix examples/tutorials installation
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
.../{dart-6.12.1.ebuild => dart-6.12.1-r1.ebuild} | 36 ++++++++++++++++------
.../files/dart-6.12.1-no-deprecated-examples.patch | 9 ++++++
2 files changed, 35 insertions(+), 10 deletions(-)
diff --git a/sci-libs/dart/dart-6.12.1.ebuild b/sci-libs/dart/dart-6.12.1-r1.ebuild
similarity index 83%
rename from sci-libs/dart/dart-6.12.1.ebuild
rename to sci-libs/dart/dart-6.12.1-r1.ebuild
index 9186f3021..58aa8a47e 100644
--- a/sci-libs/dart/dart-6.12.1.ebuild
+++ b/sci-libs/dart/dart-6.12.1-r1.ebuild
@@ -5,6 +5,8 @@ EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
+CMAKE_BUILD_TYPE="Release"
+
inherit cmake python-single-r1
DESCRIPTION="Dynamic Animation and Robotics Toolkit"
@@ -45,7 +47,7 @@ RDEPEND="
glut? ( media-libs/freeglut )
gui? (
dev-games/openscenegraph
- media-libs/imgui:=[opengl(-)]
+ media-libs/imgui:=[glut(-)?,opengl(-)]
media-libs/lodepng:=
virtual/opengl
x11-libs/libXi
@@ -67,10 +69,7 @@ DEPEND="
dev-cpp/gtest
dev-libs/urdfdom_headers
)
- test? (
- dev-cpp/gtest
- python? ( $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_USEDEP}]') )
- )
+ test? ( dev-cpp/gtest )
urdfdom? ( dev-libs/urdfdom_headers )
"
BDEPEND="
@@ -81,6 +80,7 @@ BDEPEND="
RESTRICT="!test? ( test )"
PATCHES=(
+ "${FILESDIR}/${P}-no-deprecated-examples.patch"
"${FILESDIR}/${PN}-respect-ldflags.patch"
"${FILESDIR}/${P}-respect-cflags.patch"
"${FILESDIR}/${P}-use-system-gtest.patch"
@@ -88,6 +88,7 @@ PATCHES=(
)
REQUIRED_USE="
examples? ( gui )
+ gui? ( glut )
python? (
${PYTHON_REQUIRED_USE}
gui
@@ -101,9 +102,11 @@ pkg_setup() {
}
src_prepare() {
- # delete bundled gtest
+ # delete bundled libs
rm -r unittests/gtest || die
rm -r dart/external/{imgui,lodepng} || die
+ # delete deprecated examples
+ rm -r examples/deprecated_examples || die
dos2unix unittests/CMakeLists.txt || die
cmake_src_prepare
}
@@ -135,9 +138,10 @@ src_configure() {
use cpu_flags_arm_iwmmxt2 && simd=ON
use cpu_flags_arm_neon && simd=ON
+ export ODE_DIR="${EPREFIX}/usr"
+
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
- -DCMAKE_BUILD_TYPE=Release
-DDART_CODECOV=OFF
-DDART_VERBOSE=ON
-DDART_TREAT_WARNINGS_AS_ERRORS=OFF
@@ -152,14 +156,26 @@ src_configure() {
src_compile() {
cmake_src_compile
use examples && cmake_build examples
- use python && cmake_build dartpy # no work to do ...
+ use python && cmake_build dartpy
use test && cmake_build tests
use tutorials && cmake_build tutorials
}
src_install() {
cmake_src_install
- #TODO: python examples tests tutorials
- mv "${ED}/usr/share/doc/dart" "${ED}/usr/share/doc/${PF}" || die
+ #TODO: python (?)
+ if ! use examples ; then
+ rm -rf "${ED}/usr/share/doc/dart/examples" || die
+ fi
+ if ! use tutorials ; then
+ rm -rf "${ED}/usr/share/doc/dart/tutorials" || die
+ fi
+ if use examples || use tutorials ; then
+ exeinto "/usr/libexec/${PN}"
+ doexe "${BUILD_DIR}"/bin/*
+ fi
+# use python && cmake_build install-dartpy
+ mv "${ED}/usr/share/doc/dart/data" "${ED}/usr/share/${PN}" || die
+ mv "${ED}"/usr/share/doc/dart/* "${ED}/usr/share/doc/${PF}" || die
docompress -x "/usr/share/doc/${PF}"
}
diff --git a/sci-libs/dart/files/dart-6.12.1-no-deprecated-examples.patch b/sci-libs/dart/files/dart-6.12.1-no-deprecated-examples.patch
new file mode 100644
index 000000000..a16045d94
--- /dev/null
+++ b/sci-libs/dart/files/dart-6.12.1-no-deprecated-examples.patch
@@ -0,0 +1,9 @@
+--- a/examples/CMakeLists.txt
++++ b/examples/CMakeLists.txt
+@@ -27,6 +27,3 @@
+
+ # MJCF model based examples
+ add_subdirectory(fetch)
+-
+-# Deprecated examples
+-add_subdirectory(deprecated_examples)
next reply other threads:[~2022-04-23 17:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-23 17:49 Haelwenn Monnier [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-03-29 0:22 [gentoo-commits] repo/proj/guru:master commit in: sci-libs/dart/files/, sci-libs/dart/ Ronny Gutbrod
2021-09-08 15:20 Arthur Zamarin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1650678775.8983c9529f931d9e61c41e5d863b881d7cf95ac3.lanodan@gentoo \
--to=contact@hacktivis.me \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox