[128751] trunk/dports/aqua/namebench/Portfile

larryv at macports.org larryv at macports.org
Thu Nov 27 00:53:48 PST 2014


Revision: 128751
          https://trac.macports.org/changeset/128751
Author:   larryv at macports.org
Date:     2014-11-27 00:53:48 -0800 (Thu, 27 Nov 2014)
Log Message:
-----------
namebench: Use Python 2.7 only

Modified Paths:
--------------
    trunk/dports/aqua/namebench/Portfile

Modified: trunk/dports/aqua/namebench/Portfile
===================================================================
--- trunk/dports/aqua/namebench/Portfile	2014-11-27 08:53:44 UTC (rev 128750)
+++ trunk/dports/aqua/namebench/Portfile	2014-11-27 08:53:48 UTC (rev 128751)
@@ -2,11 +2,12 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           python 1.0
 PortGroup           xcode 1.0
 
 name                namebench
 version             1.3.1
-revision            1
+revision            2
 categories          aqua sysutils
 platforms           darwin
 license             Apache-2
@@ -24,6 +25,11 @@
                     "py27-libnamebench" port.
 homepage            http://code.google.com/p/namebench/
 
+python.default_version  27
+depends_lib-append      port:py${python.version}-libnamebench \
+                        port:py${python.version}-pyobjc \
+                        port:py${python.version}-pyobjc-cocoa
+
 master_sites        googlecode:${name}
 distname            ${name}-${version}-source
 extract.suffix      .tgz
@@ -34,28 +40,10 @@
 
 patchfiles          project.diff patch-main.m.diff
 post-patch {
-    set py_bin ${prefix}/bin/python${py}
-    reinplace "s|/usr/bin/python|${py_bin}|g" \
+    reinplace "s|/usr/bin/python|${python.bin}|g" \
             ${worksrcpath}/main.m
     reinplace "s|@FRAMEWORKS_DIR@|${frameworks_dir}|g" \
             ${worksrcpath}/namebench.xcodeproj/project.pbxproj
-    reinplace "s|@PYTHON_VERSION@|${py}|g" \
+    reinplace "s|@PYTHON_VERSION@|${python.branch}|g" \
             ${worksrcpath}/namebench.xcodeproj/project.pbxproj
 }
-
-set py ""
-variant python25 conflicts python26 python27 {
-    set py              2.5
-    depends_lib-append  port:py25-libnamebench port:py25-pyobjc port:py25-pyobjc-cocoa
-}
-variant python26 conflicts python25 python27 {
-    set py              2.6
-    depends_lib-append  port:py26-libnamebench port:py26-pyobjc port:py26-pyobjc-cocoa
-}
-variant python27 conflicts python25 python26 {
-    set py              2.7
-    depends_lib-append  port:py27-libnamebench port:py27-pyobjc port:py27-pyobjc-cocoa
-}
-if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
-    default_variants    +python27
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141127/ba451984/attachment.html>


More information about the macports-changes mailing list