[Pkg-javascript-commits] [SCM] light-weight option parsing library for NodeJS branch, master, updated. debian/0.3.1-1-4-gd7714c7

David Paleino dapal at debian.org
Thu Sep 20 10:35:07 UTC 2012


The following commit has been merged in the master branch:
commit 676a805666b4eccf0f58c25230016e812865f41f
Author: David Paleino <dapal at debian.org>
Date:   Thu Sep 20 12:30:12 2012 +0200

    Migrate from node to nodejs (Closes: #686892)

diff --git a/debian/changelog b/debian/changelog
index c1ed8d1..63ad61d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-optimist (0.3.1-2) UNRELEASED; urgency=low
+
+  * Migrate from node to nodejs (Closes: #686892)
+
+ -- David Paleino <dapal at debian.org>  Thu, 20 Sep 2012 12:28:09 +0200
+
 node-optimist (0.3.1-1) unstable; urgency=low
 
   * New upstream version
diff --git a/debian/control b/debian/control
index d4e65a1..d53a7fe 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Package: node-optimist
 Architecture: all
 Depends:
  ${misc:Depends}
- , nodejs
+ , nodejs (>= 0.6.19~dfsg1-3~)
  , node-wordwrap
 Description: light-weight option parsing library for NodeJS
  Optimist is a light-weight node.js library for option parsing.
diff --git a/debian/patches/01-migrate_to_nodejs.patch b/debian/patches/01-migrate_to_nodejs.patch
new file mode 100644
index 0000000..37c1170
--- /dev/null
+++ b/debian/patches/01-migrate_to_nodejs.patch
@@ -0,0 +1,130 @@
+From: David Paleino <dapal at debian.org>
+Subject: migrate from node to nodejs
+Forwarded: not-needed
+
+---
+ examples/bool.js               |    2 +-
+ examples/boolean_double.js     |    2 +-
+ examples/boolean_single.js     |    2 +-
+ examples/default_hash.js       |    2 +-
+ examples/default_singles.js    |    2 +-
+ examples/divide.js             |    2 +-
+ examples/line_count.js         |    2 +-
+ examples/line_count_options.js |    2 +-
+ examples/line_count_wrap.js    |    2 +-
+ examples/nonopt.js             |    2 +-
+ examples/reflect.js            |    2 +-
+ examples/short.js              |    2 +-
+ examples/string.js             |    2 +-
+ examples/xup.js                |    2 +-
+ 14 files changed, 14 insertions(+), 14 deletions(-)
+
+--- node-optimist.orig/examples/bool.js
++++ node-optimist/examples/bool.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var util = require('util');
+ var argv = require('optimist').argv;
+ 
+--- node-optimist.orig/examples/boolean_double.js
++++ node-optimist/examples/boolean_double.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist')
+     .boolean(['x','y','z'])
+     .argv
+--- node-optimist.orig/examples/boolean_single.js
++++ node-optimist/examples/boolean_single.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist')
+     .boolean('v')
+     .argv
+--- node-optimist.orig/examples/default_hash.js
++++ node-optimist/examples/default_hash.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ 
+ var argv = require('optimist')
+     .default({ x : 10, y : 10 })
+--- node-optimist.orig/examples/default_singles.js
++++ node-optimist/examples/default_singles.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist')
+     .default('x', 10)
+     .default('y', 10)
+--- node-optimist.orig/examples/divide.js
++++ node-optimist/examples/divide.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ 
+ var argv = require('optimist')
+     .usage('Usage: $0 -x [num] -y [num]')
+--- node-optimist.orig/examples/line_count.js
++++ node-optimist/examples/line_count.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist')
+     .usage('Count the lines in a file.\nUsage: $0')
+     .demand('f')
+--- node-optimist.orig/examples/line_count_options.js
++++ node-optimist/examples/line_count_options.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist')
+     .usage('Count the lines in a file.\nUsage: $0')
+     .options({
+--- node-optimist.orig/examples/line_count_wrap.js
++++ node-optimist/examples/line_count_wrap.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist')
+     .usage('Count the lines in a file.\nUsage: $0')
+     .wrap(80)
+--- node-optimist.orig/examples/nonopt.js
++++ node-optimist/examples/nonopt.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist').argv;
+ console.log('(%d,%d)', argv.x, argv.y);
+ console.log(argv._);
+--- node-optimist.orig/examples/reflect.js
++++ node-optimist/examples/reflect.js
+@@ -1,2 +1,2 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ console.dir(require('optimist').argv);
+--- node-optimist.orig/examples/short.js
++++ node-optimist/examples/short.js
+@@ -1,3 +1,3 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist').argv;
+ console.log('(%d,%d)', argv.x, argv.y);
+--- node-optimist.orig/examples/string.js
++++ node-optimist/examples/string.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist')
+     .string('x', 'y')
+     .argv
+--- node-optimist.orig/examples/xup.js
++++ node-optimist/examples/xup.js
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ var argv = require('optimist').argv;
+ 
+ if (argv.rif - 5 * argv.xup > 7.138) {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..09e0b78
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-migrate_to_nodejs.patch

-- 
light-weight option parsing library for NodeJS



More information about the Pkg-javascript-commits mailing list