[Pkg-javascript-commits] [node-knockout] 02/02: Import Debian changes 3.4.2-1
Daniel Ring
techwolf-guest at moszumanska.debian.org
Mon Jan 1 01:28:56 UTC 2018
This is an automated email from the git hooks/post-receive script.
techwolf-guest pushed a commit to branch master
in repository node-knockout.
commit 1d56c942239335285193cb11e1587d27490b9b79
Author: Daniel Ring <dring at wolfishly.me>
Date: Sat Dec 30 19:48:58 2017 -0800
Import Debian changes 3.4.2-1
node-knockout (3.4.2-1) unstable; urgency=low
* Initial release (Closes: #885900)
---
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 30 ++++++++++++++++++++++++++++++
debian/copyright | 42 ++++++++++++++++++++++++++++++++++++++++++
debian/docs | 1 +
debian/install | 3 +++
debian/patches/gruntfile.patch | 35 +++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 17 +++++++++++++++++
debian/source/format | 1 +
debian/tests/control | 2 ++
debian/tests/require | 3 +++
debian/watch | 5 +++++
13 files changed, 146 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..71022a5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-knockout (3.4.2-1) unstable; urgency=low
+
+ * Initial release (Closes: #885900)
+
+ -- Daniel Ring <dring at wolfishly.me> Sat, 30 Dec 2017 19:48:58 -0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a7cc897
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,30 @@
+Source: node-knockout
+Section: javascript
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Daniel Ring <dring at wolfishly.me>
+Build-Depends:
+ debhelper (>= 9)
+ , dh-buildinfo
+ , nodejs
+ , grunt
+ , node-grunt-cli
+ , closure-compiler
+Standards-Version: 4.1.2
+Homepage: http://knockoutjs.com/
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-knockout.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-knockout.git
+
+Package: node-knockout
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+Description: JavaScript MVVM framework
+ Knockout is a JavaScript MVVM (a modern variant of MVC) library that makes it
+ easier to create rich, desktop-like user interfaces with JavaScript and HTML.
+ It uses observers to make your UI automatically stay in sync with an
+ underlying data model, along with a powerful and extensible set of declarative
+ bindings to enable productive development.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..9dfe7c8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,42 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: knockout
+Upstream-Contact: https://github.com/knockout/knockout/issues
+Source: http://knockoutjs.com/
+
+Files: *
+Copyright: 2017 Steven Sanderson and the Knockout.js team
+License: Expat
+
+Files: spec/lib/jasmine-1.2.0/*
+Copyright: 2008-2011 Pivotal Labs
+License: Expat
+
+Files: spc/lib/json2.js
+Copyright: 2010 JSON.org
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Daniel Ring <dring at wolfishly.me>
+License: Expat
+
+License: Expat
+ 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.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..e7b133d
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+build/output/knockout-latest.debug.js usr/lib/nodejs/knockout/build/output/
+build/output/knockout-latest.js usr/lib/nodejs/knockout/build/output/
+package.json usr/lib/nodejs/knockout/
diff --git a/debian/patches/gruntfile.patch b/debian/patches/gruntfile.patch
new file mode 100644
index 0000000..8665485
--- /dev/null
+++ b/debian/patches/gruntfile.patch
@@ -0,0 +1,35 @@
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -103,13 +103,16 @@
+ }
+
+ function buildMin(output, done) {
+- var cc = require('closure-compiler');
+- var options = {
+- compilation_level: 'ADVANCED_OPTIMIZATIONS',
+- output_wrapper: '(function() {%output%})();'
+- };
+- grunt.log.write('Compiling...');
+- cc.compile('/**@const*/var DEBUG=false;' + getCombinedSources(), options, function (err, stdout, stderr) {
++ var execFile = require('child_process').execFile;
++ var stream = require('stream');
++ var options = [
++ '--compilation_level', 'ADVANCED_OPTIMIZATIONS',
++ '--output_wrapper', '(function() {%output%})();'
++ ];
++ var source = new stream.Readable();
++ source.push('/**@const*/var DEBUG=false;' + getCombinedSources());
++ source.push(null);
++ var cc = execFile('closure-compiler', options, function (err, stdout, stderr) {
+ if (err) {
+ grunt.log.error(err);
+ done(false);
+@@ -119,6 +122,8 @@
+ done(true);
+ }
+ });
++ grunt.log.write('Compiling...');
++ source.pipe(cc.stdin);
+ }
+
+ grunt.registerMultiTask('build', 'Build', function() {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0108572
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gruntfile.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a61daa2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ grunt
+
+#override_dh_auto_test:
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -f build/output/knockout-latest.js build/output/knockout-latest.debug.js
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..7aad7a6
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-knockout
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..ae7b17c
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('knockout');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0a6eb28
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-knockout-$1.tar.gz/ \
+ https://github.com/knockout/knockout/tags .*/archive/v?([\d\.]+).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-knockout.git
More information about the Pkg-javascript-commits
mailing list