variants vs separate ports

Daniel J. Luke dluke at geeklair.net
Mon May 24 12:28:41 PDT 2010


On May 24, 2010, at 2:22 PM, Bradley Giesbrecht wrote:
>> I still don't understand why you set up some of your ports this way instead of the more straightforward method (have the +q8 configure args in the default configure args, and have the variants just remove the +q8 stuff and add their appropriate args).
>> 
>> To me, Portfiles are always clearer if they can avoid using variant_isset.
> 
> I my particular case there is no configure. The author has you edit .config so I am patching .config and use reinplace.

You could probably do something similar (apply a patchfile by default, but have a variant remove that patchfile and substitute another one, for example)

--
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.          |                          
+========================================================+





More information about the macports-dev mailing list