perl module man pages

2006-02-07 Thread Larry Lansing

Hello, all.

First, kudos on creating such a comprehensive system for portably 
building and installing unix software.  I've found it incredibly useful 
for my day job, as well as for some personal projects at home.  I can't 
say enough good things about the system, as several of my friends and 
coworkers will attest. :-)


Anyway...I'm in the process of writing spec files for various 
applications I'm installing inside OpenPKG.  One of the is a perl module 
with a man page, for which I would like to have the man page installed. 
 I noticed that when I called Makefile.PL outside of OpenPKG, the man 
page was created and installed properly, but when I installed via the 
perl-openpkg script, the man page was not installed.  After further 
investigation, I think I have identified the reason:


a chunk of perl-openpkg:
--
#    STEP: 4. install  


if (grep {  eq install } @steps_run) {
verbose(step 4: install);

#   sanity check 


if (not -f Makefile) {
die file \Makefile\ not found in working directory;
}

#   determine make(1) command and flags 


my  = ;
 =~ s|\n+$||s;
my  = PERL= FULLPERL=;

#   execute make(1) 


runcmd(  pure_install);
}
--

Perl-openpkg calls the 'pure_install' target instead of the 'install' 
target, in the module's generated Makefile.  As far as I can tell, the 
only difference between these targets is that 'pure_install' does not 
install documentation.  This seems like it was a conscious decision...if 
you don't mind, may I ask what the rationale was?  Is this something 
that should be changed in perl-openpkg, or is it better for me to 
manually call pod2man in my spec file?


Thanks!

--
Larry Lansing
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: perl module man pages

2006-02-07 Thread Larry Lansing

Ralf S. Engelschall wrote:

The reason simply is that with our myriad of Perl modules in the various
perl-xxx packages the prefix/man/ area would be totally _flooded_
with _copies_ of files


A-ha!  I knew there must be a good reason.


Well, I think we should keep perl-openpkg as is or at maximum add
an option which allows it to use make install instead of make
pure_install if wished. But unless we have more packages which need
this option I think it would be best to simply run pod2man(1) in your
*.spec file...


Works for me.  Thanks!

--
Larry Lansing
__
The OpenPKG Projectwww.openpkg.org
User Communication List  openpkg-users@openpkg.org