[88669] trunk/dports/gnome/gedit-plugins/Portfile

jmr at macports.org jmr at macports.org
Sat Jan 7 06:05:34 PST 2012


Revision: 88669
          http://trac.macports.org/changeset/88669
Author:   jmr at macports.org
Date:     2012-01-07 06:05:30 -0800 (Sat, 07 Jan 2012)
Log Message:
-----------
gedit-plugins: add python variants to match gedit (#28287)

Modified Paths:
--------------
    trunk/dports/gnome/gedit-plugins/Portfile

Modified: trunk/dports/gnome/gedit-plugins/Portfile
===================================================================
--- trunk/dports/gnome/gedit-plugins/Portfile	2012-01-07 13:51:22 UTC (rev 88668)
+++ trunk/dports/gnome/gedit-plugins/Portfile	2012-01-07 14:05:30 UTC (rev 88669)
@@ -5,7 +5,7 @@
 
 name            gedit-plugins
 version         2.26.3
-revision        1
+revision        2
 set branch      [join [lrange [split ${version} .] 0 1] .]
 description     Plug-ins for GEdit
 long_description Various additional plug-ins for GEdit 2.
@@ -28,14 +28,34 @@
 depends_lib     \
                 port:gconf \
                 port:gedit \
-                port:py25-pygtksourceview \
-	        port:vte \
+                port:vte \
                 port:gucharmap
 
 configure.args  --disable-schemas-install
 
-configure.python ${prefix}/bin/python2.5
+variant python25 conflicts python26 python27 description {Use python 2.5} {
+    configure.python          ${prefix}/bin/python2.5
+    depends_lib-append        port:py25-pygtksourceview
+}
 
+variant python26 conflicts python25 python27 description {Use python 2.6} {
+    configure.python          ${prefix}/bin/python2.6
+    depends_lib-append        port:py26-pygtksourceview
+    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
+    configure.pkg_config_path ${python_framework}/lib/pkgconfig
+}
+
+variant python27 conflicts python25 python26 description {Use python 2.7} {
+    configure.python          ${prefix}/bin/python2.7
+    depends_lib-append        port:py27-pygtksourceview
+    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
+    configure.pkg_config_path ${python_framework}/lib/pkgconfig
+}
+
+if {![variant_isset python25] && ![variant_isset python26]} {
+    default_variants +python27
+}
+
 post-activate {
        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
             gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120107/0afe399d/attachment.html>


More information about the macports-changes mailing list