PKG: use dh_links (with links specified in .links) to use system-wide installed jquery and underscore

This commit is contained in:
Yaroslav Halchenko
2011-10-04 09:40:48 -04:00
committed by Stefan van der Walt
parent 21f4391e6c
commit 4db1b8fcac
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ Description: Python modules for image processing
Package: python-scikits.image-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}, libjs-jquery
Depends: ${misc:Depends}, libjs-jquery, libjs-underscore
Suggests: python-scikits.image
Description: Documentation and examples for scikits-image
This package contains documentation and example scripts for
+2
View File
@@ -0,0 +1,2 @@
usr/share/javascript/jquery/jquery.js usr/share/doc/python-scikits.statsmodels-doc/html/_static/jquery.js
usr/share/javascript/underscore/underscore.js usr/share/doc/python-scikits.statsmodels-doc/html/_static/underscore.js
+2 -3
View File
@@ -54,8 +54,9 @@ endif
mv $$lib $$tdir ; \
done
: # Use jquery from Debian package, so prune shipped one
: # Use jquery and underscore from Debian package, so prune shipped one
-rm -f doc/build/html/_static/jquery.js
-rm -f doc/build/html/_static/underscore.js
-rf -f doc/build/html/_sources
-rf -f doc/build/html/.buildinfo
@@ -74,5 +75,3 @@ override_dh_compress:
override_dh_installdocs:
dh_installdocs -A CONTRIBUTORS.txt README.txt DEVELOPMENT.txt TASKS.txt
dh_link /usr/share/javascript/jquery/jquery.js \
/usr/share/doc/$(PACKAGE_NAME)-doc/html/_static/jquery.js