[52043] trunk/dports/tex/texlive_base

Daniel J. Luke dluke at geeklair.net
Wed Jun 10 07:56:24 PDT 2009


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

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20090610/aea0db18/attachment.bin>


More information about the macports-dev mailing list