[Pkg-javascript-commits] [node-iscroll] 02/02: Initial debianization
Balint Reczey
rbalint at moszumanska.debian.org
Thu Apr 3 01:44:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
rbalint pushed a commit to branch master
in repository node-iscroll.
commit 38f5497b01c32ea984b6bb53e689241f761b93f8
Author: Balint Reczey <balint at balintreczey.hu>
Date: Thu Apr 3 02:24:07 2014 +0200
Initial debianization
---
debian/TODO | 2 ++
debian/changelog | 5 ++++
debian/compat | 1 +
debian/control | 50 +++++++++++++++++++++++++++++++++
debian/copyright | 48 +++++++++++++++++++++++++++++++
debian/libjs-iscroll.dirs | 1 +
debian/node-iscroll.dirs | 1 +
debian/patches/01_dont_use_jshint.patch | 48 +++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 12 ++++++++
debian/source/format | 1 +
debian/watch | 3 ++
12 files changed, 173 insertions(+)
diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..76ef3dd
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1,2 @@
+Really minify JS when UglifyJS becomes available in Debian
+Restore using JSHint, when it becomes available in Debian
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8a1c391
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-iscroll (5.1.1-1) unstable; urgency=low
+
+ * Initial release. (Closes: #743461)
+
+ -- Balint Reczey <balint at balintreczey.hu> Thu, 03 Apr 2014 02:12:15 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f11c82a
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
\ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..94c2fa5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,50 @@
+Source: node-iscroll
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Balint Reczey <balint at balintreczey.hu>
+Build-Depends: debhelper (>= 9), node-uglify
+Standards-Version: 3.9.5
+Homepage: http://iscrolljs.com/
+Vcs-Browser: http://git.debian.org/?p=pkg-javascript/node-iscroll.git
+Vcs-Git: git://git.debian.org/git/pkg-javascript/node-iscroll.git
+
+Package: libjs-iscroll
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: High performance, small footprint JavaScript scroller
+ iScroll is a high performance, small footprint, dependency free,
+ multi-platform javascript scroller.
+ .
+ It works on desktop, mobile and smart TV. It has been vigorously
+ optimized for performance and size so to offer the smoothest result
+ on modern and old devices alike.
+ .
+ iScroll does not just scroll. It can handle any element that needs
+ to be moved with user interaction. It adds scrolling, zooming,
+ panning, infinite scrolling, parallax scrolling, carousels to your
+ projects and manages to do that in just 4kb. Give it a broom and it
+ will also clean up your office.
+
+Package: node-iscroll
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}, nodejs
+Recommends: javascript-common
+Description: High performance, small footprint JavaScript scroller
+ iScroll is a high performance, small footprint, dependency free,
+ multi-platform javascript scroller.
+ .
+ It works on desktop, mobile and smart TV. It has been vigorously
+ optimized for performance and size so to offer the smoothest result
+ on modern and old devices alike.
+ .
+ iScroll does not just scroll. It can handle any element that needs
+ to be moved with user interaction. It adds scrolling, zooming,
+ panning, infinite scrolling, parallax scrolling, carousels to your
+ projects and manages to do that in just 4kb. Give it a broom and it
+ will also clean up your office.
+ .
+ This package contains the NodeJS module.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0904677
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,48 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: iScroll
+Source: http://iscrolljs.com/
+Comment: For more details on developers please see http://iscrolljs.com/#contributing
+
+Files: *
+Copyright: 2008-2014 Matteo Spinelli, cubiq.org
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2014 Balint Reczey <balint at balintreczey.hu>
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/debian/libjs-iscroll.dirs b/debian/libjs-iscroll.dirs
new file mode 100644
index 0000000..614c1de
--- /dev/null
+++ b/debian/libjs-iscroll.dirs
@@ -0,0 +1 @@
+/usr/share/javascript/iscroll
\ No newline at end of file
diff --git a/debian/node-iscroll.dirs b/debian/node-iscroll.dirs
new file mode 100644
index 0000000..abd7028
--- /dev/null
+++ b/debian/node-iscroll.dirs
@@ -0,0 +1 @@
+/usr/lib/nodejs/iscroll
\ No newline at end of file
diff --git a/debian/patches/01_dont_use_jshint.patch b/debian/patches/01_dont_use_jshint.patch
new file mode 100644
index 0000000..143560e
--- /dev/null
+++ b/debian/patches/01_dont_use_jshint.patch
@@ -0,0 +1,48 @@
+--- a/build.js
++++ b/build.js
+@@ -2,7 +2,7 @@
+
+ var pkg = require('./package.json');
+ var fs = require('fs');
+-var hint = require("jshint").JSHINT;
++// var hint = require("jshint").JSHINT;
+ var uglify = require('uglify-js');
+
+ var banner = '/*! iScroll v' + pkg.version + ' ~ (c) 2008-' + (new Date().getFullYear()) + ' Matteo Spinelli ~ http://cubiq.org/license */\n';
+@@ -137,8 +137,8 @@
+ var buildFile = './build/iscroll' + (release != 'iscroll' ? '-' + release : '') + '.js';
+ fs.writeFileSync(buildFile, out);
+
+- // JSHint
+- if ( !hint(out) ) {
++ // JSHint skipped
++ if ( false ) {
+ var lines = out.split('\n');
+ hint.errors.forEach(function (err) {
+ console.log('\033[31m[' + err.code + ']\033[0m ' + err.line + ':' + err.character + '\t- ' + err.reason);
+@@ -150,6 +150,6 @@
+
+ // Write dist file
+ var distFile = buildFile.replace('/build/', '/dist/').replace('.js', '-min.js');
+- out = uglify.minify(out, { fromString: true });
+- fs.writeFileSync(distFile, banner + out.code);
++// out = uglify.minify(out, { fromString: true });
++ fs.writeFileSync(distFile, banner + out);
+ }
+--- a/package.json
++++ b/package.json
+@@ -15,7 +15,6 @@
+ ],
+ "main": "build/iscroll.js",
+ "devDependencies": {
+- "jshint": "~2.3.0",
+ "uglify-js": "~2.4.7"
+ },
+ "repository": {
+@@ -26,4 +25,4 @@
+ "url": "https://github.com/cubiq/iscroll/issues"
+ },
+ "license": "MIT"
+-}
+\ No newline at end of file
++}
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d0b0c5f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01_dont_use_jshint.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2edf849
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+build %:
+ dh $@
+
+override_dh_auto_build:
+ mkdir dist
+ nodejs build.js
+
+override_dh_auto_install:
+ dh_auto_install
+ install -m 644 build/*.js dist/*.js $(CURDIR)/debian/libjs-iscroll/usr/share/javascript/iscroll/
+ install -m 644 build/*.js dist/*.js $(CURDIR)/debian/node-iscroll/usr/lib/nodejs/iscroll/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..602647a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/<project>-$1\.tar\.gz/ \
+ https://github.com/cubiq/iscroll/tags .*/v?(\d\S*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-iscroll.git
More information about the Pkg-javascript-commits
mailing list