Hi Andreas, I played around a bit with this and came up with the following sketch (attached). I ended up mimicking parts of what the CDBS module for R does in an otherwise dh-centric rules file.
I hope it is at least of some use. Best, Gard
fastcluster_1.1.16-1.debian.tar.xz
Description: application/xz-compressed-tar