Skip to content

Commit

Permalink
Rebase from 'debian/melodic/soem'
Browse files Browse the repository at this point in the history
  • Loading branch information
mgruhler committed Aug 3, 2020
1 parent 0ce6e4a commit c10242f
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 154 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -2,6 +2,11 @@
Changelog for package soem
^^^^^^^^^^^^^^^^^^^^^^^^^^

1.4.1003 (2020-08-03)
---------------------
* fixes `#40 <https://github.com/mgruhler/soem/issues/40>`_: export include directories properly
* Contributors: Matthias Gruhler

1.4.1002 (2020-06-24)
---------------------
* Merge pull request `#39 <https://github.com/mgruhler/soem/issues/39>`_ from mgruhler/fix/warnings_as_errors_focal
Expand Down
1 change: 1 addition & 0 deletions cmake/soem-ros-extras.cmake.in
@@ -1 +1,2 @@
list(APPEND @PROJECT_NAME@_INCLUDE_DIRS "${@PROJECT_NAME@_PREFIX}/@CATKIN_GLOBAL_INCLUDE_DESTINATION@")
list(APPEND @PROJECT_NAME@_INCLUDE_DIRS "${@PROJECT_NAME@_PREFIX}/@CATKIN_GLOBAL_INCLUDE_DESTINATION@/soem")
124 changes: 0 additions & 124 deletions debian/changelog

This file was deleted.

7 changes: 7 additions & 0 deletions debian/changelog.em
@@ -0,0 +1,7 @@
@[for change_version, change_date, changelog, main_name, main_email in changelogs]@(Package) (@(change_version)@(DebianInc)@(Distribution)) @(Distribution); urgency=high

@(changelog)

-- @(main_name) <@(main_email)> @(change_date)

@[end for]
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

1 change: 1 addition & 0 deletions debian/compat.em
@@ -0,0 +1 @@
@(debhelper_version)
13 changes: 0 additions & 13 deletions debian/control

This file was deleted.

14 changes: 14 additions & 0 deletions debian/control.em
@@ -0,0 +1,14 @@
Source: @(Package)
Section: misc
Priority: optional
Maintainer: @(Maintainer)
Build-Depends: debhelper (>= @(debhelper_version).0.0), @(', '.join(BuildDepends))
Homepage: @(Homepage)
Standards-Version: 3.9.2

Package: @(Package)
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, @(', '.join(Depends))
@[if Conflicts]Conflicts: @(', '.join(Conflicts))@\n@[end if]@
@[if Replaces]Replaces: @(', '.join(Replaces))@\n@[end if]@
Description: @(Description)
1 change: 1 addition & 0 deletions debian/copyright.em
@@ -0,0 +1 @@
@(Copyright)
3 changes: 0 additions & 3 deletions debian/gbp.conf

This file was deleted.

3 changes: 3 additions & 0 deletions debian/gbp.conf.em
@@ -0,0 +1,3 @@
[git-buildpackage]
upstream-tag=@(release_tag)
upstream-tree=tag
20 changes: 10 additions & 10 deletions debian/rules → debian/rules.em
Expand Up @@ -13,49 +13,49 @@ export DH_VERBOSE=1
# https://code.ros.org/trac/ros/ticket/2977
# https://code.ros.org/trac/ros/ticket/3842
export LDFLAGS=
export PKG_CONFIG_PATH=/opt/ros/melodic/lib/pkgconfig
export PKG_CONFIG_PATH=@(InstallationPrefix)/lib/pkgconfig
# Explicitly enable -DNDEBUG, see:
# https://github.com/ros-infrastructure/bloom/issues/327
export DEB_CXXFLAGS_MAINT_APPEND=-DNDEBUG

%:
dh $@ -v --buildsystem=cmake
dh $@@ -v --buildsystem=cmake

override_dh_auto_configure:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_configure -- \
-DCATKIN_BUILD_BINARY_PACKAGE="1" \
-DCMAKE_INSTALL_PREFIX="/opt/ros/melodic" \
-DCMAKE_PREFIX_PATH="/opt/ros/melodic"
-DCMAKE_INSTALL_PREFIX="@(InstallationPrefix)" \
-DCMAKE_PREFIX_PATH="@(InstallationPrefix)"

override_dh_auto_build:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_build

override_dh_auto_test:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
echo -- Running tests. Even if one of them fails the build is not canceled.
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_test || true

override_dh_shlibdeps:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
dh_shlibdeps -l$(CURDIR)/debian/ros-melodic-soem//opt/ros/melodic/lib/
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_shlibdeps -l$(CURDIR)/debian/@(Package)/@(InstallationPrefix)/lib/

override_dh_auto_install:
# In case we're installing to a non-standard location, look for a setup.sh
# in the install tree that was dropped by catkin, and source it. It will
# set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/melodic/setup.sh" ]; then . "/opt/ros/melodic/setup.sh"; fi && \
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_install
1 change: 0 additions & 1 deletion debian/source/format

This file was deleted.

1 change: 1 addition & 0 deletions debian/source/format.em
@@ -0,0 +1 @@
3.0 (@(format))
3 changes: 2 additions & 1 deletion debian/source/options → debian/source/options.em
@@ -1,5 +1,6 @@
@[if format and format == 'quilt']@
# Automatically add upstream changes to the quilt overlay.
# http://manpages.ubuntu.com/manpages/trusty/man1/dpkg-source.1.html
# This supports reusing the orig.tar.gz for debian increments.
auto-commit

@[end if]
2 changes: 1 addition & 1 deletion package.xml
Expand Up @@ -19,7 +19,7 @@
The idea for this approach was taken from the cartographer_ros package at
https://github.com/ros2/cartographer_ros
-->
<version>1.4.1002</version>
<version>1.4.1003</version>
<description>
ROS wrapper for the Simple Open EtherCAT Master SOEM.
This is an updated version of the original SOEM wrapper released into ROS now including
Expand Down

0 comments on commit c10242f

Please sign in to comment.