[Module-build-checkins] Module-Build/lib/Module/Build Base.pm,1.340.2.21,1.340.2.22
Status: Beta
Brought to you by:
kwilliams
From: Ken W. <kwi...@us...> - 2005-02-23 02:44:32
|
Update of /cvsroot/module-build/Module-Build/lib/Module/Build In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20868/lib/Module/Build Modified Files: Tag: release-0_26_branch Base.pm Log Message: Handle the absence of Pod::Man more gracefully Index: Base.pm =================================================================== RCS file: /cvsroot/module-build/Module-Build/lib/Module/Build/Base.pm,v retrieving revision 1.340.2.21 retrieving revision 1.340.2.22 diff -u -d -r1.340.2.21 -r1.340.2.22 --- Base.pm 9 Feb 2005 10:12:00 -0000 1.340.2.21 +++ Base.pm 23 Feb 2005 02:44:23 -0000 1.340.2.22 @@ -1657,7 +1657,10 @@ sub ACTION_docs { my $self = shift; $self->depends_on('code'); - require Pod::Man; + unless (eval {require Pod::Man; 1}) { + warn " *** Pod::Man is not available, skipped building man pages\n"; + return; + } $self->manify_bin_pods() if $self->install_destination('bindoc'); $self->manify_lib_pods() if $self->install_destination('libdoc'); $self->htmlify_pods() if $self->install_destination('html'); |