File: elpa.pm

package info (click to toggle)
dh-elpa 1.3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 132 kB
  • sloc: perl: 326; lisp: 223; sh: 69; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 712 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/perl
# debhelper sequence file for dh_elpa script

use warnings;
use strict;
use Debian::Debhelper::Dh_Lib;
use Dpkg::Version;
use Module::Metadata;
use Config::Tiny;

insert_after("dh_install", "dh_elpa");

# check dh_make_perl version is new enough for dh_elpa_test
my $info = Module::Metadata->new_from_module("Debian::Control");
my $version = Dpkg::Version->new($info->version());

my $options;
$options = Config::Tiny->read( "debian/elpa-test" )
  if ( -f "debian/elpa-test" );

if ( $version >= "0.90"
     && !defined $options->{_}->{ "disable" }
     && !defined $ENV{ 'DH_ELPA_TEST_DISABLE' }
   ) {
    insert_after("dh_auto_test", "dh_elpa_test");
    remove_command("dh_auto_test");
}

1;