Debian Codegraph @

debian/dh_perl_imager.in

raw
1 #! /usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use Debian::Debhelper::Dh_Lib;
7
8 init();
9
10 for my $package (@{ $dh{DOPACKAGES} }) {
11 addsubstvar($package, 'perl:Depends', 'perl-imagerapi-@IMAGERAPI_VERSION@', undef);
12 }
13
14 __END__
15
16 =head1 NAME
17
18 dh_perl_imager - add dependencies required for Imager modules
19
20 =head1 SYNOPSIS
21
22 B<dh_perl_imager> [S<I<debhelper options>>]
23
24 =head1 DESCRIPTION
25
26 dh_perl_imager is a debhelper program that is responsible for adding a dependency
27 on perl-imagerapi-* to the ${perl:Depends} substitution variable.
28 Such a dependency is required for packages that are B<compiled> against Imager;
29 do I<not> use this for packages that only B<use> the Imager module.
30
31 A debhelper addon is also provided. This makes it possible to just use
32
33 #!/usr/bin/make -f
34 %:
35 dh $@ --with perl_imager
36
37 for F<debian/rules>.
38
39 Alternatively, since libimager-perl/1.007+dfsg-1 you can just build depend
40 on B<dh-sequence-perl-imager> and omit the C<--with perl_imager> part.
41
42 =head1 SEE ALSO
43
44 L<debhelper(7)>
45
46 L<http://bugs.debian.org/693003>
47
48 =head1 COPYRIGHT AND LICENSE
49
50 Copyright 2010, Ansgar Burchardt <[email protected]>
51
52 Copyright 2012, gregor herrmann <[email protected]>
53
54 This program is free software, you can redistribute it and/or modify it under
55 the same terms as Perl itself.