[Pkg-javascript-commits] [backbone] 90/97: Add patch 2001 to use separately packaged Javascript libraries, and build-depend on libjs-json, libjs-jquery and libjs-underscore.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:56:04 UTC 2014


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

js pushed a commit to branch master
in repository backbone.

commit 0fe16afd0e415a5bd0301e23be790c7d5d95bbf6
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Thu Mar 14 13:49:21 2013 +0100

    Add patch 2001 to use separately packaged Javascript libraries, and build-depend on libjs-json, libjs-jquery and libjs-underscore.
---
 debian/patches/2001_use_system_js.patch | 20 ++++++++++++++++++++
 debian/patches/README                   |  3 +++
 debian/patches/series                   |  1 +
 debian/rules                            |  3 ++-
 4 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/patches/2001_use_system_js.patch b/debian/patches/2001_use_system_js.patch
new file mode 100644
index 0000000..2bde84b
--- /dev/null
+++ b/debian/patches/2001_use_system_js.patch
@@ -0,0 +1,20 @@
+Description: use separately packaged JavaScript libraries
+Author: Jonas Smedegaard <dr at jones.dk>
+Forwarded: not-needed
+
+--- a/test/index.html
++++ b/test/index.html
+@@ -4,10 +4,10 @@
+   <meta charset='utf8'>
+   <title>Backbone Test Suite</title>
+   <link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen">
+-  <script src="vendor/json2.js"></script>
+-  <script src="vendor/jquery.js"></script>
++  <script src="/usr/share/javascript/json/json2.js"></script>
++  <script src="/usr/share/javascript/jquery/jquery.js"></script>
+   <script src="vendor/qunit.js"></script>
+-  <script src="vendor/underscore.js"></script>
++  <script src="/usr/share/javascript/underscore/underscore.js"></script>
+   <script src="../backbone.js"></script>
+   <script src="environment.js"></script>
+   <script src="noconflict.js"></script>
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..80c1584
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,3 @@
+0xxx: Grabbed from upstream development.
+1xxx: Possibly relevant for upstream adoption.
+2xxx: Only relevant for official Debian release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b269c20
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+2001_use_system_js.patch
diff --git a/debian/rules b/debian/rules
index b3629e6..1858997 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,7 +35,8 @@ CDBS_BUILD_DEPENDS += , node-uglify | yui-compressor
 js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
 
 underscore-minver = 1.4.3
-CDBS_BUILD_DEPENDS +=, coffeescript, phantomjs
+CDBS_BUILD_DEPENDS +=, coffeescript, phantomjs, libjs-json, libjs-jquery
+CDBS_BUILD_DEPENDS +=, libjs-underscore
 CDBS_BUILD_DEPENDS +=, node-underscore (>= $(underscore-minver)~)
 CDBS_DEPENDS_$(jspkg) = libjs-underscore (>= $(underscore-minver)~)
 CDBS_DEPENDS_$(nodepkg) = nodejs, libjs-backbone

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list