Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-libs/dart/files/, sci-libs/dart/
Date: Wed, 08 Sep 2021 15:21:09
Message-Id: 1631011670.bc0713ed1c017d0fd46ee9ae30a755c0852e65db.arthurzam@gentoo
1 commit: bc0713ed1c017d0fd46ee9ae30a755c0852e65db
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue Sep 7 10:44:49 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 7 10:47:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc0713ed
7
8 sci-libs/dart: respect LDFLAGS
9
10 Closes: https://bugs.gentoo.org/791418
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 sci-libs/dart/dart-6.10.1-r2.ebuild | 13 +++++++------
14 sci-libs/dart/files/dart-respect-ldflags.patch | 11 +++++++++++
15 sci-libs/dart/metadata.xml | 1 +
16 3 files changed, 19 insertions(+), 6 deletions(-)
17
18 diff --git a/sci-libs/dart/dart-6.10.1-r2.ebuild b/sci-libs/dart/dart-6.10.1-r2.ebuild
19 index a0947f03b..d475a1738 100644
20 --- a/sci-libs/dart/dart-6.10.1-r2.ebuild
21 +++ b/sci-libs/dart/dart-6.10.1-r2.ebuild
22 @@ -14,10 +14,12 @@ SRC_URI="https://github.com/dartsim/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
23 LICENSE="BSD-2"
24 SLOT="0"
25 KEYWORDS="~amd64"
26 -IUSE="bullet doc examples extras glut +ipopt +nlopt ode openscenegraph python test tutorials urdfdom"
27 +IUSE="bullet doc examples extras glut +ipopt +nlopt ode openscenegraph python test tests tutorials urdfdom"
28 #TODO: pagmo
29 +#TODO: unbundle imgui
30 RESTRICT="!test? ( test )"
31
32 +PATCHES=( "${FILESDIR}/${PN}-respect-ldflags.patch" )
33 REQUIRED_USE="
34 python? ( ${PYTHON_REQUIRED_USE} )
35
36 @@ -28,7 +30,6 @@ RDEPEND="
37 app-arch/lz4
38 >=dev-cpp/eigen-3.0.5
39 dev-libs/boost
40 - dev-libs/tinyxml
41 dev-libs/tinyxml2
42 >=sci-libs/libccd-2.0
43 >=media-libs/assimp-3.0.0
44 @@ -76,10 +77,10 @@ src_configure() {
45
46 src_compile() {
47 cmake_src_compile
48 - use examples && cmake_src_compile examples
49 -# use python && cmake_src_compile dartpy
50 -# use test && cmake_src_compile tests
51 -# use tutorials && cmake_src_compile tutorials
52 + use examples && cmake_build examples
53 + use python && cmake_build dartpy # no work to do ...
54 + use test && cmake_build tests
55 + use tutorials && cmake_build tutorials
56 }
57
58 src_install() {
59
60 diff --git a/sci-libs/dart/files/dart-respect-ldflags.patch b/sci-libs/dart/files/dart-respect-ldflags.patch
61 new file mode 100644
62 index 000000000..0fa4397cd
63 --- /dev/null
64 +++ b/sci-libs/dart/files/dart-respect-ldflags.patch
65 @@ -0,0 +1,11 @@
66 +--- a/CMakeLists.txt
67 ++++ b/CMakeLists.txt
68 +@@ -220,7 +220,7 @@
69 + endif()
70 + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_DEBUG}")
71 + set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_DEBUG} -pg")
72 +- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
73 ++ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
74 +
75 + # Enforce to colorize compilation output
76 + if(${DART_FORCE_COLORED_OUTPUT})
77
78 diff --git a/sci-libs/dart/metadata.xml b/sci-libs/dart/metadata.xml
79 index 98e526744..486eef082 100644
80 --- a/sci-libs/dart/metadata.xml
81 +++ b/sci-libs/dart/metadata.xml
82 @@ -17,6 +17,7 @@
83 <flag name="nlopt">NLopt Optimization Support</flag>
84 <flag name="ode">ODE Collision Detector Support</flag>
85 <flag name="openscenegraph">OpenSceneGraph GUI and examples</flag>
86 + <flag name="tests">Build the tests</flag>
87 <flag name="tutorials">Build the tutorials</flag>
88 <flag name="urdfdom">URDF parser</flag>
89 </use>