← Back to team overview

ubuntu-packaging-guide-team team mailing list archive

[Merge] lp:~dholbach/ubuntu-packaging-guide/980546 into lp:ubuntu-packaging-guide

 

Daniel Holbach has proposed merging lp:~dholbach/ubuntu-packaging-guide/980546 into lp:ubuntu-packaging-guide with lp:~dholbach/ubuntu-packaging-guide/split-out-packages as a prerequisite.

Requested reviews:
  Ubuntu Packaging Guide Team (ubuntu-packaging-guide-team)
Related bugs:
  Bug #980546 in Ubuntu Packaging Guide: "lots of embedded-javascript-library"
  https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/980546

For more details, see:
https://code.launchpad.net/~dholbach/ubuntu-packaging-guide/980546/+merge/105364

This change depends on lp:~dholbach/ubuntu-packaging-guide/split-out-packages
-- 
https://code.launchpad.net/~dholbach/ubuntu-packaging-guide/980546/+merge/105364
Your team Ubuntu Packaging Guide Team is requested to review the proposed merge of lp:~dholbach/ubuntu-packaging-guide/980546 into lp:ubuntu-packaging-guide.
=== modified file 'debian/control'
--- debian/control	2012-05-10 17:48:20 +0000
+++ debian/control	2012-05-10 17:48:20 +0000
@@ -22,7 +22,7 @@
  ubuntu-packaging-guide-html.
 
 Package: ubuntu-packaging-guide-html
-Depends: ${misc:Depends}
+Depends: ${misc:Depends}, libjs-underscore, libjs-jquery
 Architecture: all
 Description: Ubuntu Packaging Guide - HTML guide
  The Ubuntu Packaging Guide is a set of articles that should help you to get
@@ -46,7 +46,7 @@
  This package contains the PDF version of the guide.
 
 Package: ubuntu-packaging-guide-epub
-Depends: ${misc:Depends}
+Depends: ${misc:Depends}, libjs-underscore, libjs-jquery
 Architecture: all
 Description: Ubuntu Packaging Guide - EPUB guide
  The Ubuntu Packaging Guide is a set of articles that should help you to get

=== modified file 'debian/rules'
--- debian/rules	2012-05-10 17:48:20 +0000
+++ debian/rules	2012-05-10 17:48:20 +0000
@@ -25,6 +25,15 @@
 		done; \
 		cd -; \
 	done;
+	# use system copies of jquery and underscore instead.
+	for filename in `find $$DEBIANDIR -wholename '*/_static/jquery.js'`; do \
+		rm $$filename; \
+		ln -s /usr/share/javascript/jquery/jquery.js $$filename; \
+	done
+	for filename in `find $$DEBIANDIR -wholename '*/_static/underscore.js'`; do \
+		rm $$filename; \
+		ln -s /usr/share/javascript/underscore/underscore.js $$filename; \
+	done
 	dh_link
 
 override_dh_install:


Follow ups