On 2011-7-4 16:25 , Ryan Schmidt wrote: > On Jul 3, 2011, at 19:02, [email protected] wrote: > >> Revision: 80083 >> http://trac.macports.org/changeset/80083 >> Author: [email protected] >> Date: 2011-07-03 17:02:05 -0700 (Sun, 03 Jul 2011) >> Log Message: >> ----------- >> gnome-desktop-suite: Add variants to choose between python versions (2.5, >> 2.6, and 2.7) >> >> Modified Paths: >> -------------- >> trunk/dports/gnome/gnome-desktop-suite/Portfile >> >> Modified: trunk/dports/gnome/gnome-desktop-suite/Portfile >> =================================================================== >> --- trunk/dports/gnome/gnome-desktop-suite/Portfile 2011-07-03 23:51:07 UTC >> (rev 80082) >> +++ trunk/dports/gnome/gnome-desktop-suite/Portfile 2011-07-04 00:02:05 UTC >> (rev 80083) >> @@ -5,7 +5,7 @@ >> >> name gnome-desktop-suite >> version 2.30.2 >> -revision 1 >> +revision 2 >> categories gnome >> maintainers devans openmaintainer >> description The GNOME desktop environment >> @@ -116,7 +116,6 @@ >> port:libwnck \ >> port:metacity \ >> port:nautilus \ >> - port:py26-pygtksourceview \ >> port:seahorse \ >> port:seahorse-plugins \ >> port:swfdec-gnome \ >> @@ -163,6 +162,22 @@ >> port:gnome-system-monitor >> } >> >> +variant python25 conflicts python26 python27 description {Use python 2.5} { >> + depends_lib-append port:py25-pygtksourceview >> +} >> + >> +variant python26 conflicts python25 python27 description {Use python 2.6} { >> + depends_lib-append port:py26-pygtksourceview >> +} >> + >> +variant python27 conflicts python25 python26 description {Use python 2.7} { >> + depends_lib-append port:py27-pygtksourceview >> +} >> + >> +if {![variant_isset python25] && ![variant_isset python26]} { >> + default_variants +python27 >> +} > > But in what way do these variants ensure that that is actually the version of > python that will get used?
By adding the dependency. This is a metaport, it doesn't install anything itself. - Josh _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev
