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

Julien Puydt julien.puydt at laposte.net
Tue Oct 20 08:30:31 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-promise.

commit 853b3d5cca5cf4cd1e35bc09b7b8c4733b473c84
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Mon Oct 19 19:50:50 2015 +0200

    Initial packaging
---
 debian/changelog                 |  6 ++++++
 debian/compat                    |  1 +
 debian/control                   | 28 ++++++++++++++++++++++++++++
 debian/copyright                 | 35 +++++++++++++++++++++++++++++++++++
 debian/docs                      |  1 +
 debian/libjs-es6-promise.install |  2 ++
 debian/node-es6-promise.install  |  2 ++
 debian/rules                     | 12 ++++++++++++
 debian/tests/control             |  2 ++
 debian/tests/require             |  3 +++
 debian/watch                     |  6 ++++++
 11 files changed, 98 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..30a58d0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-es6-promise (3.0.2+ds-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #XXXXXX)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Mon, 19 Oct 2015 17:37:30 +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..c4d9bc5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: node-es6-promise
+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, node-es6-module-transpiler, uglifyjs
+Standards-Version: 3.9.6
+Homepage: https://github.com/jakearchibald/es6-promise
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-es6-promise.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-es6-promise.git
+
+Package: node-es6-promise
+Architecture: all
+Depends: ${misc:Depends} , nodejs
+Description: Lightweight async code library for JavaScript (Node.js module)
+ A lightweight library that provides tools for organizing asynchronous code
+ in the browser, according to the ECMAScript 6 Promise, but as an ECMAScript 5
+ library.
+ .
+ Node.js is an event-based server-side JavaScript engine.
+
+Package: libjs-es6-promise
+Architecture: all
+Depends: ${misc:Depends} 
+Description: Lightweight async code library for JavaScript
+ A lightweight library that provides tools for organizing asynchronous code
+ in the browser, according to the ECMAScript 6 Promise, but as an ECMAScript 5
+ library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ec513ca
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: es6-promise
+Upstream-Contact: https://github.com/jakearchibald/es6-promise/issues
+Source: https://github.com/jakearchibald/es6-promise
+Files-Excluded: dist/*
+
+Files: *
+Copyright: 2015 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
+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..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/libjs-es6-promise.install b/debian/libjs-es6-promise.install
new file mode 100644
index 0000000..bf3a164
--- /dev/null
+++ b/debian/libjs-es6-promise.install
@@ -0,0 +1,2 @@
+dist/es6-promise.js usr/share/javascript/es6-promise/
+dist/es6-promise.min.js usr/share/javascript/es6-promise/
\ No newline at end of file
diff --git a/debian/node-es6-promise.install b/debian/node-es6-promise.install
new file mode 100644
index 0000000..05c4af0
--- /dev/null
+++ b/debian/node-es6-promise.install
@@ -0,0 +1,2 @@
+dist/es6-promise.js usr/lib/nodejs/es6-promise/dist
+package.json usr/lib/nodejs/es6-promise
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..04be571
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	mkdir dist
+	compile-modules convert -f bundle -o dist/es6-promise.js lib/es6-promise.umd.js
+	uglifyjs dist/es6-promise.js > dist/es6-promise.min.js
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..91736b6
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-es6-promise
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..ae86345
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('es6-promise');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1a5beeb
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+opts=\
+repacksuffix=+ds,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-es6-promise-$1.tar.gz/ \
+ https://github.com/jakearchibald/ES6-Promises/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list