Hi,

I'd like to write a .info file for the purpose of replacing perl 
5.6.0 with 5.6.1.  I'm not sure how to properly force fink to 
write files outside of /sw, though (note - this is for my own 
use only, not for inclusion in fink's packages, so i don't need 
to follow the packaging guidelines), and I'm looking for some 
help on it.

I've got this perl-5.6.1-1.info so far:

=====================================================================
Package: perl
Description: Perl programming language
Version: 5.6.1
Revision: 1
Maintainer: Ken Williams <[EMAIL PROTECTED]>
Source: http://www.cpan.org/src/5.0/perl-5.6.1.tar.gz
Homepage: http://www.perl.com/
License: GPL, Artistic

DocFiles: README Changes INSTALL.txt Artistic AUTHORS Copying
Patch: %f.patch

CompileScript: <<
  unsetenv LC_ALL; unsetenv LANG; sh Configure -des 
-Dfirstmakefile=GNUmakefile -Dldflags="-flat_namespace"
  unsetenv LC_ALL; unsetenv LANG; make
<<

InstallScript: <<
  mv INSTALL INSTALL.txt; make install
<<
=====================================================================

The main problem with the above is that it actually installs the 
main files during the "build" phase.  So I need to tell it to 
install into /sw/src/root-perl-5.6.1-1/ , which I can do at 
'./Configure' time using "prefix" and the like - I don't think I 
can do it at 'make install' time.

This creates a problem, though - perl remembers its "prefix" 
setting (and all the rest of the settings like this) and stores 
it in Config.pm for later use when the module is installed, so 
all these values will be wrong if I change them.

Any suggestions?

  -Ken

Reply via email to