[Pkg-javascript-commits] [node-regjsparser] 02/02: Initial packaging

Julien Puydt julien.puydt at laposte.net
Sun Aug 20 17:10:14 UTC 2017


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

jpuydt-guest pushed a commit to branch master
in repository node-regjsparser.

commit 0c45fca507c133794dd67cd663372ed17f84913b
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sun Aug 20 10:06:09 2017 +0200

    Initial packaging
---
 debian/changelog                |  5 +++++
 debian/compat                   |  1 +
 debian/control                  | 19 +++++++++++++++++++
 debian/copyright                | 35 +++++++++++++++++++++++++++++++++++
 debian/dirs                     |  1 +
 debian/docs                     |  1 +
 debian/install                  |  3 +++
 debian/links                    |  1 +
 debian/manpages                 |  1 +
 debian/regjsparser.1            | 33 +++++++++++++++++++++++++++++++++
 debian/rules                    |  4 ++++
 debian/source/format            |  1 +
 debian/source/lintian-overrides |  2 ++
 debian/tests/control            |  2 ++
 debian/tests/require            |  3 +++
 debian/watch                    |  5 +++++
 16 files changed, 117 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..56e5937
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-regjsparser (0.2.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #872737)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sun, 20 Aug 2017 18:56:22 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0e02c92
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: node-regjsparser
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Julien Puydt <julien.puydt at laposte.net>
+Build-Depends: debhelper (>= 10), nodejs
+Standards-Version: 4.0.1
+Homepage: https://github.com/jviereck/regjsparser
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-regjsparser.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-regjsparser.git
+
+Package: node-regjsparser
+Architecture: all
+Depends: ${misc:Depends}, nodejs, node-jsesc (>= 0.5.0)
+Description: Parser for JavaScript's RegExp for Node.js
+ This module provides a parser for the JavaScript's RegExp, itself written
+ in Javascript.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..80dc834
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: regjsparser
+Upstream-Contact: https://github.com/jviereck/regjsparser/issues
+Source: https://github.com/jviereck/regjsparser
+
+Files: *
+Copyright: 2017 Julian Viereck and contributors
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2017 Julien Puydt <julien.puydt at laposte.net>
+License: BSD-2-Clause
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE HOLDERS OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/bin
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..5815bdf
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/regjsparser/
+parser.js usr/lib/nodejs/regjsparser/
+bin usr/lib/nodejs/regjsparser/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..642869e
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/regjsparser/bin/parser usr/bin/regjsparser
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..d55334e
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/regjsparser.1
diff --git a/debian/regjsparser.1 b/debian/regjsparser.1
new file mode 100644
index 0000000..ed265d9
--- /dev/null
+++ b/debian/regjsparser.1
@@ -0,0 +1,33 @@
+.TH REGJSPARSER "1" "August 2017" "regjsparser v0.2.1" "User Commands"
+.SH NAME
+regjsparser \- Parser of Javascript regular expressions
+.SH SYNOPSIS
+.B regjsparser\fR [regex ...]
+
+.B regjsparser [\-f | \fB\-\-flags]\fR [flags] [regex ...]
+
+.B regjsparser [\-v | \fB\-\-version]\fR
+
+.B regjsparser [\-h | \fB\-\-help]\fR
+
+.SH OPTIONS
+.BI "flags"
+flags to set options
+.TP
+.BI "version"
+prints the version
+.TP
+.BI "help"
+prints help screen
+
+.SH FLAGS
+
+Currently, only u to enable Unicode support is available.
+
+.SH EXAMPLES
+.IP
+regjsparser '^foo.bar$'
+
+regjsparser '[a\-zA\-Z0\-9]'
+
+regjsparser -f u '^foo.bar$'
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..7224677
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# the tool to generate that long line is available in node-esprima
+node-regjsparser source: source-is-missing parser.js line length is 5108 characters (>512)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f79bf1c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-regjsparser
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..9a8ff0d
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+node -e "require('regjsparser');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..bce2f6d
--- /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-regjsparser-$1.tar.gz/ \
+ https://github.com/jviereck/regjsparser/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list