[42862] trunk/dports/lang/gst/Portfile

Ryan Schmidt ryandesign at macports.org
Tue Dec 2 18:12:27 PST 2008


On Dec 1, 2008, at 16:16, Bryan Blackburn wrote:

> On Mon, Dec 01, 2008 at 10:06:22AM -0800, saispo at macports.org said:
>
>> Revision: 42862
>>           http://trac.macports.org/changeset/42862
>> Author:   saispo at macports.org
>> Date:     2008-12-01 10:06:21 -0800 (Mon, 01 Dec 2008)
>> Log Message:
>> -----------
>> Upgrade port to gst v3.1
>>
>> Modified Paths:
>> --------------
>>     trunk/dports/lang/gst/Portfile
>>
>> Modified: trunk/dports/lang/gst/Portfile
> [...]
>> -maintainers      landonf openmaintainer
>> +maintainers      saispo at macports.org
>
> Did you mean to drop Landon as a maintainer?

I noticed that too, and also this:

>> +default_variants +gtk +tcltk
>> +
>> +variant gtk {
>> +        depends_lib-append port:gtk2
>> +        configure.args-append --enable-gtk
>> +}
>> +
>> +variant tcltk {
>> +        depends_lib-append port:tcl port:tk
>> +        configure.args-append --with-tk --with-tcl
>> +}
>> +
>> +variant nox conflicts gtk conflicts tk {
>> +        configure.args-append \
>> +                --without-x \
>> +                --disable-gtk \
>> +                --without-tk \
>> +                --without-tcl
>> +}

The variant to disable X11 support should be called no_x11, not nox.

The nox variant is marked as conflicting with tk but there is no  
valiant called tk. Did you mean tcltk?

You shouldn't use the conflicts word twice in a single variant  
declaration; just list all the conflicting variants after the word  
"conflicts".

gtk and tcltk should only be made the defaults if the user has not  
already chosen to disable X11.

Attached is my initial pass at fixing this. However there remain  
these questions:

What is the relationship between these variants? Is there ever a case  
when one would want to disable the gtk or tcltk variants? If so, it  
will be difficult for a user to do so, due to a long-standing  
MacPorts base bug which makes it so that if you install a port with  
negative variants (sudo port install gst -gtk -tcltk) and then  
upgrade it (sudo port upgrade gst), the deselected variants will be  
added again. Perhaps the variants should be changed to no_gtk and  
no_tcltk. Is there ever a case when a user would want to select  
neither gtk nor tcltk nor no_x11?

Also, the variants need descriptions.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: gst.diff
Type: application/octet-stream
Size: 1493 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20081202/3e087f69/attachment-0001.obj>


More information about the macports-dev mailing list