[Pkg-javascript-commits] [node-json5] 02/02: Import Debian patch 0.5.0-1

Thorsten Alteholz alteholz at moszumanska.debian.org
Wed Nov 16 19:17:03 UTC 2016


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

alteholz pushed a commit to branch master
in repository node-json5.

commit 5e7b83a15f7aa4c11cda0ce73d2dd0b8ee003d33
Author: Thorsten Alteholz <debian at alteholz.de>
Date:   Sat Nov 12 15:05:31 2016 +0100

    Import Debian patch 0.5.0-1
---
 debian/changelog                 |  5 +++++
 debian/compat                    |  1 +
 debian/control                   | 36 ++++++++++++++++++++++++++++++++++++
 debian/copyright                 | 34 ++++++++++++++++++++++++++++++++++
 debian/docs                      |  1 +
 debian/install                   |  3 +++
 debian/links                     |  1 +
 debian/patches/interpreter.patch | 12 ++++++++++++
 debian/patches/series            |  1 +
 debian/rules                     | 15 +++++++++++++++
 debian/source/format             |  1 +
 debian/tests/control             |  2 ++
 debian/tests/require             |  3 +++
 debian/watch                     |  5 +++++
 14 files changed, 120 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..70160df
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-json5 (0.5.0-1) unstable; urgency=medium
+
+  * Initial release
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Sat, 12 Nov 2016 15:05:31 +0100
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..eeb7e04
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: node-json5
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Thorsten Alteholz <debian at alteholz.de>
+Build-Depends:
+ debhelper (>= 9)
+ , dh-buildinfo
+ , nodejs
+Standards-Version: 3.9.8
+Homepage: http://json5.org/
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-json5.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-json5.git
+
+Package: node-json5
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+Description: JSON for the ES5 era
+ JSON5 is a proposed extension to JSON that aims to make it easier for 
+ humans to write and maintain by hand. It does this by adding some 
+ minimal syntax features directly from ECMAScript 5.
+ .
+ JSON5 remains a strict subset of JavaScript, adds no new data types, 
+ and works with all existing JSON content.
+ .
+ JSON5 is not an official successor to JSON, and JSON5 content may not 
+ work with existing JSON parsers. For this reason, JSON5 files use a 
+ new .json5 extension. (TODO: new MIME type needed too.)
+ .
+ The code here is a reference JavaScript implementation for both Node.js 
+ and all browsers. It’s based directly off of Douglas Crockford’s own 
+ JSON implementation, and it’s both robust and secure.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..64e5703
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: json5
+Upstream-Contact: https://github.com/aseemk/json5/issues
+Source: http://json5.org/
+
+Files: *
+Copyright: 2016 Aseem Kishore <aseem.kishore at gmail.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Thorsten Alteholz <debian at alteholz.de>
+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..92555e5
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/json5/
+lib usr/lib/nodejs/json5/
+lib/ usr/lib/nodejs/json5/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..5bd27f9
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/json5/lib/cli.js usr/bin/json5
diff --git a/debian/patches/interpreter.patch b/debian/patches/interpreter.patch
new file mode 100644
index 0000000..e57c9ca
--- /dev/null
+++ b/debian/patches/interpreter.patch
@@ -0,0 +1,12 @@
+Author: Thorsten Alteholz <debian at alteholz.de>
+Description: use Debian name of interpreter
+Index: node-json5-0.5.0/lib/cli.js
+===================================================================
+--- node-json5-0.5.0.orig/lib/cli.js	2016-03-17 08:49:13.000000000 +0100
++++ node-json5-0.5.0/lib/cli.js	2016-11-12 15:45:01.148048101 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/env nodejs
+ 
+ // cli.js
+ // JSON5 command-line interface.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b704caa
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+interpreter.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..de57af0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+#override_dh_auto_build:
+
+#override_dh_auto_test:
+
+
+
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..1202ebd
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-json5
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..a3690f6
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('json5');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d645f2a
--- /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-json5-$1.tar.gz/ \
+ https://github.com/aseemk/json5/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list