At 20:48 Uhr +1000 10.05.2002, Ken Williams wrote: >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?
I didn't look at Perl's build system, but with many other packges, this can be done either by make install DESTDIR=%d which will prepend DESTDIR to the prefix given at configure time, or for those package which don't support this, you can usually specify a different prefix for use during the install, something like: make install prefix=/prefix/used/for/install or sometimes make install PREFIX=/prefix/used/for/install Alas, this is purely hypothetical; I didn't look at the Perl build system, thus it's well possible that none of the above will work. Max -- ----------------------------------------------- Max Horn Software Developer email: <mailto:[EMAIL PROTECTED]> phone: (+49) 6151-494890
