Revision: 70233 http://trac.macports.org/changeset/70233 Author: tommyd@macports.org Date: 2010-08-02 16:20:57 -0700 (Mon, 02 Aug 2010) Log Message: ----------- Add python24, python25 and python26 variants Modified Paths: -------------- trunk/dports/devel/diffuse/Portfile Modified: trunk/dports/devel/diffuse/Portfile =================================================================== --- trunk/dports/devel/diffuse/Portfile 2010-08-02 23:16:41 UTC (rev 70232) +++ trunk/dports/devel/diffuse/Portfile 2010-08-02 23:20:57 UTC (rev 70233) @@ -4,7 +4,7 @@ name diffuse version 0.4.3 -revision 1 +revision 2 categories devel platforms darwin maintainers tommyd openmaintainer @@ -22,19 +22,38 @@ use_bzip2 yes -depends_lib-append port:py-gtk2 +set pythonexec "" +variant python24 conflicts python25 python26 description {Use python24} { + depends_lib-append port:py-gtk2 + set pythonexec ${prefix}/bin/python2.4 +} + +variant python25 conflicts python24 python26 description {Use python25} { + depends_lib-append port:py25-gtk + set pythonexec ${prefix}/bin/python2.5 +} + +variant python26 conflicts python24 python25 description {Use python26} { + depends_lib-append port:py26-gtk + set pythonexec ${prefix}/bin/python2.6 +} + +if {![variant_isset python24] && ![variant_isset python25]} { + default_variants +python26 +} + use_configure no post-patch { - reinplace "s|/usr/bin/env python|${prefix}/bin/python2.4|g" \ + reinplace "s|/usr/bin/env python|${pythonexec}|g" \ ${worksrcpath}/src/usr/bin/diffuse } build {} destroot { - system "cd ${worksrcpath} && ${prefix}/bin/python2.4 \ + system "cd ${worksrcpath} && ${pythonexec} \ ./install.py \ --prefix=${prefix} \ --destdir=${destroot} \
participants (1)
-
tommyd@macports.org