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

Julien Puydt julien.puydt at laposte.net
Sat Jun 11 12:09:58 UTC 2016


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

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

commit b4e6fb2ff8f78704550ebab7b6a2da86772f6a4f
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Jun 11 08:12:04 2016 +0200

    Initial packaging
---
 debian/changelog                |  6 ++++++
 debian/compat                   |  1 +
 debian/control                  | 19 +++++++++++++++++++
 debian/copyright                | 35 +++++++++++++++++++++++++++++++++++
 debian/dirs                     |  1 +
 debian/docs                     |  1 +
 debian/esparse.1                | 30 ++++++++++++++++++++++++++++++
 debian/esvalidate.1             | 15 +++++++++++++++
 debian/install                  |  3 +++
 debian/links                    |  2 ++
 debian/manpages                 |  2 ++
 debian/patches/node_vs_nodejs   | 20 ++++++++++++++++++++
 debian/patches/series           |  1 +
 debian/rules                    |  8 ++++++++
 debian/source/format            |  1 +
 debian/source/lintian-overrides |  2 ++
 debian/tests/control            |  2 ++
 debian/tests/require            |  3 +++
 debian/watch                    |  5 +++++
 19 files changed, 157 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e164d1b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-esprima (2.7.2-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #750223)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sat, 11 Jun 2016 08:10:55 +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..b15d5d8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: node-esprima
+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 (>= 9), dh-buildinfo, nodejs
+Standards-Version: 3.9.8
+Homepage: http://esprima.org
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-esprima.git
+Vcs-Browser: https://anonscm.debian.org/git/pkg-javascript/node-esprima.git
+
+Package: node-esprima
+Architecture: all
+Depends: ${misc:Depends}, nodejs
+Description: ECMAScript parsing infrastructure for multipurpose analysis
+ Esprima is a high-performance and standard-compliant parser for ECMAScript
+ written in ECMAScript.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..42f632b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: esprima
+Upstream-Contact: https://github.com/jquery/esprima/issues
+Source: http://esprima.org
+
+Files: *
+Copyright: 2016 Ariya Hidayat <ariya.hidayat at gmail.com>
+License: BSD-2-Clause
+
+Files: debian/*
+Copyright: 2016 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/esparse.1 b/debian/esparse.1
new file mode 100644
index 0000000..b2eca3d
--- /dev/null
+++ b/debian/esparse.1
@@ -0,0 +1,30 @@
+.TH ESPARSE "1" "June 2016" "ECMAScript Parser" "User Commands"
+.SH NAME
+esparse \- ECMAScript Parser using Esprima
+.SH DESCRIPTION
+.SS "Usage:"
+.IP
+esparse [options] file.js
+.PP
+Available options:
+.TP
+\fB\-\-comment\fR
+Gather all line and block comments in an array
+.TP
+\fB\-\-loc\fR
+Include line\-column location info for each syntax node
+.TP
+\fB\-\-range\fR
+Include index\-based range for each syntax node
+.TP
+\fB\-\-raw\fR
+Display the raw value of literals
+.TP
+\fB\-\-tokens\fR
+List all tokens in an array
+.TP
+\fB\-\-tolerant\fR
+Tolerate errors on a best\-effort basis (experimental)
+.TP
+\fB\-v\fR, \fB\-\-version\fR
+Shows program version
diff --git a/debian/esvalidate.1 b/debian/esvalidate.1
new file mode 100644
index 0000000..591c43e
--- /dev/null
+++ b/debian/esvalidate.1
@@ -0,0 +1,15 @@
+.TH ESVALIDATE "1" "June 2016" "ECMAScript Validator" "User Commands"
+.SH NAME
+esvalidate \- ECMAScript Validator using Esprima
+.SH DESCRIPTION
+.SS "Usage:"
+.IP
+esvalidate [options] file.js
+.PP
+Available options:
+.TP
+\fB\-\-format\fR=\fI\,type\/\fR
+Set the report format, plain (default) or junit
+.TP
+\fB\-v\fR, \fB\-\-version\fR
+Print program version
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..c97060e
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/esprima/
+bin usr/lib/nodejs/esprima/
+esprima.js usr/lib/nodejs/esprima/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..7608f97
--- /dev/null
+++ b/debian/links
@@ -0,0 +1,2 @@
+usr/lib/nodejs/esprima/bin/esparse.js usr/bin/esparse
+usr/lib/nodejs/esprima/bin/esvalidate.js usr/bin/esvalidate
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..d4c5519
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1,2 @@
+debian/esparse.1
+debian/esvalidate.1
diff --git a/debian/patches/node_vs_nodejs b/debian/patches/node_vs_nodejs
new file mode 100644
index 0000000..0d464fe
--- /dev/null
+++ b/debian/patches/node_vs_nodejs
@@ -0,0 +1,20 @@
+Description: Debian's node is /usr/bin/nodejs
+Author: Julien Puydt
+Forwarded: no
+
+--- a/bin/esparse.js
++++ b/bin/esparse.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ /*
+   Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved.
+ 
+--- a/bin/esvalidate.js
++++ b/bin/esvalidate.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ /*
+   Copyright (c) jQuery Foundation, Inc. and Contributors, All Rights Reserved.
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..757bf33
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+node_vs_nodejs
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4feef32
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_fixperms:
+	dh_fixperms
+	chmod +x debian/node-esprima/usr/lib/nodejs/esprima/bin/*
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..ac62d3d
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# Big lists come from the standard
+node-esprima source: source-is-missing esprima.js line length is 6439 characters (>512)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..29e92e1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-esprima
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..637cb07
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('esprima');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c45d77f
--- /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-esprima-$1.tar.gz/ \
+ https://github.com/jquery/esprima/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list