[52043] trunk/dports/tex/texlive_base
Ryan Schmidt
ryandesign at macports.org
Wed Jun 10 22:50:41 PDT 2009
On Jun 10, 2009, at 09:56, Daniel J. Luke wrote:
> On Jun 9, 2009, at 8:59 PM, Ryan Schmidt wrote:
>
>>> Something like
>>>
>>> configure.args-append --with-xdvi-x-toolkit=xaw
>>> variant motif {
>>> configure.args-delete --with-xdvi-x-toolkit=xaw
>>> configure.args-append --with-xdvi-x-toolkit=motif
>>> depends_lib-delete port:xorg-libXaw
>>> depends_lib-append lib:libXm:openmotif
>>> }
>>
>> If you're going to have a compile-time choice between xaw and
>> motif, then it would be best to have two variants, one called xaw
>> and one called motif, which are marked as conflicting with one
>> another, and the port should select one of these by default, and
>> prevent the deselection of both variants simultaneously. This
>> makes it clear to the user that there is a choice between two
>> alternatives. There are several ports that exemplify this strategy
>> (pdftk's compiler selection, minivmac version 2's emulator
>> selection).
>
>
> This is a matter of style, though.
>
> I find it simpler to set things up like the above example instead
> (this avoids an extra variant and avoids having to indicate
> conflicting variants).
Yeah, well, I think my style is better. :P
To me, it's the difference between whether the option, if it were
presented to the user in a GUI, were presented as a checkbox or as a
set of radio buttons.
More information about the macports-dev
mailing list