commit:     60ac0baeb0d8e083e1f44af6e3f175ff5ad38385
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 28 12:53:14 2018 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sun Jan 28 12:54:34 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60ac0bae

dev-ros/gazebo_ros: backport upstream fixes to build with gazebo 9

Package-Manager: Portage-2.3.20, Repoman-2.3.6

 dev-ros/gazebo_ros/Manifest                |  1 +
 dev-ros/gazebo_ros/gazebo_ros-2.7.3.ebuild | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-ros/gazebo_ros/Manifest b/dev-ros/gazebo_ros/Manifest
index a0d2a406e41..607f672d3bf 100644
--- a/dev-ros/gazebo_ros/Manifest
+++ b/dev-ros/gazebo_ros/Manifest
@@ -1,2 +1,3 @@
+DIST gazebo-ros-2.7.3-patches-1.tar.bz2 19057 BLAKE2B 
ee8040e7f25d734d31c32963d47601b908b153a55294e736e49d1a10ea14a9ed74133e547eb1abf5d50ee70814f6b3476433e835cc604798057cb9d5a698a3aa
 SHA512 
12ec281277f83c7a267fc111ec029b732435f50f320c74255eeb8e8ea7b38aa8771d08c9815d6525b22b7f2fe706aae087a33591082cddbcf7a46742a35ae0fb
 DIST gazebo_ros_pkgs-2.6.2.tar.gz 1830633 BLAKE2B 
8365084619d57d8427753e33d4a3128162c44b10552166c7070eaabde3f806cee9981c60b30b18b6cbe80b83e2871b0100b51329a1a6bd9747320245f21ec1a4
 SHA512 
f932eebbc88f4922c0275625d50ad5723446744cbf4a59138437d9bdd75a9b5232fdf8df2012460313eb2224d4287daebc3a28181ab3f1b81e67d70a8b8ed5d3
 DIST gazebo_ros_pkgs-2.7.3.tar.gz 1836260 BLAKE2B 
7867bec1461769923ba36ea2e56b21d85cf1db254cd50a028af5953fe1b5373015b68785a90d242e245d12a2da2c7a8ff26db66c0c466e6a6e029fbb74340a06
 SHA512 
66590a248f0813ab0f2a80df234f9dd8d448c500726b62d3fc74397d3a618d6fae994c3e463bb0c4a8892cef35ba1729229c471f3d21d4b3a2091d5ad74cc33b

diff --git a/dev-ros/gazebo_ros/gazebo_ros-2.7.3.ebuild 
b/dev-ros/gazebo_ros/gazebo_ros-2.7.3.ebuild
index ca217b08535..19167950505 100644
--- a/dev-ros/gazebo_ros/gazebo_ros-2.7.3.ebuild
+++ b/dev-ros/gazebo_ros/gazebo_ros-2.7.3.ebuild
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python2_7 )
 CATKIN_HAS_MESSAGES=yes
 ROS_SUBDIR=${PN}
 
-inherit ros-catkin
+inherit ros-catkin eutils
 
 DESCRIPTION="ROS plugins that offer message and service publishers for 
interfacing with gazebo"
 LICENSE="Apache-2.0"
@@ -34,3 +34,12 @@ RDEPEND="
        
dev-ros/std_srvs[${CATKIN_MESSAGES_CXX_USEDEP},${CATKIN_MESSAGES_PYTHON_USEDEP}]
 "
 DEPEND="${RDEPEND}"
+SRC_URI="${SRC_URI}
+       mirror://gentoo/gazebo-ros-2.7.3-patches-1.tar.bz2"
+
+src_prepare() {
+       pushd "${WORKDIR}/gazebo_ros_pkgs-${PV}" || die
+       EPATCH_FORCE=yes EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
+       popd || die
+       ros-catkin_src_prepare
+}

Reply via email to