[112776] trunk/dports/lang/clisp/Portfile

Daniel J. Luke dluke at geeklair.net
Mon Nov 11 07:58:10 PST 2013


On Nov 11, 2013, at 10:48 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
> 
>> [aside: didn't we have a proposal for more flexible platform descriptions at some point so you could just write this in a normal platform block?]
> 
> Yes but it doesn’t seem that important to me since it’s exactly equivalent to an “if” statement so just write the “if” statement that you want.

platform variants get recorded in the registry.

Using bare if statements also looses the (mostly) declarative nature of the portfile. Encouraging people to write portfiles this way also weakens the generally true heuristic that if you're doing this sort of thing you're doing it wrong (since you're probably writing your own version of some existing macports functionality).

--
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