[Pkg-javascript-commits] [node-strip-json-comments] 01/01: Initial packaging work

Julien Puydt julien.puydt at laposte.net
Tue Jun 23 14:33:46 UTC 2015


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

jpuydt-guest pushed a commit to branch master
in repository node-strip-json-comments.

commit 551795f5ed5b5ad5b8f5bde1c963fabeeb38862b
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Tue Jun 23 15:08:06 2015 +0200

    Initial packaging work
---
 debian/changelog                |  6 ++++++
 debian/compat                   |  1 +
 debian/control                  | 20 ++++++++++++++++++++
 debian/copyright                | 33 +++++++++++++++++++++++++++++++++
 debian/docs                     |  1 +
 debian/gbp.conf                 |  2 ++
 debian/install                  |  3 +++
 debian/links                    |  1 +
 debian/manpages                 |  1 +
 debian/patches/series           |  1 +
 debian/patches/use_nodejs.patch |  8 ++++++++
 debian/rules                    | 12 ++++++++++++
 debian/source/format            |  1 +
 debian/strip-json-comments.1    | 26 ++++++++++++++++++++++++++
 debian/tests/control            |  2 ++
 debian/tests/require            |  3 +++
 debian/watch                    |  5 +++++
 17 files changed, 126 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0a029d5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-strip-json-comments (1.0.2-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #789692)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Tue, 23 Jun 2015 14:42:32 +0200
+
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..98ad820
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: node-strip-json-comments
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Julien Puydt <julien.puydt at laposte.net>
+Build-Depends: debhelper (>= 9), dh-buildinfo, nodejs
+Standards-Version: 3.9.6
+Homepage: https://github.com/sindresorhus/strip-json-comments
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-strip-json-comments.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-strip-json-comments.git
+Testsuite: autopkgtest
+
+Package: node-strip-json-comments
+Architecture: all
+Depends: nodejs, ${misc:Depends}
+Description: Strip comments from JSON
+ This simple script will let you use comments in your JSON files, since you can
+ use it to strip them afterwards.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..924badf
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: strip-json-comments
+Upstream-Contact: https://github.com/sindresorhus/strip-json-comments/issues
+Source: https://github.com/sindresorhus/strip-json-comments
+
+Files: *
+Copyright: 2015 Sindre Sorhus <sindresorhus at gmail.com> (http://sindresorhus.com)
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Julien Puydt <julien.puydt at laposte.net>
+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..cdb5f04
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+readme.md
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..5be0ddc
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/strip-json-comments/
+strip-json-comments.js usr/lib/nodejs/strip-json-comments/
+cli.js usr/lib/nodejs/strip-json-comments/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..1ac667d
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/strip-json-comments/cli.js usr/bin/strip-json-comments
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..bbd0457
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/strip-json-comments.1
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..9b41a8d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_nodejs.patch
diff --git a/debian/patches/use_nodejs.patch b/debian/patches/use_nodejs.patch
new file mode 100644
index 0000000..d6dbc28
--- /dev/null
+++ b/debian/patches/use_nodejs.patch
@@ -0,0 +1,8 @@
+--- a/cli.js
++++ b/cli.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/env nodejs
+ 'use strict';
+ var fs = require('fs');
+ var strip = require('./strip-json-comments');
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f5d94b5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+override_dh_install:
+	chmod +x cli.js
+	dh_install
+
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/strip-json-comments.1 b/debian/strip-json-comments.1
new file mode 100644
index 0000000..44ce3ef
--- /dev/null
+++ b/debian/strip-json-comments.1
@@ -0,0 +1,26 @@
+.TH STRIP-JSON-COMMENTS "1" "Jun 2015" "strip-json-comments" "User Commands"
+.SH NAME
+strip-json-comments \- strip JSON comments
+.SH SYNOPSIS
+.B strip-json-comments -h
+
+.B strip-json-comments -v
+
+.B strip-json-comments <infile>
+.SH DESCRIPTION
+.TP
+Strips JSON comments from input, either from a named file, or from stdin. The filtered
+output is on stdout.
+.SH OPTION
+.TP
+.BI "-v"
+prints the version
+.TP
+.BI "-h"
+prints help screen with example uses
+.SH EXAMPLES
+.TP 
+cat input.json | strip-json-comments > output.json
+.TP
+strip-json-comments input.json > output.json
+
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..80e3db5
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-strip-json-comments
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..f76d197
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('strip-json-comments');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3c8f141
--- /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-strip-json-comments-$1.tar.gz/ \
+ https://github.com/sindresorhus/strip-json-comments/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list