[SCM] ecasound/master: Replace python2.6 occurrences with python$(shell pyversions -dv) in dh_install calls.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Mon Jul 11 17:34:57 UTC 2011


The following commit has been merged in the master branch:
commit b56ad6b2b94d5c1681a168a385f33bd391c07070
Author: Alessio Treglia <alessio at debian.org>
Date:   Mon Jul 11 19:32:17 2011 +0200

    Replace python2.6 occurrences with python$(shell pyversions -dv) in dh_install calls.
    
    - This prevents FTBFS with future Python transitions (and also fixes LP: #808910).

diff --git a/debian/python-ecasound.install b/debian/python-ecasound.install
deleted file mode 100644
index 9b66f72..0000000
--- a/debian/python-ecasound.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/python2.6/lib-dynload/*.py usr/share/pyshared/
diff --git a/debian/rules b/debian/rules
index c02f913..90da133 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,5 +35,13 @@ ifneq (,$(findstring libecasound-ruby1.8, $(shell dh_listpackages)))
 	chmod a-x debian/libecasound-ruby1.8/usr/lib/ruby/1.8/ecasound.rb
 endif
 
+override_dh_install:
+ifneq (,$(findstring python-ecasound, $(shell dh_listpackages)))
+	dh_install -ppython-ecasound \
+		usr/lib/python$(shell pyversions -dv)/lib-dynload/*.py \
+			usr/share/pyshared/
+endif
+	dh_install --remaining-packages
+
 override_dh_installchangelogs:
 	dh_installchangelogs NEWS

-- 
ecasound packaging



More information about the pkg-multimedia-commits mailing list