[81045] trunk/dports/security/cfv/Portfile

perry at macports.org perry at macports.org
Sun Jul 24 00:02:27 PDT 2011


Revision: 81045
          http://trac.macports.org/changeset/81045
Author:   perry at macports.org
Date:     2011-07-24 00:02:25 -0700 (Sun, 24 Jul 2011)
Log Message:
-----------
security/cfv now uses Python 2.7 (by default) or Python 3.2.

Modified Paths:
--------------
    trunk/dports/security/cfv/Portfile

Modified: trunk/dports/security/cfv/Portfile
===================================================================
--- trunk/dports/security/cfv/Portfile	2011-07-24 05:38:48 UTC (rev 81044)
+++ trunk/dports/security/cfv/Portfile	2011-07-24 07:02:25 UTC (rev 81045)
@@ -4,6 +4,7 @@
 
 name                cfv
 version             1.18.3
+revision            1
 categories          security
 maintainers         perry openmaintainer
 platforms           darwin
@@ -20,19 +21,34 @@
 livecheck.type      regex
 livecheck.url       ${homepage}
 
-depends_lib         port:python26
-
 master_sites        sourceforge
 
 checksums           rmd160 d239e5fe212b2458f5a3612b55591c7625a2318d
 
 patchfiles          patch-Makefile.diff patch-cfv.diff
 
-post-patch {
-    reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
-    reinplace "s|@PYTHON@|${prefix}/bin/python2.6|" ${worksrcpath}/Makefile ${worksrcpath}/cfv
+use_configure       no
+
+build               {}
+
+if {![variant_isset python27] && ![variant_isset python32]} {
+    default_variants    +python27
 }
 
-use_configure       no
+variant python27 conflicts python32 description {Use Python 2.7} {
+    depends_lib port:python27
 
-build               {}
+    post-patch {
+        reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
+        reinplace "s|@PYTHON@|${prefix}/bin/python2.7|" ${worksrcpath}/Makefile ${worksrcpath}/cfv
+    }
+}
+
+variant python32 conflicts python27 description {Use Python 3.2} {
+    depends_lib port:python32
+
+    post-patch {
+        reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
+        reinplace "s|@PYTHON@|${prefix}/bin/python3.2|" ${worksrcpath}/Makefile ${worksrcpath}/cfv
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110724/b4b7034e/attachment.html>


More information about the macports-changes mailing list