version=3
opts=\
dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-d3-$1.tar.gz/ \
 https://github.com/d3/d3/releases .*/archive/v?([\d\.]+).tar.gz debian

opts="searchmode=plain,pgpmode=none,component=rollup-plugin-ascii" \
 https://registry.npmjs.org/rollup-plugin-ascii \
 https://registry.npmjs.org/rollup-plugin-ascii/-/rollup-plugin-ascii-(0.[\d\.]*)@ARCHIVE_EXT@ ignore

# Once #930920 is fixed, we can use node-d3-format package
opts=pgpmode=none,component=d3-format,\
filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-d3-$1.tar.gz/ \
 https://github.com/d3/d3-format/tags \
 .*/archive/v?([\d\.]+)@ARCHIVE_EXT@ ignore

# Once #930920 is fixed, we can use node-d3-scale package
opts=pgpmode=none,component=d3-scale,\
filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-d3-$1.tar.gz/ \
 https://github.com/d3/d3-scale/tags \
 .*/archive/v?([\d\.]+)@ARCHIVE_EXT@ ignore
