diff options
author | Jonas Smedegaard <dr@jones.dk> | 2021-12-02 20:02:28 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2021-12-02 20:02:28 +0100 |
commit | ac3e2dafe8459667672c6ae57d0ba574ea156f05 (patch) | |
tree | 57e3fbea50e171a8515d3878440faa77406beef4 |
Import node-d3-force_1.2.1-3.debian.tar.xz
[dgit import tarball node-d3-force 1.2.1-3 node-d3-force_1.2.1-3.debian.tar.xz]
-rw-r--r-- | changelog | 49 | ||||
-rw-r--r-- | clean | 1 | ||||
-rw-r--r-- | compat | 1 | ||||
-rw-r--r-- | control | 35 | ||||
-rw-r--r-- | copyright | 38 | ||||
-rw-r--r-- | docs | 1 | ||||
-rw-r--r-- | install | 4 | ||||
-rw-r--r-- | patches/remove-unsupported-syntax.patch | 32 | ||||
-rw-r--r-- | patches/reproducible_build.diff | 15 | ||||
-rw-r--r-- | patches/series | 2 | ||||
-rwxr-xr-x | rules | 12 | ||||
-rw-r--r-- | source/format | 1 | ||||
-rw-r--r-- | tests/pkg-js/test | 1 | ||||
-rw-r--r-- | watch | 5 | ||||
-rw-r--r-- | webpack.config.js | 16 |
15 files changed, 213 insertions, 0 deletions
diff --git a/changelog b/changelog new file mode 100644 index 0000000..2df6e5d --- /dev/null +++ b/changelog @@ -0,0 +1,49 @@ +node-d3-force (1.2.1-3) unstable; urgency=medium + + * team upload + + * use and build-depend on terser (not uglifyjs.terser) + * install below /usr/share (not /usr/lib) + + -- Jonas Smedegaard <dr@jones.dk> Thu, 02 Dec 2021 20:02:28 +0100 + +node-d3-force (1.2.1-2) unstable; urgency=medium + + * Reupload to unstable + * Make build reproducible + * Bump Standards-Version to 4.4.0 (no changes needed) + + -- Pirate Praveen <praveen@debian.org> Wed, 10 Jul 2019 00:31:51 +0530 + +node-d3-force (1.2.1-1) experimental; urgency=medium + + [ Jelmer Vernooij ] + * Use secure copyright file specification URI. + + [ Pirate Praveen ] + * New upstream version 1.2.1 + * Use salsa.debian.org in Vcs-* fields + * Bump Standards-Version to 4.3.0 (no changes needed) + * Switch to rollup.config.js, install ES module + * Switch to pkg-js-tools + + -- Pirate Praveen <praveen@debian.org> Wed, 19 Jun 2019 18:05:52 +0530 + +node-d3-force (1.1.0-3) unstable; urgency=medium + + * Build using rollup (webpack was used before rollup was available in main) + * Bump debhelper compat to 11 + + -- Pirate Praveen <praveen@debian.org> Thu, 01 Mar 2018 17:41:50 +0530 + +node-d3-force (1.1.0-2) unstable; urgency=medium + + * Use webpack to build umd module like upstream + + -- Pirate Praveen <praveen@debian.org> Sun, 07 Jan 2018 12:54:43 +0530 + +node-d3-force (1.1.0-1) unstable; urgency=low + + * Initial release (Closes: #878048) + + -- Pirate Praveen <praveen@debian.org> Mon, 09 Oct 2017 13:26:13 +0530 @@ -0,0 +1 @@ +dist/* @@ -0,0 +1 @@ +11 @@ -0,0 +1,35 @@ +Source: node-d3-force +Section: javascript +Priority: optional +Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Uploaders: Pirate Praveen <praveen@debian.org> +Build-Depends: + debhelper (>= 11) + , nodejs + , pkg-js-tools + , rollup + , terser + , node-d3-timer (>= 1) + , node-d3-quadtree (>= 1) + , node-d3-collection (>= 1) + , node-d3-dispatch (>= 1) +Standards-Version: 4.4.0 +Homepage: https://d3js.org/d3-force/ +Vcs-Git: https://salsa.debian.org/js-team/node-d3-force.git +Vcs-Browser: https://salsa.debian.org/js-team/node-d3-force +Testsuite: autopkgtest-pkg-nodejs + +Package: node-d3-force +Architecture: all +Depends: + ${misc:Depends} + , nodejs + , node-d3-timer (>= 1) + , node-d3-quadtree (>= 1) + , node-d3-collection (>= 1) + , node-d3-dispatch (>= 1) +Description: Force-directed graph layout using velocity Verlet integration + This module implements a velocity Verlet numerical integrator for simulating + physical forces on particles. + . + Node.js is an event-based server-side JavaScript engine. diff --git a/copyright b/copyright new file mode 100644 index 0000000..0feff46 --- /dev/null +++ b/copyright @@ -0,0 +1,38 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: d3-force +Upstream-Contact: https://github.com/d3/d3-force/issues +Source: https://d3js.org/d3-force/ + +Files: * +Copyright: 2017 Mike Bostock (http://bost.ocks.org/mike) +License: BSD-3-Clause + +Files: debian/* +Copyright: 2010-2016 Pirate Praveen <praveen@debian.org> +License: BSD-3-Clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + @@ -0,0 +1 @@ +README.md @@ -0,0 +1,4 @@ +package.json usr/share/nodejs/d3-force/ +img usr/share/nodejs/d3-force/ +dist usr/share/nodejs/d3-force/ +src usr/share/nodejs/d3-force/ diff --git a/patches/remove-unsupported-syntax.patch b/patches/remove-unsupported-syntax.patch new file mode 100644 index 0000000..bf1b359 --- /dev/null +++ b/patches/remove-unsupported-syntax.patch @@ -0,0 +1,32 @@ +This syntax is not supported in packaged rollup/node yet. +Minified file is generated by uglifyjs.terser command line. + +--- a/rollup.config.js ++++ b/rollup.config.js +@@ -1,4 +1,3 @@ +-import {terser} from "rollup-plugin-terser"; + import * as meta from "./package.json"; + + const config = { +@@ -17,20 +16,5 @@ + }; + + export default [ +- config, +- { +- ...config, +- output: { +- ...config.output, +- file: `dist/${meta.name}.min.js` +- }, +- plugins: [ +- ...config.plugins, +- terser({ +- output: { +- preamble: config.output.banner +- } +- }) +- ] +- } ++ config + ]; diff --git a/patches/reproducible_build.diff b/patches/reproducible_build.diff new file mode 100644 index 0000000..289e06d --- /dev/null +++ b/patches/reproducible_build.diff @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <lamby@debian.org> +Last-Update: 2019-06-20 + +--- a/rollup.config.js ++++ b/rollup.config.js +@@ -9,7 +9,7 @@ + format: "umd", + indent: false, + extend: true, +- banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`, ++ banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime())).getFullYear()} ${meta.author.name}`, + globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) + }, + plugins: [] diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..ba4f208 --- /dev/null +++ b/patches/series @@ -0,0 +1,2 @@ +remove-unsupported-syntax.patch +reproducible_build.diff @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --with nodejs + +override_dh_auto_build: + rollup -c + terser dist/d3-force.js -o dist/d3-force.min.js diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/pkg-js/test b/tests/pkg-js/test new file mode 100644 index 0000000..6745047 --- /dev/null +++ b/tests/pkg-js/test @@ -0,0 +1 @@ +echo "Upstream does not ship any tests" @@ -0,0 +1,5 @@ +version=3 +opts=\ +dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\ +filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-d3-force-$1.tar.gz/ \ + https://github.com/d3/d3-force/tags .*/archive/v?([\d\.]+).tar.gz diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..f9cb59f --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,16 @@ +'use strict'; +var path = require('path'); +var config = { + target: 'web', + resolve: { + modules: ['/usr/lib/nodejs', '.'], + }, + resolveLoader: { + modules: ['/usr/lib/nodejs'], + }, + output: { + libraryTarget: 'umd' + }, + module: { rules: [ {test: /\.js$/, loader: 'babel-loader', options: { presets: [ 'es2015' ], plugins: ['add-module-exports'] } }] } +} +module.exports = config; |