[SCM] lilv/master: Support all Python versions.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Thu Jun 23 10:50:45 UTC 2011


The following commit has been merged in the master branch:
commit 9ca1f1a0f3c43d097971bd0e6d8f7742d54115d5
Author: Alessio Treglia <alessio at debian.org>
Date:   Thu Jun 23 12:50:46 2011 +0200

    Support all Python versions.

diff --git a/debian/control b/debian/control
index 0d230d1..f0639b8 100644
--- a/debian/control
+++ b/debian/control
@@ -39,6 +39,7 @@ Architecture: any
 Depends: ${shlibs:Depends},
  ${python:Depends},
  ${misc:Depends}
+Provides: ${python:Provides}
 Description: library for simple use of LV2 plugins (Python bindings)
  Lilv (formerly SLV2) is a library for LV2 hosts intended to make using
  LV2 Plugins as simple as possible (without sacrificing capabilities).
diff --git a/debian/rules b/debian/rules
index c163d6e..12b3813 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,7 @@
 
 LDFLAGS+=-Wl,--as-needed
 WAF = ./waf
+PYVERS=$(shell pyversions -s)
 
 ifeq ($(shell dpkg-query -s doxygen graphviz 1>/dev/null 2>&1 && echo yes),yes)
 CONFIGURE_EXTRA_FLAGS += --docs
@@ -11,25 +12,22 @@ endif
 	dh $@ --with python2
 
 override_dh_auto_configure:
-	$(WAF) configure \
-			--prefix=/usr \
-			--mandir=/usr/share/man \
-			--strict \
-			--debug \
-			--bindings \
-			--dyn-manifest \
-			$(CONFIGURE_EXTRA_FLAGS)
-
 override_dh_auto_build:
-	$(WAF)
+override_dh_auto_install:
+	for pyver in $(PYVERS); do \
+		PYTHON="$$pyver" $(WAF) configure \
+				--prefix=/usr \
+				--mandir=/usr/share/man \
+				--strict \
+				--debug \
+				--bindings \
+				--dyn-manifest \
+				$(CONFIGURE_EXTRA_FLAGS) && \
+		PYTHON="$$pyver" $(WAF) && \
+		PYTHON="$$pyver" $(WAF) install -f --destdir=$(CURDIR)/debian/tmp ; \
+	done
 
 override_dh_auto_clean:
 	$(WAF) distclean
 	rm -rf build .waf*
 	dh_auto_clean
-
-override_dh_auto_install:
-	$(WAF) install --destdir=$(CURDIR)/debian/tmp
-
-override_dh_python2:
-	dh_python2 --no-guessing-versions

-- 
lilv packaging



More information about the pkg-multimedia-commits mailing list