[52043] trunk/dports/tex/texlive_base

Jeremy Huddleston jeremyhu at macports.org
Wed Jun 10 09:26:49 PDT 2009


On Jun 10, 2009, at 07: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).

Well I just copied what pTex did for its xdvi toolkit into  
texlive_base ... so if anyone feels like changing it, make sure you do  
it in both places for consistency.





More information about the macports-dev mailing list