[med-svn] r12704 - trunk/packages/macs/trunk/debian

Andreas Tille tille at alioth.debian.org
Wed Dec 19 17:05:52 UTC 2012


Author: tille
Date: 2012-12-19 17:05:51 +0000 (Wed, 19 Dec 2012)
New Revision: 12704

Modified:
   trunk/packages/macs/trunk/debian/control
   trunk/packages/macs/trunk/debian/rules
Log:
Enable building manpages even in pbuilder


Modified: trunk/packages/macs/trunk/debian/control
===================================================================
--- trunk/packages/macs/trunk/debian/control	2012-12-19 15:30:40 UTC (rev 12703)
+++ trunk/packages/macs/trunk/debian/control	2012-12-19 17:05:51 UTC (rev 12704)
@@ -6,7 +6,8 @@
 Uploaders: Tim Booth <tbooth at ceh.ac.uk>,
  H. Soon Gweon <hyugwe at ceh.ac.uk>,
  Andreas Tille <tille at debian.org>
-Build-Depends: debhelper (>= 9), cython (>= 0.15), python-dev (>= 2.7), help2man
+Build-Depends: debhelper (>= 9), cython (>= 0.15), python-dev (>= 2.7), help2man,
+ python-numpy
 Standards-Version: 3.9.4
 X-Python-Version: >=2.7
 Homepage: https://github.com/taoliu/MACS/
@@ -15,7 +16,7 @@
 
 Package: macs
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-numpy
 Description: Model-based Analysis of ChIP-Seq on short reads sequencers
  MACS empirically models the length of the sequenced ChIP fragments, which 
  tends to be shorter than sonication or library construction size estimates, 

Modified: trunk/packages/macs/trunk/debian/rules
===================================================================
--- trunk/packages/macs/trunk/debian/rules	2012-12-19 15:30:40 UTC (rev 12703)
+++ trunk/packages/macs/trunk/debian/rules	2012-12-19 17:05:51 UTC (rev 12704)
@@ -20,28 +20,30 @@
 	dh_auto_install
 	
 	# try to create man pages whereever possible
-	mkdir -p $(mandir)
+	mkdir -p $(mandir)	
+	export PYTHONPATH=$(CURDIR)/build/`ls build | grep ^lib\. | head -n 1` ; \
+	export PATH=$(CURDIR)/build/`ls build | grep ^scripts- | head -n 1`:$${PATH} ; \
 	help2man --no-info --name='Fine-tuning script to call broad peaks from a single bedGraph track for scores' \
-	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/bdgbroadcall" > $(mandir)/bdgbroadcall.1
+	    --version-string="$(version)"  \
+		 bdgbroadcall > $(mandir)/bdgbroadcall.1 ; \
 	help2man --no-info --name='Calculate scores using certain method by comparing a bedGraph file from treatment and a file from control representing local bias' \
-	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/bdgcmp" > $(mandir)/bdgcmp.1
+	    --version-string="$(version)"  \
+		 bdgcmp > $(mandir)/bdgcmp.1 ; \
 	help2man --no-info --name='Naive call differential peaks from 4 bedGraph tracks for scores' \
 	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/bdgdiff" > $(mandir)/bdgdiff.1
+		 bdgdiff > $(mandir)/bdgdiff.1 ; \
 	help2man --no-info --name='Naive call peaks from a single bedGraph track for scores' \
 	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/bdgpeakcall" > $(mandir)/bdgpeakcall.1
+		 bdgpeakcall > $(mandir)/bdgpeakcall.1 ; \
 	help2man --no-info --name='Filter duplicate reads depending on sequencing depth' \
 	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/filterdup" > $(mandir)/filterdup.1
+		 filterdup > $(mandir)/filterdup.1 ; \
 	help2man --no-info --name='Model-based Analysis for ChIP-Sequencing' \
 	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/macs2" > $(mandir)/macs2.1
+		 macs2 > $(mandir)/macs2.1 ; \
 	help2man --no-info --name='Differential Analysis for ChIP-Sequencing' \
 	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/macs2diff" > $(mandir)/macs2diff.1
+		 macs2diff > $(mandir)/macs2diff.1 ; \
 	help2man --no-info --name='Random sample certain number/percentage of tags' \
 	    --version-string="$(version)" \
-		 "python $(CURDIR)/bin/randsample" > $(mandir)/randsample.1
+		 randsample > $(mandir)/randsample.1




More information about the debian-med-commit mailing list