${perl5.lib}

Mark Duling mark.duling at biola.edu
Fri Jan 26 12:15:55 PST 2007


"Daniel J. Luke" <dluke at geeklair.net> on Friday, January 26, 2007 at 6:48
AM -0800 wrote:
>> Can I use variable ${perl5.lib} in portfiles?  I could just try it  
>> but I'm
>> curious and I don't have time to test it right now.  If so I can  
>> add it to
>> the port man page after x11prefix in the RUNTIME VARIABLES section.
>
>It's set in the perl5 group code, so you can only use it in portfiles  
>that make use of the perl group code.

Oh right.  I should have known that.  Well in a non-perl port, I guess I
could use perl -V system calls to get it in a non-hardcoded way since I
don't want to update a port for a new perl release.

perl -V:sitelib
sitelib='/opt/local/lib/perl5/site_perl/5.8.8';

perl -V:sitearch
sitearch='/opt/local/lib/perl5/site_perl/5.8.8/darwin-2level';

Why is it so little is in sitelib (I have one file RRDp.pm) and so much is
in sitearch?

Mark




More information about the macports-dev mailing list