[Pkg-javascript-commits] [leaflet-markercluster] 04/49: add patch to skip jshint checks
Jonas Smedegaard
js at moszumanska.debian.org
Tue Jan 28 17:54:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit f4bb837b8d4f60e0f1e6af39e889c165204672b9
Author: Andrew Harvey <andrew.harvey4 at gmail.com>
Date: Sat Nov 24 16:13:31 2012 +1100
add patch to skip jshint checks
---
debian/patches/2001-dont-run-jshint-checks.patch | 43 ++++++++++++++++++++++++
debian/patches/README | 3 ++
debian/patches/series | 1 +
3 files changed, 47 insertions(+)
diff --git a/debian/patches/2001-dont-run-jshint-checks.patch b/debian/patches/2001-dont-run-jshint-checks.patch
new file mode 100644
index 0000000..a10905c
--- /dev/null
+++ b/debian/patches/2001-dont-run-jshint-checks.patch
@@ -0,0 +1,43 @@
+Description: don't run jshint tests during build
+ The upstream build script runs jshint checks during the build. Because jshint
+ is not DFSG compatible and hence cannot be included in Debian, this patch skips
+ running these checks.
+Author: Andrew Harvey<andrew.harvey4 at gmail.com>
+Origin: vendor
+Forwarded: not-needed
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- leaflet-markercluster.orig/Jakefile.js
++++ leaflet-markercluster/Jakefile.js
+@@ -1,29 +1,11 @@
+-var build = require('./build/build.js'),
+- lint = require('./build/hint.js');
++var build = require('./build/build.js');
+
+ var COPYRIGHT = '/*\n Copyright (c) 2012, Smartrak, David Leaver\n' +
+ ' Leaflet.markercluster is an open-source JavaScript library for Marker Clustering on leaflet powered maps.\n' +
+ ' https://github.com/danzel/Leaflet.markercluster\n*/\n';
+
+-desc('Check Leaflet.markercluster source for errors with JSHint');
+-task('lint', function () {
+-
+- var files = build.getFiles();
+-
+- console.log('Checking for JS errors...');
+-
+- var errorsFound = lint.jshint(files);
+-
+- if (errorsFound > 0) {
+- console.log(errorsFound + ' error(s) found.\n');
+- fail();
+- } else {
+- console.log('\tCheck passed');
+- }
+-});
+-
+ desc('Combine and compress Leaflet.markercluster source files');
+-task('build', ['lint'], function (compsBase32, buildName) {
++task('build', [], function (compsBase32, buildName) {
+
+ var files = build.getFiles(compsBase32);
+
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..490f4b3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+2001-dont-run-jshint-checks.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list