[ros-gencpp] 01/01: add python3 support

Johannes Schauer josch at moszumanska.debian.org
Mon Oct 26 13:55:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

josch pushed a commit to branch python3
in repository ros-gencpp.

commit d8221db094dffa168ede03aadb5cbed5b711e47c
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date:   Sun Oct 18 08:31:27 2015 +0200

    add python3 support
---
 debian/control                 |  8 ++++----
 debian/python-gencpp.install   |  3 ---
 debian/python-gencpp.pyinstall |  1 -
 debian/python3-gencpp.install  |  3 +++
 debian/rules                   | 28 +++-------------------------
 5 files changed, 10 insertions(+), 33 deletions(-)

diff --git a/debian/control b/debian/control
index 10ae5ef..eb60282 100644
--- a/debian/control
+++ b/debian/control
@@ -5,16 +5,16 @@ Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.
 Uploaders: Thomas Moulard <thomas.moulard at gmail.com>,
            Jochen Sprickerhof <debian at jochen.sprickerhof.de>,
            Leopold Palomo-Avellaneda <leo at alaxarxa.net>
-Build-Depends: debhelper (>= 9), cmake, catkin, python-genmsg, python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3)
+Build-Depends: debhelper (>= 9), cmake, catkin, python3-genmsg, python3-setuptools (>= 0.6b3), python3-all (>= 2.6.6-3)
 Standards-Version: 3.9.6
 Homepage: http://wiki.ros.org/gencpp
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/ros/ros-gencpp.git
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/ros/ros-gencpp.git
-X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.4
 
-Package: python-gencpp
+Package: python3-gencpp
 Architecture: all
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Description: C++ ROS message and service generators
  Python program that generate ROS messages and service code
  for C++. It help you from normal plain files generate the code
diff --git a/debian/python-gencpp.install b/debian/python-gencpp.install
deleted file mode 100644
index d505a1c..0000000
--- a/debian/python-gencpp.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/share/gencpp
-usr/lib/gencpp
-usr/etc/ros /etc
diff --git a/debian/python-gencpp.pyinstall b/debian/python-gencpp.pyinstall
deleted file mode 100644
index 71884ef..0000000
--- a/debian/python-gencpp.pyinstall
+++ /dev/null
@@ -1 +0,0 @@
-src/gencpp/*.py gencpp
diff --git a/debian/python3-gencpp.install b/debian/python3-gencpp.install
new file mode 100644
index 0000000..ef78dc7
--- /dev/null
+++ b/debian/python3-gencpp.install
@@ -0,0 +1,3 @@
+usr/share
+usr/lib
+usr/etc/ros /etc
diff --git a/debian/rules b/debian/rules
index 798a4e4..34bbe4e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,31 +1,9 @@
 #!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#DH_VERBOSE = 1
-
-# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/default.mk
-
-# see FEATURE AREAS in dpkg-buildflags(1)
-#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-
-# see ENVIRONMENT in dpkg-buildflags(1)
-# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-# package maintainers to append LDFLAGS
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
-
-# main packaging script based on dh7 syntax
 %:
-	dh  $@ --parallel --buildsystem=cmake --with python2
+	dh  $@ --parallel --buildsystem=cmake --with python3
 
-# debmake generated override targets
-# This is example for Cmake (See http://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-#	dh_auto_configure -- \
-#	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+override_dh_auto_configure:
+	dh_auto_configure -- -DPython_ADDITIONAL_VERSIONS=3.4
 
 override_dh_auto_install:
 	dh_auto_install --destdir=debian/tmp

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/ros-gencpp.git



More information about the debian-science-commits mailing list