[Python-modules-commits] [pythonmagick] 06/10: Use pybuild

Bastien ROUCARIES broucaries-guest at moszumanska.debian.org
Sun Oct 30 22:47:47 UTC 2016


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

broucaries-guest pushed a commit to branch master
in repository pythonmagick.

commit 63aaf7ac6c6069b7bbbc3b46a6134b9a420adae9
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Sun Oct 30 20:51:15 2016 +0100

    Use pybuild
---
 debian/control | 31 ++++++++++++++++++++++++++++++-
 debian/rules   | 35 +++++++++++++----------------------
 2 files changed, 43 insertions(+), 23 deletions(-)

diff --git a/debian/control b/debian/control
index 60cbf5c..1440e47 100644
--- a/debian/control
+++ b/debian/control
@@ -14,15 +14,44 @@ Build-Depends:
  libmagick++-dev (>= 8:6.8.6),
  libtool (>= 1.5),
  pkg-config,
+ python-all,
  python-all-dev (>= 2.5),
+ python-setuptools,
+ python3-all,
+ python3-all-dev,
+ python3-setuptools
 Standards-Version: 3.9.8
 Homepage: http://www.imagemagick.org
 XS-Python-Version: all
 
 Package: python-pythonmagick
 Architecture: any
-Provides: ${python:Provides}
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
 Description: Object-oriented Python interface to ImageMagick
  PythonMagick an interface to ImageMagick to give all the functionality
  of ImageMagick++ into Python.
+ .
+ ImageMagick is a software suite to create, edit, and compose bitmap images.
+ It can read, convert and write images in a variety of formats (over 100)
+ including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript,
+ SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale,
+ shear and transform images, adjust image colors, apply various special
+ effects, or draw text, lines, polygons, ellipses and Bézier curves.
+ All manipulations can be achieved through shell commands as well as through
+ an X11 graphical interface (display).
+
+Package: python3-pythonmagick
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
+Description: Object-oriented Python 3 interface to ImageMagick
+ PythonMagick an interface to ImageMagick to give all the functionality
+ of ImageMagick++ into Python 3.
+ .
+ ImageMagick is a software suite to create, edit, and compose bitmap images.
+ It can read, convert and write images in a variety of formats (over 100)
+ including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript,
+ SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale,
+ shear and transform images, adjust image colors, apply various special
+ effects, or draw text, lines, polygons, ellipses and Bézier curves.
+ All manipulations can be achieved through shell commands as well as through
+ an X11 graphical interface (display).
diff --git a/debian/rules b/debian/rules
index 0ac9507..e134629 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,29 +1,20 @@
 #!/usr/bin/make -f
 
-PYVERSIONS = $(shell pyversions -vr)
+export VERBOSE=1
 
-%:
-	dh $@ --with python2 --with autoreconf --parallel
-
-override_dh_auto_clean:
-	set -e && for pyver in $(PYVERSIONS); do \
-		PYTHON=python$$pyver dh_auto_clean -Bbuild/py$$pyver; \
-	done
+d=--buildsystem=autoconf --builddirectory="{build_dir}"
+export PYBUILD_NAME=pythonmagick
+export PYBUILD_SYSTEM=custom
+export PYBUILD_CLEAN_ARGS=dh_auto_clean $d; 
+export PYBUILD_CONFIGURE_ARGS=dh_auto_configure $d -- \
+	--disable-silent-rules --disable-static
+export PYBUILD_BUILD_ARGS=dh_auto_build $d
+export PYBUILD_INSTALL_ARGS=dh_auto_install $d --destdir="{destdir}"
+export PYBUILD_TEST_ARGS=dh_auto_test $d
 
-override_dh_auto_configure:
-	set -e && for pyver in $(PYVERSIONS); do \
-		mkdir -p build/py$$pyver; \
-		PYTHON=python$$pyver dh_auto_configure -Bbuild/py$$pyver -- \
-			--disable-silent-rules --disable-static; \
-	done
-
-override_dh_auto_build:
-	set -e && for pyver in $(PYVERSIONS); do \
-		PYTHON=python$$pyver dh_auto_build -Bbuild/py$$pyver; \
-	done
+%:
+	dh $@ --with python2,python3,autoreconf --buildsystem=pybuild --parallel
 
 override_dh_auto_install:
-	set -e && for pyver in $(PYVERSIONS); do \
-		PYTHON=python$$pyver dh_auto_install -Bbuild/py$$pyver; \
-	done
+	dh_auto_install
 	find debian/ -name "*.la" -delete

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pythonmagick.git



More information about the Python-modules-commits mailing list