[80839] trunk/dports/sysutils/terminator/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Jul 18 14:24:31 PDT 2011
Revision: 80839
http://trac.macports.org/changeset/80839
Author: ryandesign at macports.org
Date: 2011-07-18 14:24:30 -0700 (Mon, 18 Jul 2011)
Log Message:
-----------
terminator: add python variants to match what was recently done to vte; see #30072
Modified Paths:
--------------
trunk/dports/sysutils/terminator/Portfile
Modified: trunk/dports/sysutils/terminator/Portfile
===================================================================
--- trunk/dports/sysutils/terminator/Portfile 2011-07-18 21:22:39 UTC (rev 80838)
+++ trunk/dports/sysutils/terminator/Portfile 2011-07-18 21:24:30 UTC (rev 80839)
@@ -2,11 +2,42 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
name terminator
version 0.95
-revision 1
+revision 2
+
+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
+ } else {
+ default_variants +python27
+ variant_set python27
+ }
+}
+
+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"
+ }
+ }
+}
+
+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"
+ }
+ }
+}
+
categories sysutils
platforms darwin
maintainers ryandesign openmaintainer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110718/6b29ac8c/attachment.html>
More information about the macports-changes
mailing list