debian/0000755000000000000000000000000012120114255007157 5ustar debian/examples0000644000000000000000000000001312120114255010712 0ustar examples/*
debian/copyright0000644000000000000000000000245012120114255011113 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: optimist
Files: *
Copyright: © 2010, James Halliday
License: MIT
Files: debian/*
Copyright: © 2011-2012, David Paleino
License: MIT
License: MIT
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.
debian/watch0000644000000000000000000000017612120114255010214 0ustar version=3
https://alioth.debian.org/~dapal/npmjs.php?id=optimist \
http://registry.npmjs.org/optimist/-/optimist-(\d+.*)\.tgz
debian/install0000644000000000000000000000003012120114255010541 0ustar index.js usr/lib/nodejs
debian/docs0000644000000000000000000000002012120114255010022 0ustar README.markdown
debian/changelog0000644000000000000000000000213612120114255011033 0ustar node-optimist (0.3.5-1) unstable; urgency=low
* Imported Upstream version 0.3.5
* updated patch for renamed example directory
* control: added dod to uploaders
-- Dominique Dumont Wed, 13 Mar 2013 16:17:42 +0100
node-optimist (0.3.1-2) unstable; urgency=low
* Migrate from node to nodejs (Closes: #686892)
* Standards-Version bump to 3.9.4, no changes needed
* Updated debian/copyright
-- David Paleino Thu, 20 Sep 2012 12:33:30 +0200
node-optimist (0.3.1-1) unstable; urgency=low
* New upstream version
-- David Paleino Sat, 31 Dec 2011 12:14:52 +0100
node-optimist (0.2.8-1) unstable; urgency=low
* New upstream version
* Add debian/watch
-- David Paleino Wed, 16 Nov 2011 22:38:29 +0100
node-optimist (0.2.6-2) unstable; urgency=low
* Compliance to Debian Javascript Policy
-- David Paleino Sun, 16 Oct 2011 00:11:30 +0200
optimist.js (0.2.6-1) unstable; urgency=low
* Initial release (Closes: #645176)
-- David Paleino Thu, 13 Oct 2011 11:36:40 +0200
debian/compat0000644000000000000000000000000212120114255010355 0ustar 8
debian/patches/0000755000000000000000000000000012120114255010606 5ustar debian/patches/series0000644000000000000000000000003312120114255012017 0ustar 01-migrate_to_nodejs.patch
debian/patches/01-migrate_to_nodejs.patch0000644000000000000000000000731712120114255015551 0ustar From: David Paleino
Subject: migrate from node to nodejs
Forwarded: not-needed
---
example/bool.js | 2 +-
example/boolean_double.js | 2 +-
example/boolean_single.js | 2 +-
example/default_hash.js | 2 +-
example/default_singles.js | 2 +-
example/divide.js | 2 +-
example/line_count.js | 2 +-
example/line_count_options.js | 2 +-
example/line_count_wrap.js | 2 +-
example/nonopt.js | 2 +-
example/reflect.js | 2 +-
example/short.js | 2 +-
example/string.js | 2 +-
example/xup.js | 2 +-
14 files changed, 14 insertions(+), 14 deletions(-)
--- node-optimist.orig/example/bool.js
+++ node-optimist/example/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/example/boolean_double.js
+++ node-optimist/example/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/example/boolean_single.js
+++ node-optimist/example/boolean_single.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.boolean('v')
.argv
--- node-optimist.orig/example/default_hash.js
+++ node-optimist/example/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/example/default_singles.js
+++ node-optimist/example/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/example/divide.js
+++ node-optimist/example/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/example/line_count.js
+++ node-optimist/example/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/example/line_count_options.js
+++ node-optimist/example/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/example/line_count_wrap.js
+++ node-optimist/example/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/example/nonopt.js
+++ node-optimist/example/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/example/reflect.js
+++ node-optimist/example/reflect.js
@@ -1,2 +1,2 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
console.dir(require('optimist').argv);
--- node-optimist.orig/example/short.js
+++ node-optimist/example/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/example/string.js
+++ node-optimist/example/string.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
var argv = require('optimist')
.string('x', 'y')
.argv
--- node-optimist.orig/example/xup.js
+++ node-optimist/example/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) {
debian/source/0000755000000000000000000000000012120114255010457 5ustar debian/source/format0000644000000000000000000000001412120114255011665 0ustar 3.0 (quilt)
debian/control0000644000000000000000000000133312120114255010562 0ustar Source: node-optimist
Section: web
Priority: extra
Maintainer: Debian Javascript Maintainers
Uploaders: David Paleino ,
Dominique Dumont
Build-Depends:
debhelper (>= 8.0.0)
, dh-buildinfo
Standards-Version: 3.9.4
Homepage: https://github.com/substack/node-optimist
Vcs-Git: git://git.debian.org/collab-maint/node-optimist.git
Vcs-Browser: http://git.debian.org/?p=collab-maint/node-optimist.git;a=summary
Package: node-optimist
Architecture: all
Depends:
${misc:Depends}
, 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.
debian/rules0000755000000000000000000000043312120114255010237 0ustar #!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_install:
dh_install
dh_buildinfo
mv $(CURDIR)/debian/node-optimist/usr/lib/nodejs/index.js \
$(CURDIR)/debian/node-optimist/usr/lib/nodejs/optimist.js