[Pkg-javascript-commits] [node-expect.js] 01/01: provide libjs-expect.js package

Leo Iannacone l3on-guest at moszumanska.debian.org
Thu May 8 14:41:31 UTC 2014


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

l3on-guest pushed a commit to branch master
in repository node-expect.js.

commit 87e80fddfd5713432e4b477a5785bd9961b5b1ff
Author: Leo Iannacone <l3on at ubuntu.com>
Date:   Thu May 8 16:41:17 2014 +0200

    provide libjs-expect.js package
---
 debian/control                             | 20 ++++++++++++++++++--
 debian/dirs                                |  1 -
 debian/{docs => libjs-expect.js.docs}      |  0
 debian/libjs-expect.js.install             |  2 ++
 debian/links                               |  1 -
 debian/{docs => node-expect.js.docs}       |  0
 debian/{install => node-expect.js.install} |  0
 debian/rules                               |  5 +++++
 8 files changed, 25 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 327555f..8dfd878 100644
--- a/debian/control
+++ b/debian/control
@@ -7,18 +7,18 @@ Build-Depends:
  debhelper (>= 8)
  , dh-buildinfo
  , nodejs
+ , uglifyjs
 Standards-Version: 3.9.5
 Homepage: https://github.com/LearnBoost/expect.js
 Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-expect.js.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-expect.js.git
 
 Package: node-expect.js
-Provides: libjs-expect.js
 Architecture: all
 Depends:
  ${misc:Depends}
  , nodejs
-Description: behavior-driven development style assertions for Node.js and the browser
+Description: behavior-driven development style assertions - Node.js module
  expect.js is minimalistic BDD assertion toolkit based on
  should.js but with some API simplifications, in order to get
  a better browser integration.
@@ -30,3 +30,19 @@ Description: behavior-driven development style assertions for Node.js and the br
   * Standalone. Single global with no prototype extensions or shims.
  .
  Node.js is an event-based server-side JavaScript engine.
+
+Package: libjs-expect.js
+Architecture: all
+Recommends: javascript-common
+Depends:
+ ${misc:Depends}
+Description: behavior-driven development style assertions - JavaScript library
+ expect.js is minimalistic BDD assertion toolkit based on
+ should.js but with some API simplifications, in order to get
+ a better browser integration.
+ .
+ Some relevant feature is:
+  * Cross-browser: works on IE6+, Firefox, Safari, Chrome, Opera.
+  * Compatible with all test frameworks.
+  * Node.js ready (`require('expect.js')`).
+  * Standalone. Single global with no prototype extensions or shims.
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644
index 5626edc..0000000
--- a/debian/dirs
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/javascript/
diff --git a/debian/docs b/debian/libjs-expect.js.docs
similarity index 100%
copy from debian/docs
copy to debian/libjs-expect.js.docs
diff --git a/debian/libjs-expect.js.install b/debian/libjs-expect.js.install
new file mode 100644
index 0000000..b678981
--- /dev/null
+++ b/debian/libjs-expect.js.install
@@ -0,0 +1,2 @@
+expect.js usr/share/javascript/expect.js
+expect.min.js usr/share/javascript/expect.js
diff --git a/debian/links b/debian/links
deleted file mode 100644
index c5beec9..0000000
--- a/debian/links
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/nodejs/expect.js/index.js usr/share/javascript/expect.js
diff --git a/debian/docs b/debian/node-expect.js.docs
similarity index 100%
rename from debian/docs
rename to debian/node-expect.js.docs
diff --git a/debian/install b/debian/node-expect.js.install
similarity index 100%
rename from debian/install
rename to debian/node-expect.js.install
diff --git a/debian/rules b/debian/rules
index edb585c..1b2c288 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,11 @@
 	dh $@
 
 override_dh_auto_build:
+	rm -f expect.js expect.min.js
+
+override_dh_auto_build:
+	cp index.js expect.js
+	uglifyjs -o expect.min.js expect.js
 
 override_dh_auto_test:
 

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



More information about the Pkg-javascript-commits mailing list