pfenwick / dh-make-perl

Debian's dh-make-perl (unofficial, PJF's branch)

pfenwick (author)
Wed Nov 26 05:38:48 -0800 2008
commit  48535636aad209c581fc2f9c5695165478885f03
tree    990853c6c647a3096fc51dbcd26934614863fe92
parent  53c6ae3a0ddfac56056568bbf1192a4d1c531041 parent  4a4b7942febf397781153a965e566aa3b5d34f85
dh-make-perl / overrides
100644 40 lines (35 sloc) 1.302 kb
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
40
# override file for dh-make-perl
# chdir is set to the module dir while executing the code in the override hashes
# you can have your own overrides to this overrides in a similar file
# in ~/.dh-make-perl/overrides
# Please contribute back the fixes that may be needed for some modules
# to lupus@debian.org.
 
# sample overrides entry
$overrides{'Strange'} = {
pkgname => 'libstrange-perl',
srcname => 'libstrange-perl',
section => 'misc',
priority => 'Extra',
depends => 'perl6',
# build depends
bdepends => 'perl6, xlib-dev',
desc => 'A really ugly module to test dh-make-perl',
longdesc => "A really ugly long description\nfor a really ugly perl module.",
arch => 'all',
# starting from version 2 it's an xs module
checkver => sub {return 'v2-' if (($version || "") =~ /^[2-9]\./);return '';},
'v2-arch' => 'any',
'v2-version' => sub {
if (($version || "") =~ /^\d+\.(\d+)/ && length($1) < 3) {
return $version.("0"x(3-length($1))); # maitain 3 digits after the dot
} else {
return $version;
} },
# Note the \n in pfield and sfields (extra fields for the source and package section)
pfields => "Conflicts: ba-ba-buma\n",
 
};
 
$overrides{'Crypt::SSLeay'} = {
finish => sub {
my @a=("perl", "-pi", "-e", 's,(Makefile\.PL),$1 /usr,', "debian/rules");
system(@a);},
};