dev-ros/xmlrpcpp: Install headers in a prefixed directory.
authorAlexis Ballier <aballier@gentoo.org>
Mon, 2 Nov 2015 12:00:40 +0000 (13:00 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 2 Nov 2015 12:00:47 +0000 (13:00 +0100)
Fixes collisions with heimdal, bug #561208.

Package-Manager: portage-2.2.23

dev-ros/xmlrpcpp/files/headers.patch [new file with mode: 0644]
dev-ros/xmlrpcpp/xmlrpcpp-1.11.15-r1.ebuild [moved from dev-ros/xmlrpcpp/xmlrpcpp-1.11.15.ebuild with 54% similarity]
dev-ros/xmlrpcpp/xmlrpcpp-9999.ebuild

diff --git a/dev-ros/xmlrpcpp/files/headers.patch b/dev-ros/xmlrpcpp/files/headers.patch
new file mode 100644 (file)
index 0000000..ed0cea6
--- /dev/null
@@ -0,0 +1,15 @@
+Index: ros_comm-1.11.15/utilities/xmlrpcpp/CMakeLists.txt
+===================================================================
+--- ros_comm-1.11.15.orig/utilities/xmlrpcpp/CMakeLists.txt
++++ ros_comm-1.11.15/utilities/xmlrpcpp/CMakeLists.txt
+@@ -30,9 +30,8 @@ if(WIN32)
+   target_link_libraries(xmlrpcpp ws2_32)
+ endif()
+ 
+-# FIXME the headers should be in a package-specific subfolder but can not be for backward compatibility
+ install(DIRECTORY include/
+-  DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}
++  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
+   FILES_MATCHING PATTERN "*.h")
+ 
+ install(TARGETS xmlrpcpp
similarity index 54%
rename from dev-ros/xmlrpcpp/xmlrpcpp-1.11.15.ebuild
rename to dev-ros/xmlrpcpp/xmlrpcpp-1.11.15-r1.ebuild
index a0ae0fd21c5135c6ae41be54af8daf35d9d7bc1c..b4772f1846dcb2af813b4d0777260e6b339ffebe 100644 (file)
@@ -17,3 +17,11 @@ IUSE=""
 
 RDEPEND="dev-ros/cpp_common"
 DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/headers.patch" )
+
+src_configure() {
+       ros-catkin_src_configure
+       # Hack so that proper -I are added
+       sed -e "s#_include_dirs \"include\"#_include_dirs \"include;${SYSROOT:-${EPREFIX}}/usr/include/xmlrpcpp\"#" \
+               -i "${BUILD_DIR}/catkin_generated/installspace/xmlrpcppConfig.cmake" || die
+}
index a0ae0fd21c5135c6ae41be54af8daf35d9d7bc1c..b4772f1846dcb2af813b4d0777260e6b339ffebe 100644 (file)
@@ -17,3 +17,11 @@ IUSE=""
 
 RDEPEND="dev-ros/cpp_common"
 DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/headers.patch" )
+
+src_configure() {
+       ros-catkin_src_configure
+       # Hack so that proper -I are added
+       sed -e "s#_include_dirs \"include\"#_include_dirs \"include;${SYSROOT:-${EPREFIX}}/usr/include/xmlrpcpp\"#" \
+               -i "${BUILD_DIR}/catkin_generated/installspace/xmlrpcppConfig.cmake" || die
+}