diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 14 insertions, 13 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Tue Dec 19 18:26:14 UTC 2017 +# Thu Dec 21 22:29:53 UTC 2017 pkgbase = ros-ardent-ament-cmake-nose pkgdesc = ROS - The ability to add nose-based tests in the ament buildsystem in CMake. pkgver = 0.4.0 @@ -9,7 +9,9 @@ pkgbase = ros-ardent-ament-cmake-nose license = Apache License 2.0 makedepends = cmake makedepends = ros-build-tools - makedepends = ros-ardent-ament-cmake-core + depends = ros-ardent-ament-cmake-core + depends = ros-ardent-ament-cmake-test + depends = python-nose source = ros-ardent-ament-cmake-nose-0.4.0-0.tar.gz::https://github.com/ros2-gbp/ament_cmake-release/archive/release/ardent/ament_cmake_nose/0.4.0-0.tar.gz sha256sums = 1c1f65fdf3428b7d74158a969bd81c414beaa35f3ce7044312f6963e1e3a764b @@ -10,12 +10,14 @@ arch=('any') pkgrel=1 license=('Apache License 2.0') -ros_makedepends=(ros-ardent-ament-cmake-core) +ros_makedepends=() makedepends=('cmake' 'ros-build-tools' ${ros_makedepends[@]}) -ros_depends=() -depends=(${ros_depends[@]}) +ros_depends=(ros-ardent-ament-cmake-core + ros-ardent-ament-cmake-test) +depends=(${ros_depends[@]} + python-nose) # Git version (e.g. for debugging) # _tag=release/ardent/ament_cmake_nose/${pkgver}-${_pkgver_patch} @@ -40,17 +42,14 @@ build() { # Fix Python2/Python3 conflicts /usr/share/ros-build-tools/fix-python-scripts.sh -v 3 "${srcdir}/${_dir}" + export PYTHONPATH=/opt/ros/ardent/lib/python3.6/site-packages + export AMENT_PREFIX_PATH=/opt/ros/ardent + # Build project cmake "${srcdir}/${_dir}" \ -DCMAKE_BUILD_TYPE=Release \ - -DCATKIN_BUILD_BINARY_PACKAGE=ON \ - -DCMAKE_INSTALL_PREFIX=/opt/ros/ardent \ - -DPYTHON_EXECUTABLE=/usr/bin/python3 \ - -DPYTHON_INCLUDE_DIR=/usr/include/python3.5m \ - -DPYTHON_LIBRARY=/usr/lib/libpython3.5m.so \ - -DPYTHON_BASENAME=.cpython-35m \ - -DSETUPTOOLS_DEB_LAYOUT=OFF \ - -DCATKIN_ENABLE_TESTING=OFF + -DBUILD_TESTING=Off \ + -DCMAKE_INSTALL_PREFIX=/opt/ros/ardent make } |