[SCM] groovebasin/master: bundle human-size module
andrewrk-guest at users.alioth.debian.org
andrewrk-guest at users.alioth.debian.org
Fri Oct 17 06:30:28 UTC 2014
The following commit has been merged in the master branch:
commit 03cdf4d901b94d48d781c3c1c34b6de1eadc1f8e
Author: Andrew Kelley <superjoe30 at gmail.com>
Date: Fri Oct 17 06:17:27 2014 +0000
bundle human-size module
diff --git a/debian/copyright b/debian/copyright
index f3d1146..ee5e4ad 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -34,6 +34,10 @@ Files: debian/patches/bundle-connect-static-module.patch
Copyright: 2014 Andrew Kelley <superjoe30 at gmail.com>
License: Expat
+Files: debian/patches/bundle-human-size-module.patch
+Copyright: 2014 Andrew Kelley <superjoe30 at gmail.com>
+License: Expat
+
Files: debian/*
Copyright: 2014 Andrew Kelley <superjoe30 at gmail.com>
License: Expat
diff --git a/debian/patches/bundle-human-size-module.patch b/debian/patches/bundle-human-size-module.patch
new file mode 100644
index 0000000..dbf4ef8
--- /dev/null
+++ b/debian/patches/bundle-human-size-module.patch
@@ -0,0 +1,62 @@
+Description: bundle human-size module
+ FTP masters rejected node-human-size on the account of it being too small,
+ so we bundle the module here.
+Author: Andrew Kelley <superjoe30 at gmail.com>
+Forwarded: not-needed
+--- /dev/null
++++ groovebasin-1.4.0/node_modules/human-size/index.js
+@@ -0,0 +1,10 @@
++module.exports = humanSize;
++
++var mags = ' KMGTPEZY';
++
++function humanSize(bytes, precision) {
++ var magnitude = Math.min(Math.log(bytes) / Math.log(1024) | 0, mags.length - 1);
++ var result = bytes / Math.pow(1024, magnitude);
++ var suffix = mags[magnitude].trim() + 'B';
++ return result.toFixed(precision) + suffix;
++}
+--- /dev/null
++++ groovebasin-1.4.0/node_modules/human-size/package.json
+@@ -0,0 +1,41 @@
++{
++ "name": "human-size",
++ "version": "1.1.0",
++ "description": "human readable file size",
++ "main": "index.js",
++ "scripts": {
++ "test": "node test.js"
++ },
++ "author": {
++ "name": "Andrew Kelley",
++ "email": "superjoe30 at gmail.com"
++ },
++ "license": "MIT",
++ "repository": {
++ "type": "git",
++ "url": "git://github.com/andrewrk/node-human-size.git"
++ },
++ "bugs": {
++ "url": "https://github.com/andrewrk/node-human-size/issues"
++ },
++ "_id": "human-size at 1.1.0",
++ "dist": {
++ "shasum": "052562be999841c037022c20259990c56ea996f9",
++ "tarball": "http://registry.npmjs.org/human-size/-/human-size-1.1.0.tgz"
++ },
++ "_from": "human-size@",
++ "_npmVersion": "1.3.10",
++ "_npmUser": {
++ "name": "superjoe",
++ "email": "superjoe30 at gmail.com"
++ },
++ "maintainers": [
++ {
++ "name": "superjoe",
++ "email": "superjoe30 at gmail.com"
++ }
++ ],
++ "directories": {},
++ "_shasum": "052562be999841c037022c20259990c56ea996f9",
++ "_resolved": "https://registry.npmjs.org/human-size/-/human-size-1.1.0.tgz"
++}
diff --git a/debian/patches/series b/debian/patches/series
index ba8a6eb..816ecdd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,6 @@
shebang.patch
+disable-default-ssl.patch
bundle-connect-static-module.patch
bundle-curlydiff-module.patch
bundle-mv-module.patch
-disable-default-ssl.patch
+bundle-human-size-module.patch
--
groovebasin packaging
More information about the pkg-multimedia-commits
mailing list