Re: Building .deb files for perl modules...
>>>>> "Raphael" == Raphael Hertzog <rhertzog@hrnet.fr> writes:
Raphael> There's the perl policy in perl-5.005-doc package or here
Raphael> : http://pandora.debian.org/~hertzog/perl-policy.html/
I finally bothered reading this document. :)
A couple of nits:
$(PERL) -MConfig -e 'print $$Config{installarchlib}'
is much more easily said as
$(PERL) -V:installarchlib
and
config =INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 \
INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 \
INSTALLPRIVLIB=$(TMP)/usr/lib/perl5 \
INSTALLARCHLIB=$(TMP)$(archlib)
$(PERL) Makefile.PL $(config)
$(MAKE) pure_install
would be better as
$(PERL) Makefile.PL INSTALLDIRS=perl
$(MAKE) pure_install PREFIX=$(TMP)/usr \
INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 \
INSTALLMAN3DIR=$(TMP)/usr/share/man/man3
or
$(PERL) Makefile.PL INSTALLDIRS=perl
$(MAKE) pure_install PREFIX=$(TMP)/usr \
INSTALLPRIVLIB=$(TMP)/usr/lib/perl5
INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 \
INSTALLMAN3DIR=$(TMP)/usr/share/man/man3
for pure perl modules. Playing games with INSTALL* variables in the
'perl Makefile.PL' can be hazardous to your modules heath.
--
Stephen
"A duck!"
Reply to: