[Pkg-javascript-commits] [node-es5-shim] 03/05: Initial packaging
Julien Puydt
julien.puydt at laposte.net
Thu Oct 15 06:18:51 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-es5-shim.
commit 219155e65668bb187ea02cd1aaf0672c7f17e209
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Thu Oct 15 07:50:52 2015 +0200
Initial packaging
---
debian/changelog | 6 ++++++
debian/compat | 1 +
debian/control | 36 ++++++++++++++++++++++++++++++++++++
debian/copyright | 34 ++++++++++++++++++++++++++++++++++
debian/docs | 2 ++
debian/libjs-es5-shim.install | 4 ++++
debian/node-es5-shim.install | 3 +++
debian/rules | 19 +++++++++++++++++++
debian/tests/control | 2 ++
debian/tests/require | 3 +++
debian/watch | 6 ++++++
11 files changed, 116 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..faef20d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-es5-shim (4.1.14+dfsg-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #776025)
+
+ -- Julien Puydt <julien.puydt at laposte.net> Wed, 14 Oct 2015 22:32:58 +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..091a7f4
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,36 @@
+Source: node-es5-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: http://github.com/es-shims/es5-shim/
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-es5-shim.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-es5-shim.git
+
+Package: node-es5-shim
+Architecture: all
+Depends: nodejs, ${misc:Depends}
+Description: ECMAScript 5 compat. shims for old JavaScript engines (Node.js)
+ The es5-shim library monkey-patches a JavaScript context to contain
+ all ECMAScript 5 methods that can be faithfully emulated with a
+ legacy JavaScript engine.
+ .
+ The es5-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-es5-shim
+Architecture: all
+Depends: ${misc:Depends}
+Description: ECMAScript 5 compat. shims for old JavaScript engines (library)
+ The es5-shim library monkey-patches a JavaScript context to contain
+ all ECMAScript 5 methods that can be faithfully emulated with a
+ legacy JavaScript engine.
+ .
+ The es5-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..30d52da
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: es5-shim
+Upstream-Contact: http://github.com/es-shims/es5-shim/issues
+Source: http://github.com/es-shims/es5-shim/
+Files-Excluded: *.min.js *.map
+
+Files: *
+Copyright: 2009-2014 Kristopher Michael Kowal and contributors
+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..73c3da3
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README.md
+CONTRIBUTORS.md
diff --git a/debian/libjs-es5-shim.install b/debian/libjs-es5-shim.install
new file mode 100644
index 0000000..e20fc2b
--- /dev/null
+++ b/debian/libjs-es5-shim.install
@@ -0,0 +1,4 @@
+es5-sham.js usr/share/javascript/es5-shim/
+es5-sham.min.js usr/share/javascript/es5-shim/
+es5-shim.js usr/share/javascript/es5-shim/
+es5-shim.min.js usr/share/javascript/es5-shim/
diff --git a/debian/node-es5-shim.install b/debian/node-es5-shim.install
new file mode 100644
index 0000000..d6ca87c
--- /dev/null
+++ b/debian/node-es5-shim.install
@@ -0,0 +1,3 @@
+es5-sham.js usr/lib/nodejs/es5-shim/
+es5-shim.js usr/lib/nodejs/es5-shim/
+package.json usr/lib/nodejs/es5-shim/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0eb1b16
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ uglifyjs es5-sham.js > es5-sham.min.js
+ uglifyjs es5-shim.js > es5-shim.min.js
+
+override_dh_auto_clean:
+ rm -f *.min.js
+
+override_dh_auto_test:
+
+override_dh_auto_install:
+ dh_install
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f2ebd59
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-es5-shim
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..2cb3629
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('es5-shim');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c52b7f2
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+opts=\
+repacksuffix=+dfsg,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-es5-shim-$1.tar.gz/ \
+ https://github.com/es-shims/es5-shim/tags .*/archive/v?([\d\.]+).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-es5-shim.git
More information about the Pkg-javascript-commits
mailing list