[Pkg-javascript-commits] [node-es5-shim] 03/03: Initial packaging
Julien Puydt
julien.puydt at laposte.net
Thu Oct 15 19:44:06 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 e1780580e0e9f079451d326d3b6d0da9fd5c4420
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Thu Oct 15 21:35:42 2015 +0200
Initial packaging
---
debian/.git-dpm | 3 +++
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 36 ++++++++++++++++++++++++++++++++++++
debian/copyright | 33 +++++++++++++++++++++++++++++++++
debian/libjs-es5-shim.docs | 2 ++
debian/libjs-es5-shim.install | 4 ++++
debian/node-es5-shim.docs | 2 ++
debian/node-es5-shim.install | 3 +++
debian/rules | 19 +++++++++++++++++++
debian/source/lintian-overrides | 5 +++++
debian/tests/control | 2 ++
debian/tests/require | 3 +++
debian/watch | 5 +++++
14 files changed, 123 insertions(+)
diff --git a/debian/.git-dpm b/debian/.git-dpm
index e85d24e..f0b8cfb 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
node-es5-shim_4.1.14.orig.tar.gz
972afb643e526f8a1779fa97dd284744fa611708
91455
+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..17b08ea
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-es5-shim (4.1.14-1) unstable; urgency=low
+
+ * Initial release (Closes: #776025)
+
+ -- Julien Puydt <julien.puydt at laposte.net> Thu, 15 Oct 2015 08:17:41 +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..179caa1
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+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: *
+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/libjs-es5-shim.docs b/debian/libjs-es5-shim.docs
new file mode 100644
index 0000000..73c3da3
--- /dev/null
+++ b/debian/libjs-es5-shim.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.docs b/debian/node-es5-shim.docs
new file mode 100644
index 0000000..73c3da3
--- /dev/null
+++ b/debian/node-es5-shim.docs
@@ -0,0 +1,2 @@
+README.md
+CONTRIBUTORS.md
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..5b7145f
--- /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
+
+# Debian doesn't have what it takes to run the tests
+override_dh_auto_test:
+
+override_dh_auto_install:
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..ddf8b89
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,5 @@
+# They are prebuilt, but they get rebuilt
+node-es5-shim source: source-contains-prebuilt-javascript-object es5-sham.min.js
+node-es5-shim source: source-contains-prebuilt-javascript-object es5-shim.min.js
+# There is an inlined function... hence an awfully long line
+node-es5-shim source: source-is-missing es5-shim.js
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..9f6e292
--- /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-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