On Jan 26, 2007, at 3:15 PM, Mark Duling wrote:
"Daniel J. Luke" <[EMAIL PROTECTED]> on Friday, January 26, 2007 at 6:48AM -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 Idon'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 isin sitearch?
Macports should be installing stuff into vendor_perl (that's what perl5.lib gets set to).
... but IIRC sitearch is where compiled modules go (ie C-based XS modules) and pure-perl stuff goes into site_perl
(so that if you share your perl over NFS, for instance, you can use one directory hierarchy for multiple architectures, I think).
-- Daniel J. Luke +========================================================+ | *---------------- [EMAIL PROTECTED] ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macports-dev
