variables and external commands in portfiles - was ${perl5.lib}
Daniel J. Luke
dluke at geeklair.net
Sun Jan 28 11:46:01 PST 2007
On Jan 27, 2007, at 8:16 PM, Mark Duling wrote:
> Is there a way to get the results of an external command into a
> variable
> in a portfile?
Yep.
Take a look at PYTHON_PATH in the subversion-pythonbindings port for
one way to do this sort of thing.
> It seems that the freebsd ports sytem has access for perl variables
> even
> for non-perl ports. Would that be easy to hack onto MaPorts? It
> would be
> nice but I don't know the pros and cons.
I don't think it's worthwhile to add it to base/ since it's
relatively easy for the portfiles get their own information if they
need it.
--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
| Opinions expressed are mine and do not necessarily |
| reflect the opinions of my employer. |
+========================================================+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-dev/attachments/20070128/1ccb8327/PGP.bin
More information about the macports-dev
mailing list