File: Bioconductor.pm

package info (click to toggle)
devscripts 2.26.6~bpo13%2B1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-backports
  • size: 9,856 kB
  • sloc: perl: 28,346; sh: 12,892; python: 4,572; makefile: 382
file content (24 lines) | stat: -rw-r--r-- 755 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package Devscripts::Uscan::Templates::Bioconductor;

use strict;

sub transform {
    my $watchSource = shift;
    delete $watchSource->{template};
    my $package = delete $watchSource->{package};

    die 'Missing Package field' unless $package;

    $watchSource->{source} ||= "https://bioconductor.org/packages/$package";
    $watchSource->{matchingpattern}
      ||= '.*_@ANY_VERSION@.tar.gz';    # zip and tgz files are binary packages
    $watchSource->{compression}    ||= 'xz';
    $watchSource->{dversionmangle} ||= 's/\+dfsg[0-9]*//g';
    $watchSource->{downloadurlmangle}
      ||= 's%.*/src/contrib/%https://bioconductor.org/packages/release/bioc/src/contrib/%';
    $watchSource->{repacksuffix} ||= '+dfsg';

    return $watchSource;
}

1;