[99957] trunk/dports/sysutils/terminator/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Nov 22 01:35:46 PST 2012


Revision: 99957
          https://trac.macports.org/changeset/99957
Author:   ryandesign at macports.org
Date:     2012-11-22 01:35:46 -0800 (Thu, 22 Nov 2012)
Log Message:
-----------
terminator: add py-keybinder dependency (#37092); add py-notify-python dependency; use unified python portgroup

Modified Paths:
--------------
    trunk/dports/sysutils/terminator/Portfile

Modified: trunk/dports/sysutils/terminator/Portfile
===================================================================
--- trunk/dports/sysutils/terminator/Portfile	2012-11-22 08:46:13 UTC (rev 99956)
+++ trunk/dports/sysutils/terminator/Portfile	2012-11-22 09:35:46 UTC (rev 99957)
@@ -2,10 +2,29 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               python 1.0
 
 name                    terminator
 version                 0.96
+revision                1
+categories              sysutils
+platforms               darwin
+maintainers             ryandesign openmaintainer
+license                 GPL-2
+supported_archs         noarch
 
+description             multiple terminal emulator
+
+long_description        ${name} lets you open multiple terminal emulators in \
+                        a single window.
+
+homepage                http://www.tenshu.net/p/terminator.html
+master_sites            http://launchpad.net/terminator/trunk/${version}/+download
+dist_subdir             ${name}
+
+checksums               rmd160  376ecd9c6f3d0cfdc4c151ebb2e90a5e118fee93 \
+                        sha256  d708c783c36233fcafbd0139a91462478ae40f5cf696ef4acfcaf5891a843201
+
 if {![variant_isset python26] && ![variant_isset python27]} {
     if {[file exists ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/vtemodule.so]} {
         default_variants +python26
@@ -17,49 +36,32 @@
 
 variant python26 conflicts python27 description {Use Python 2.6} {}
 if {[variant_isset python26]} {
-    PortGroup           python26 1.0
-    pre-configure {
-        if {![file exists ${python.pkgd}/gtk-2.0/vtemodule.so]} {
-            ui_error "To install ${name} with the +python26 variant, vte must be installed with the +python26 variant."
-            return -code error "incompatible vte installation"
-        }
-    }
+    python.default_version 26
 }
 
 variant python27 conflicts python26 description {Use Python 2.7} {}
 if {[variant_isset python27]} {
-    PortGroup           python27 1.0
-    pre-configure {
-        if {![file exists ${python.pkgd}/gtk-2.0/vtemodule.so]} {
-            ui_error "To install ${name} with the +python27 variant, vte must be installed with the +python27 variant."
-            return -code error "incompatible vte installation"
-        }
-    }
+    python.default_version 27
 }
 
-categories              sysutils
-platforms               darwin
-maintainers             ryandesign openmaintainer
-license                 GPL-2
-supported_archs         noarch
+depends_build-append    port:intltool
 
-description             multiple terminal emulator
+depends_lib-append      port:vte \
+                        port:hicolor-icon-theme \
+                        port:py${python.version}-keybinder \
+                        port:py${python.version}-notify-python
 
-long_description        ${name} lets you open multiple terminal emulators in \
-                        a single window.
+post-patch {
+    reinplace -E "s|^#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/${name}
+}
 
-homepage                http://www.tenshu.net/p/terminator.html
-master_sites            http://launchpad.net/terminator/trunk/${version}/+download
-dist_subdir             ${name}
+pre-configure {
+    if {![file exists ${python.pkgd}/gtk-2.0/vtemodule.so]} {
+        ui_error "To install ${name} with the +python${python.version} variant, vte must be installed with the +python${python.version} variant."
+        return -code error "incompatible vte installation"
+    }
+}
 
-checksums               rmd160  376ecd9c6f3d0cfdc4c151ebb2e90a5e118fee93 \
-                        sha256  d708c783c36233fcafbd0139a91462478ae40f5cf696ef4acfcaf5891a843201
-
-depends_build-append    port:intltool
-
-depends_lib-append      port:vte \
-                        port:hicolor-icon-theme
-
 # no suffix since there are not multiple versions of this port
 python.link_binaries_suffix
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121122/fe8da31d/attachment-0001.html>


More information about the macports-changes mailing list