From ac3e2dafe8459667672c6ae57d0ba574ea156f05 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 2 Dec 2021 20:02:28 +0100 Subject: 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] --- changelog | 49 +++++++++++++++++++++++++++++++++ clean | 1 + compat | 1 + control | 35 +++++++++++++++++++++++ copyright | 38 +++++++++++++++++++++++++ docs | 1 + install | 4 +++ patches/remove-unsupported-syntax.patch | 32 +++++++++++++++++++++ patches/reproducible_build.diff | 15 ++++++++++ patches/series | 2 ++ rules | 12 ++++++++ source/format | 1 + tests/pkg-js/test | 1 + watch | 5 ++++ webpack.config.js | 16 +++++++++++ 15 files changed, 213 insertions(+) create mode 100644 changelog create mode 100644 clean create mode 100644 compat create mode 100644 control create mode 100644 copyright create mode 100644 docs create mode 100644 install create mode 100644 patches/remove-unsupported-syntax.patch create mode 100644 patches/reproducible_build.diff create mode 100644 patches/series create mode 100755 rules create mode 100644 source/format create mode 100644 tests/pkg-js/test create mode 100644 watch create mode 100644 webpack.config.js 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 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 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 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 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 Sun, 07 Jan 2018 12:54:43 +0530 + +node-d3-force (1.1.0-1) unstable; urgency=low + + * Initial release (Closes: #878048) + + -- Pirate Praveen Mon, 09 Oct 2017 13:26:13 +0530 diff --git a/clean b/clean new file mode 100644 index 0000000..a261f29 --- /dev/null +++ b/clean @@ -0,0 +1 @@ +dist/* diff --git a/compat b/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/compat @@ -0,0 +1 @@ +11 diff --git a/control b/control new file mode 100644 index 0000000..f7a010f --- /dev/null +++ b/control @@ -0,0 +1,35 @@ +Source: node-d3-force +Section: javascript +Priority: optional +Maintainer: Debian Javascript Maintainers +Uploaders: Pirate Praveen +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 +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. + diff --git a/docs b/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/docs @@ -0,0 +1 @@ +README.md diff --git a/install b/install new file mode 100644 index 0000000..08d9283 --- /dev/null +++ b/install @@ -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 +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 diff --git a/rules b/rules new file mode 100755 index 0000000..6942fb7 --- /dev/null +++ b/rules @@ -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" diff --git a/watch b/watch new file mode 100644 index 0000000..b7213e2 --- /dev/null +++ b/watch @@ -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; -- cgit v1.2.3