[med-svn] r13005 - trunk/packages/meme/trunk/debian

Andreas Tille tille at alioth.debian.org
Thu Feb 14 10:28:08 UTC 2013


Author: tille
Date: 2013-02-14 10:28:08 +0000 (Thu, 14 Feb 2013)
New Revision: 13005

Modified:
   trunk/packages/meme/trunk/debian/rules
Log:
Upstream has given information that all *.py files are just libraries and thus they will be installed accordingly


Modified: trunk/packages/meme/trunk/debian/rules
===================================================================
--- trunk/packages/meme/trunk/debian/rules	2013-02-14 08:57:52 UTC (rev 13004)
+++ trunk/packages/meme/trunk/debian/rules	2013-02-14 10:28:08 UTC (rev 13005)
@@ -56,10 +56,12 @@
 	mkdir -p debian/tmp/usr/share/perl5/Meme
 	cp website/scripts/*.pm debian/tmp/usr/share/perl5/Meme
 	cp scripts/*.pm debian/tmp/usr/share/perl5/Meme
+	# *.py files are Python libraries
+	mkdir -p $(CURDIR)/debian/$(pkg)/usr/share/pyshared/$(pkg)/
+	mv $(CURDIR)/debian/tmp/usr/bin/*.py $(CURDIR)/debian/$(pkg)/usr/share/pyshared/$(pkg)
 	# fix insufficient replacement procedure of @WHICHPYTHON@
-	set -x ; \
 	for pyfile in sequence.py hypergeometric.py ; do \
-	    sed -i -e 's%@WHICHPYTHON@%$(PYTHON)%' debian/tmp/usr/bin/$${pyfile} ; \
+	    sed -i -e 's% *@WHICHPYTHON@%$(PYTHON)%' $(CURDIR)/debian/$(pkg)/usr/share/pyshared/$(pkg)/$${pyfile} ; \
 	done
 	dh_install -v --sourcedir=debian/tmp
 




More information about the debian-med-commit mailing list