Commit 98dddfcb authored by Jérémy Lal's avatar Jérémy Lal

Initial debianization

parent d7828560
node-tap-parser (3.0.3-1) UNRELEASED; urgency=low
* Initial release (Closes: #844030)
-- Jérémy Lal <kapouer@melix.org> Fri, 11 Nov 2016 23:07:31 +0100
Source: node-tap-parser
Section: web
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Jérémy Lal <kapouer@melix.org>
Build-Depends:
debhelper (>= 9)
, dh-buildinfo
, help2man
, nodejs
Standards-Version: 3.9.8
Homepage: https://github.com/substack/tap-parser
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-tap-parser.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-tap-parser.git
Package: node-tap-parser
Architecture: all
Depends:
${misc:Depends}
, nodejs
, node-js-yaml
Description: Test anything protocol stream parser - Node.js module
This module parses tap-formatted input as a stream of JavaScript
objects.
It is mainly used to extend tap reporters in various test setups.
.
Node.js is an event-based server-side JavaScript engine.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: tap-parser
Upstream-Contact: https://github.com/substack/tap-parser/issues
Source: https://github.com/substack/tap-parser
Files: *
Copyright: 2016 James Halliday <mail@substack.net> (http://substack.net)
License: Expat
Files: node_modules/events-to-array.js
Copyright: 2015 Isaac Z. Schlueter and Contributors
License: ISC
Source: https://github.com/isaacs/events-to-array/releases/tag/v1.0.2
Comment: Bundled because tied to this package
Files: debian/*
Copyright: 2016 Jérémy Lal <kapouer@melix.org>
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.
License: ISC
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
readme.markdown
bin/usage.txt usr/lib/nodejs/tap-parser/
bin/cmd.js usr/lib/nodejs/tap-parser/
bin usr/lib/nodejs/tap-parser/
node_modules usr/lib/nodejs/tap-parser/
package.json usr/lib/nodejs/tap-parser/
index.js usr/lib/nodejs/tap-parser/
usr/lib/nodejs/tap-parser/bin/cmd.js usr/bin/tap-parser
debian/tap-parser.1
Description: module events-to-array
see copyright for more info
Last-Update: 2016-11-11
Author: Jérémy Lal <kapouer@melix.org>
Forwarded: not-needed
--- /dev/null
+++ b/node_modules/events-to-array.js
@@ -0,0 +1,27 @@
+module.exports = eventsToArray
+
+var EE = require('events').EventEmitter
+function eventsToArray (ee, ignore) {
+ ignore = ignore || []
+ var array = []
+
+ ee.emit = (function (orig) {
+ return function etoaWrap (ev) {
+ if (ignore.indexOf(ev) === -1) {
+ var l = arguments.length
+ var args = new Array(l)
+ for (var i = 0; i < l; i++) {
+ var arg = arguments[i]
+ args[i] = (arg instanceof EE) ?
+ eventsToArray(arg, ignore) :
+ arg
+ }
+ array.push(args)
+ }
+
+ return orig.apply(this, arguments)
+ }
+ })(ee.emit)
+
+ return array
+}
Description: rename shebang to nodejs
Last-Update: 2016-11-11
Forwarded: not-needed
Author: Jérémy Lal <kapouer@melix.org>
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -1,4 +1,4 @@
-#!/usr/bin/env node
+#!/usr/bin/env nodejs
var Parser = require('../')
var etoa = require('events-to-array')
rename-nodejs.patch
module-events-to-array.patch
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
#override_dh_auto_build:
#override_dh_auto_test:
override_dh_installman: debian/tap-parser.1
debian/tap.1:
help2man -N -n "Test-Anything-Protocol parser for Node.js" --no-discard-stderr bin/cmd.js -o "$@"
Tests: require
Depends: node-tap-parser
#!/bin/sh
set -e
nodejs -e "require('tap-parser');"
version=3
opts=\
dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-tap-parser-$1.tar.gz/ \
https://github.com/substack/tap-parser/tags .*/archive/v?([\d\.]+).tar.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment