Author: tille
Date: 2013-02-21 10:15:33 +0000 (Thu, 21 Feb 2013)
New Revision: 13054

Modified:
   trunk/packages/meme/trunk/debian/rules
Log:
Currently the Python scripts do not find the modules delivered with meme.  
Either the modules will not be put in a subdirectory (like it is implemented 
now) or the scripts need to be patched (see comment in debian/rules)


Modified: trunk/packages/meme/trunk/debian/rules
===================================================================
--- trunk/packages/meme/trunk/debian/rules      2013-02-20 18:41:01 UTC (rev 
13053)
+++ trunk/packages/meme/trunk/debian/rules      2013-02-21 10:15:33 UTC (rev 
13054)
@@ -13,6 +13,12 @@
 # Only needed for fixing brocken upstream build mechanism
 PYTHON=/usr/bin/python
 
+# PYTHONSUBDIR=$(pkg)/
+# if the Python modules should be put into a separate meme subdirectory you 
need to patch the following scripts
+#   scripts/dreme.py.in
+#   scripts/fasta-hamming-enrich.py.in
+PYTHONSUBDIR=
+
 %:
        dh $@ --with autoreconf,python2
 
@@ -57,11 +63,11 @@
        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)
+       mkdir -p $(CURDIR)/debian/$(pkg)/usr/share/pyshared/$(PYTHONSUBDIR)
+       mv $(CURDIR)/debian/tmp/usr/bin/*.py 
$(CURDIR)/debian/$(pkg)/usr/share/pyshared/$(PYTHONSUBDIR)
        # fix insufficient replacement procedure of @WHICHPYTHON@
        for pyfile in sequence.py hypergeometric.py ; do \
-           sed -i -e 's% *@WHICHPYTHON@%$(PYTHON)%' 
$(CURDIR)/debian/$(pkg)/usr/share/pyshared/$(pkg)/$${pyfile} ; \
+           sed -i -e 's% *@WHICHPYTHON@%$(PYTHON)%' 
$(CURDIR)/debian/$(pkg)/usr/share/pyshared/$(PYTHONSUBDIR)$${pyfile} ; \
        done
        dh_install -v --sourcedir=debian/tmp
 


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to