[med-svn] [macs] 10/12: Enable building manpages even in pbuilder

Michael Crusoe misterc-guest at moszumanska.debian.org
Sun Oct 4 23:33:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

misterc-guest pushed a commit to annotated tag debian/2.0.9.1-1
in repository macs.

commit b0e64b2e89f684128844ca4679c6c8237f48e8b2
Author: Andreas Tille <tille at debian.org>
Date:   Wed Dec 19 17:05:51 2012 +0000

    Enable building manpages even in pbuilder
---
 control |  5 +++--
 rules   | 24 +++++++++++++-----------
 2 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/control b/control
index 53ccf2e..8757a4f 100644
--- a/control
+++ b/control
@@ -6,7 +6,8 @@ DM-Upload-Allowed: yes
 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 @@ Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/macs/trunk/
 
 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, 
diff --git a/rules b/rules
index eff3d76..c771dbb 100755
--- a/rules
+++ b/rules
@@ -20,28 +20,30 @@ override_dh_auto_install:
 	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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/macs.git



More information about the debian-med-commit mailing list