From 93f514a6ca9a864fd8dc5be791498fc4f0076fcc Mon Sep 17 00:00:00 2001 From: Lukas Bulwahn Date: Sun, 13 Oct 2013 05:46:30 +0200 Subject: [PATCH] geometric-shapes: initial commit --- ...0001-check-for-CATKIN_ENABLE_TESTING.patch | 43 +++++++++++++++++++ .../geometric-shapes_0.3.5.bb | 16 +++++++ 2 files changed, 59 insertions(+) create mode 100644 recipes-ros/geometric-shapes/geometric-shapes/0001-check-for-CATKIN_ENABLE_TESTING.patch create mode 100644 recipes-ros/geometric-shapes/geometric-shapes_0.3.5.bb diff --git a/recipes-ros/geometric-shapes/geometric-shapes/0001-check-for-CATKIN_ENABLE_TESTING.patch b/recipes-ros/geometric-shapes/geometric-shapes/0001-check-for-CATKIN_ENABLE_TESTING.patch new file mode 100644 index 0000000..1830d6a --- /dev/null +++ b/recipes-ros/geometric-shapes/geometric-shapes/0001-check-for-CATKIN_ENABLE_TESTING.patch @@ -0,0 +1,43 @@ +From 597828ebc85f552fd38537664cbe72c1c775049b Mon Sep 17 00:00:00 2001 +From: Lukas Bulwahn +Date: Sun, 13 Oct 2013 05:41:53 +0200 +Subject: [PATCH] check for CATKIN_ENABLE_TESTING + +--- + CMakeLists.txt | 6 ++++-- + package.xml | 2 +- + 2 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4b41961..821f929 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -64,8 +64,10 @@ add_library(${PROJECT_NAME} + target_link_libraries(${PROJECT_NAME} ${ASSIMP_LIBRARIES} ${QHULL_LIBRARIES} ${catkin_LIBRARIES} ${Boost_LIBRARIES}) + + +-# Unit tests +-add_subdirectory(test) ++if(CATKIN_ENABLE_TESTING) ++ # Unit tests ++ add_subdirectory(test) ++endif() + + install(TARGETS ${PROJECT_NAME} + ARCHIVE DESTINATION lib +diff --git a/package.xml b/package.xml +index 4001019..4dbd6d1 100644 +--- a/package.xml ++++ b/package.xml +@@ -8,7 +8,7 @@ + BSD + http://ros.org/wiki/geometric_shapes + +- catkin ++ catkin + + boost + shape_msgs +-- +1.8.1.2 + diff --git a/recipes-ros/geometric-shapes/geometric-shapes_0.3.5.bb b/recipes-ros/geometric-shapes/geometric-shapes_0.3.5.bb new file mode 100644 index 0000000..4c3f51f --- /dev/null +++ b/recipes-ros/geometric-shapes/geometric-shapes_0.3.5.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "This package contains generic definitions of geometric shapes and bodies." +SECTION = "devel" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://package.xml;beginline=8;endline=8;md5=5ee5b8b046ae48ad94a2037ca953a67b" + +DEPENDS = "boost shape-msgs shape-tools octomap assimp libeigen qhull console-bridge random-numbers eigen-stl-containers resource-retriever" + +SRC_URI = "https://github.com/ros-planning/${ROS_SPN}/archive/${PV}.tar.gz;downloadfilename=${ROS_SP}.tar.gz" +SRC_URI[md5sum] = "7b7b803890baf1a5f27264a2906e3d9c" +SRC_URI[sha256sum] = "a26443007e39c7c6355c83d703df04969e8b60b7e44d851f44df026e168243c7" + +SRC_URI += "file://0001-check-for-CATKIN_ENABLE_TESTING.patch;striplevel=1" + +S = "${WORKDIR}/${ROS_SP}" + +inherit catkin