[109376] trunk/dports/gnome

elelay at macports.org elelay at macports.org
Wed Aug 14 06:07:29 PDT 2013


Revision: 109376
          https://trac.macports.org/changeset/109376
Author:   elelay at macports.org
Date:     2013-08-14 06:07:28 -0700 (Wed, 14 Aug 2013)
Log Message:
-----------
py*-gtkspell: replace ports py26-gtkspell, py27-gtkspell with subports of new py-gtkspell

Modified Paths:
--------------
    trunk/dports/gnome/py-gtkspell/Portfile

Added Paths:
-----------
    trunk/dports/gnome/py-gtkspell/

Removed Paths:
-------------
    trunk/dports/gnome/py26-gtkspell/
    trunk/dports/gnome/py27-gtkspell/

Modified: trunk/dports/gnome/py-gtkspell/Portfile
===================================================================
--- trunk/dports/gnome/py27-gtkspell/Portfile	2013-08-13 16:31:43 UTC (rev 109340)
+++ trunk/dports/gnome/py-gtkspell/Portfile	2013-08-14 13:07:28 UTC (rev 109376)
@@ -3,7 +3,7 @@
 
 PortSystem          1.0
 
-name                py27-gtkspell
+name                py-gtkspell
 version             2.25.3
 revision            2
 
@@ -31,14 +31,29 @@
 use_bzip2           yes
 
 depends_build       port:pkgconfig
-depends_lib         port:py27-pygtk \
-					port:gtkspell2
+depends_lib         port:gtkspell2
 
 patchfiles          patch-configure.diff
 
 configure.args-append   --disable-allbindings --enable-gtkspell
 
-set python.branch   2.7
+subport py27-gtkspell {
+    depends_lib-append port:py27-pygtk
+}
+
+subport py26-gtkspell {
+    depends_lib-append port:py26-pygtk
+}
+
+if {$subport == "py27-gtkspell"} {
+    set python.branch   2.7
+} elseif {"$subport" == "py26-gtkspell"} {
+    set python.branch   2.6
+} else {
+    set python.branch dummy
+}
+
+
 set python.prefix   ${frameworks_dir}/Python.framework/Versions/${python.branch}
 set python.bin      ${python.prefix}/bin/python${python.branch}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130814/d02b5ed5/attachment.html>


More information about the macports-changes mailing list