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

Ryan Schmidt ryandesign at macports.org
Mon Nov 11 08:02:22 PST 2013


On Nov 11, 2013, at 09:58, Daniel J. Luke wrote:

> On Nov 11, 2013, at 10:48 AM, Ryan Schmidt 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.

Is that still true? platform statements *used to be* handled like variants, but are no longer handled that way.

Looking at “port -v installed”, we do seem to store the os.platform and os.major, of all ports, regardless of whether they have any “platform” blocks.

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

Meh.

I can’t find a ticket for this feature request, but here’s a related one.

https://trac.macports.org/ticket/15712




More information about the macports-dev mailing list