[SCM] scenic packaging branch, master, updated. debian/0.5.11-1-56-ge88ff05

alexandrequessy-guest at users.alioth.debian.org alexandrequessy-guest at users.alioth.debian.org
Thu Jun 10 01:11:09 UTC 2010


The following commit has been merged in the master branch:
commit e88ff05c4d868600afb33a0bd089780aa4c9be02
Author: Alexandre Quessy <aalex at plank.sat.qc.ca>
Date:   Wed Jun 9 17:52:16 2010 -0400

    Adding the perl script to replace shebangs
    
    Also removed an useless line in rules

diff --git a/debian/rules b/debian/rules
index 7915ef6..ed81cc1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,5 @@
 #!/usr/bin/make -f
 
-DEB_PYTHON_PRIVATE_MODULES_DIRS_scenic = /usr/lib/scenic/py
-
 DEB_BUILDDIR = build
 DEB_PYTHON_SYSTEM = pysupport
 DEB_PYTHON_MODULE_PACKAGES = scenic rtpmidi
@@ -14,3 +12,7 @@ DEB_CONFIGURE_EXTRA_FLAGS = --enable-mt
 # Unit tests are disabled for now, since it's Python path is broken when they are ran.
 #DEB_MAKE_CHECK_TARGET = check 
 
+# Ensure proper hash-bang in Python script (Python Policy 0.9 §3.1)
+binary-fixup/scenic::
+	egrep -r -l -Z '^#! ?/usr/bin/(env )?python[[:print:]]*$$' debian/$(cdbs_curpkg)/usr/bin/* \
+		| xargs -r -0 perl -pi -e 's,^#! ?/usr/bin/(env )?python[[:print:]]*$$,#!/usr/bin/python$(cdbs_python_nondefault_version),'

-- 
scenic packaging



More information about the pkg-multimedia-commits mailing list