Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gazebo/, sci-electronics/gazebo/files/
Date: Thu, 23 Jun 2022 11:10:41
Message-Id: 1655982633.943dc3ebe4f79074fe8d86235572cb42e80aa801.aballier@gentoo
1 commit: 943dc3ebe4f79074fe8d86235572cb42e80aa801
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 23 11:09:53 2022 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 23 11:10:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=943dc3eb
7
8 sci-electronics/gazebo: bump to 11.11.0
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 sci-electronics/gazebo/Manifest | 1 +
14 sci-electronics/gazebo/files/gv.patch | 13 +++++
15 sci-electronics/gazebo/gazebo-11.11.0.ebuild | 84 ++++++++++++++++++++++++++++
16 3 files changed, 98 insertions(+)
17
18 diff --git a/sci-electronics/gazebo/Manifest b/sci-electronics/gazebo/Manifest
19 index 20ee674fb53d..c0eac4fab473 100644
20 --- a/sci-electronics/gazebo/Manifest
21 +++ b/sci-electronics/gazebo/Manifest
22 @@ -1 +1,2 @@
23 DIST gazebo-11.10.2.tar.bz2 56496495 BLAKE2B 09bf370531214e9567d961445797cb50c9e5a81a405720c580d13e6b33029a63dd2cd9930dcbd239c1bf9091a9d5b092bfdef77b0b3524d281a10549e22e7c9a SHA512 8900c483f63cedb8543cfe718b336e3ec372fc0dc3d47ac9cd5378987fae634f16911d3c91fdf70add93b4a090e92f3558beec6c1277e1ba109652dcaf049ac2
24 +DIST gazebo-11.11.0.tar.bz2 56505651 BLAKE2B c3f63a1ee128fd86be914ba9ad7567d0adf337d82772184bbc362373083ad2b79f1172998182a70faf4127fe6f5996d6946e79927c40a384ac5e0eef3b7799c9 SHA512 f9062a54ee4e252219a246124ad0a22570e12f34f7bced8910a14b96541b16337efbba0f824b0ba70adf91d41acfc407eb0cdb19bbd7272151ef9723acc48882
25
26 diff --git a/sci-electronics/gazebo/files/gv.patch b/sci-electronics/gazebo/files/gv.patch
27 new file mode 100644
28 index 000000000000..7afa786f4774
29 --- /dev/null
30 +++ b/sci-electronics/gazebo/files/gv.patch
31 @@ -0,0 +1,13 @@
32 +Index: gazebo-11.11.0/gazebo/gui/qgv/private/QGVCore.h
33 +===================================================================
34 +--- gazebo-11.11.0.orig/gazebo/gui/qgv/private/QGVCore.h
35 ++++ gazebo-11.11.0/gazebo/gui/qgv/private/QGVCore.h
36 +@@ -96,7 +96,7 @@ class QGVCore
37 + Agiodisc_t memIoDisc;
38 +
39 + memIoDisc.afread = memiofread;
40 +- memIoDisc.putstr = AgIoDisc.putstr;
41 ++ memIoDisc.printf = AgIoDisc.printf;
42 + memIoDisc.flush = AgIoDisc.flush;
43 + rdr.data = cp;
44 + rdr.len = strlen(cp);
45
46 diff --git a/sci-electronics/gazebo/gazebo-11.11.0.ebuild b/sci-electronics/gazebo/gazebo-11.11.0.ebuild
47 new file mode 100644
48 index 000000000000..27daf4976fd8
49 --- /dev/null
50 +++ b/sci-electronics/gazebo/gazebo-11.11.0.ebuild
51 @@ -0,0 +1,84 @@
52 +# Copyright 1999-2022 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +inherit cmake flag-o-matic
58 +
59 +DESCRIPTION="A 3D multiple robot simulator with dynamics"
60 +HOMEPAGE="http://gazebosim.org/"
61 +SRC_URI="https://osrf-distributions.s3.amazonaws.com/gazebo/releases/${P}.tar.bz2"
62 +
63 +LICENSE="Apache-2.0"
64 +# Subslot = major version = soname of libs
65 +SLOT="0/11"
66 +KEYWORDS="~amd64"
67 +IUSE="cpu_flags_x86_sse2 test"
68 +RESTRICT="!test? ( test )"
69 +
70 +RDEPEND="
71 + >=dev-libs/protobuf-2:=
72 + virtual/opengl
73 + media-libs/openal
74 + net-misc/curl
75 + dev-libs/tinyxml
76 + >=dev-libs/tinyxml2-6:=
77 + dev-libs/libtar
78 + dev-cpp/tbb:=
79 + >=dev-games/ogre-1.7.4:=[freeimage]
80 + <dev-games/ogre-1.10
81 + >=media-libs/freeimage-3.15.4[png]
82 + sci-libs/libccd
83 + >=media-video/ffmpeg-2.6:0=
84 + sci-libs/gts
85 + >=sci-physics/bullet-2.82:=
86 + >=dev-libs/sdformat-9.8:=
87 + dev-qt/qtwidgets:5
88 + dev-qt/qtcore:5
89 + dev-qt/qtopengl:5
90 + dev-libs/boost:=[threads(+)]
91 + sci-libs/gdal:=
92 + virtual/libusb:1
93 + dev-libs/libspnav
94 + media-libs/freeimage
95 + sci-libs/hdf5:=[cxx]
96 + sys-apps/util-linux
97 + >=media-gfx/graphviz-4
98 + net-libs/ignition-msgs:5=
99 + sci-libs/ignition-math:6=
100 + net-libs/ignition-transport:8=
101 + sci-libs/ignition-common:3=
102 + sci-libs/ignition-fuel-tools:4=
103 + x11-libs/qwt:6=[qt5(+)]
104 +"
105 +DEPEND="${RDEPEND}
106 + dev-qt/qttest:5
107 + x11-apps/mesa-progs
108 + test? ( dev-libs/libxslt )
109 +"
110 +BDEPEND="
111 + || ( app-text/ronn-ng app-text/ronn )
112 + app-arch/gzip
113 + virtual/pkgconfig
114 +"
115 +CMAKE_BUILD_TYPE=RelWithDebInfo
116 +PATCHES=(
117 + "${FILESDIR}/qwt2.patch"
118 + "${FILESDIR}/cmake.patch"
119 + "${FILESDIR}/gv.patch"
120 +)
121 +
122 +src_configure() {
123 + # find OGRE properly
124 + sed -e "s#lib/OGRE#$(get_libdir)/OGRE#" -i cmake/gazebo-config.cmake.in || die
125 +
126 + local mycmakeargs=(
127 + "-DUSE_UPSTREAM_CFLAGS=OFF"
128 + "-DSSE2_FOUND=$(usex cpu_flags_x86_sse2 TRUE FALSE)"
129 + "-DUSE_HOST_CFLAGS=FALSE"
130 + "-DBUILD_TESTING=$(usex test TRUE FALSE)"
131 + "-DENABLE_SCREEN_TESTS=FALSE"
132 + "-DUSE_EXTERNAL_TINYXML2=TRUE"
133 + )
134 + cmake_src_configure
135 +}