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
+========================================================+
| *---------------- [EMAIL PROTECTED] ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to