[Pkg-javascript-commits] [node-es6-shim] 03/03: Initial packaging

Julien Puydt julien.puydt at laposte.net
Fri Oct 16 06:57:43 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-es6-shim.

commit fa52f855e01f286ae3cc39195efd0a1ceab20c77
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Oct 15 22:03:11 2015 +0200

    Initial packaging
---
 debian/.git-dpm                 |  3 +++
 debian/changelog                |  5 +++++
 debian/compat                   |  1 +
 debian/control                  | 37 +++++++++++++++++++++++++++++++++++++
 debian/copyright                | 41 +++++++++++++++++++++++++++++++++++++++++
 debian/libjs-es6-shim.docs      |  1 +
 debian/libjs-es6-shim.install   |  4 ++++
 debian/node-es6-shim.docs       |  1 +
 debian/node-es6-shim.install    |  3 +++
 debian/rules                    | 17 +++++++++++++++++
 debian/source/lintian-overrides |  6 ++++++
 debian/tests/control            |  2 ++
 debian/tests/require            |  3 +++
 debian/watch                    |  5 +++++
 14 files changed, 129 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index b4c664a..6a0456f 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
 node-es6-shim_0.33.6.orig.tar.gz
 b729204742b86d8c499033fc77a08ccc0f368b3e
 223035
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c5a60d3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-es6-shim (0.33.6-1) unstable; urgency=low
+
+  * Initial release (Closes: #801922)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Fri, 16 Oct 2015 08:53:08 +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..48ca825
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: node-es6-shim
+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), nodejs, uglifyjs
+Standards-Version: 3.9.6
+Homepage: https://github.com/paulmillr/es6-shim/
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-es6-shim.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-es6-shim.git
+
+Package: node-es6-shim
+Architecture: all
+Depends: nodejs, ${misc:Depends}
+Description: ECMAScript 6 compat. shims for legacy JavaScript engines (Node.js)
+ The es6-shim library monkey-patches a JavaScript context to contain all
+ ECMAScript 6 (Harmony) methods that can be faithfully emulated with a legacy
+ JavaScript engine.
+ .
+ The es6-sham part tries to complete the picture as best as possible, but
+ for those methods the result is not as close and mostly intends to avoid
+ runtime errors : in many cases it might just silently fail.
+ .
+ Node.js is an event-based server-side JavaScript engine.
+
+Package: libjs-es6-shim
+Architecture: all
+Depends: ${misc:Depends}
+Description: ECMAScript 6 compat. shims for legacy JavaScript engines (library)
+ The es6-shim library monkey-patches a JavaScript context to contain all
+ ECMAScript 6 (Harmony) methods that can be faithfully emulated with a legacy
+ JavaScript engine.
+ .
+ The es6-sham part tries to complete the picture as best as possible, but
+ for those methods the result is not as close and mostly intends to avoid
+ runtime errors : in many cases it might just silently fail.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8485ddd
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,41 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: es6-shim
+Upstream-Contact: https://github.com/paulmillr/es6-shim/issues
+Source: https://github.com/paulmillr/es6-shim/
+
+Files: *
+Copyright: 2015 Paul Miller and contributors
+License: Expat
+
+Files: node_modules/chai/*
+Copyright: 2011-2014 Jake Luer
+License: Expat
+
+Files: node_modules/mocha/*
+Copyright: 2011 TJ Holowaychuk
+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/libjs-es6-shim.docs b/debian/libjs-es6-shim.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/libjs-es6-shim.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libjs-es6-shim.install b/debian/libjs-es6-shim.install
new file mode 100644
index 0000000..fe633a8
--- /dev/null
+++ b/debian/libjs-es6-shim.install
@@ -0,0 +1,4 @@
+es6-sham.js usr/share/javascript/es6-shim/
+es6-sham.min.js usr/share/javascript/es6-shim/
+es6-shim.js usr/share/javascript/es6-shim/
+es6-shim.min.js usr/share/javascript/es6-shim/
diff --git a/debian/node-es6-shim.docs b/debian/node-es6-shim.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/node-es6-shim.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/node-es6-shim.install b/debian/node-es6-shim.install
new file mode 100644
index 0000000..a1dc983
--- /dev/null
+++ b/debian/node-es6-shim.install
@@ -0,0 +1,3 @@
+es6-sham.js usr/lib/nodejs/es6-shim/
+es6-shim.js usr/lib/nodejs/es6-shim/
+package.json usr/lib/nodejs/es6-shim/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5f1b0db
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	uglifyjs es6-sham.js > es6-sham.min.js
+	uglifyjs es6-shim.js > es6-shim.min.js
+
+# Debian doesn't have all it takes
+override_dh_auto_test:
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGELOG.md
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..3bffc37
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,6 @@
+# Those are in the upstream archive but not used
+node-es6-shim source: source-is-missing node_modules/chai/chai.js
+node-es6-shim source: source-is-missing node_modules/mocha/mocha.js
+# They are prebuilt, but they get rebuilt
+node-es6-shim source: source-contains-prebuilt-javascript-object es6-sham.min.js
+node-es6-shim source: source-contains-prebuilt-javascript-object es6-shim.min.js
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..16400bf
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-es6-shim
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..17b73c7
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('es6-shim');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b5964f5
--- /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-es6-shim-$1.tar.gz/ \
+ https://github.com/paulmillr/es6-shim/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list