[med-svn] [python-pbcore] 01/02: Use dh_link to create links to packaged javascript libraries

Afif Elghraoui afif-guest at moszumanska.debian.org
Thu Jun 18 04:10:29 UTC 2015


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

afif-guest pushed a commit to branch master
in repository python-pbcore.

commit bbabb9d968b6b7a62142ad747dd831b6850f71ea
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Wed Jun 17 21:03:20 2015 -0700

    Use dh_link to create links to packaged javascript libraries
    
    This is a more elegant implementation than my previous
    hard-coded linking in override_dh_installdocs.
---
 debian/links | 2 ++
 debian/rules | 9 +++------
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..bcb9b80
--- /dev/null
+++ b/debian/links
@@ -0,0 +1,2 @@
+/usr/share/javascript/jquery/jquery.js	/usr/share/doc/python-pbcore/html/_static/jquery.js
+/usr/share/javascript/underscore/underscore.js	/usr/share/doc/python-pbcore/html/_static/underscore.js
diff --git a/debian/rules b/debian/rules
index b36be27..0498871 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,6 @@ include /usr/share/dpkg/default.mk
 # debhelper doesn't appear to define DESTDIR for debian/rules
 # call it "ROOT" here so it doesn't conflict with DESTDIR (it shouldn't anyway)
 ROOT=`pwd`/debian/$(DEB_SOURCE)
-DOCROOT=$(ROOT)/usr/share/doc/$(DEB_SOURCE)
 
 %:
 	dh $@ --with python2
@@ -20,12 +19,10 @@ override_dh_fixperms:
 	chmod -x $(ROOT)/usr/lib/python2.7/dist-packages/pbcore/data/*.h5
 
 override_dh_installdocs:
-	dh_installdocs -X.txt -Xjquery.js -Xunderscore.js
-	ln -s /usr/share/javascript/jquery/jquery.js $(DOCROOT)/html/_static/
-	ln -s /usr/share/javascript/underscore/underscore.js $(DOCROOT)/html/_static/
+	dh_installdocs -X _source
 
-#get-orig-source:
-#	uscan
+get-orig-source:
+	uscan --download-current-version --rename
 
 # test requires the package itself to be installed...
 override_dh_auto_test:

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



More information about the debian-med-commit mailing list