File: Build.PL

package info (click to toggle)
libdata-rmap-perl 0.65-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 136 kB
  • sloc: perl: 322; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 898 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/perl -w
use strict;
use Module::Build;

my $class = Module::Build->subclass(
	code => q{
		sub ACTION_deb {
			use strict;
			my $self = shift;
			$self->dispatch('distdir');
			my $distdir = $self->dist_name .'-'. $self->dist_version;
			my $lc_distdir = lc($distdir);

			# do_system echos
			$self->do_system("rm","-rf", $lc_distdir) or die $!;
			$self->do_system("mv", $distdir, $lc_distdir) or die $!;
			$self->do_system("cp","-r", "debian", $lc_distdir) or die $!;
			$self->add_to_cleanup($lc_distdir);

			$self->do_system("cd $lc_distdir  && debuild -us -uc") or die $!;
		}
	},
);

$class->new(
	module_name => 'Data::Rmap',
	license => 'perl',
	requires => {
		'Scalar::Util' => 0,
		'Test::Exception' => 0,
	},
	create_makefile_pl => 'traditional',
	meta_merge => {
		resources => {
			repository => 'https://github.com/bowman/Data-Rmap',
		},
	},
)->create_build_script;