[103792] trunk/dports/devel/cvs2svn/Portfile

dluke at macports.org dluke at macports.org
Thu Mar 7 08:41:55 PST 2013


Revision: 103792
          https://trac.macports.org/changeset/103792
Author:   dluke at macports.org
Date:     2013-03-07 08:41:55 -0800 (Thu, 07 Mar 2013)
Log Message:
-----------
cvs2svn: default to python27 instead of 26 (fixes #33190)

Modified Paths:
--------------
    trunk/dports/devel/cvs2svn/Portfile

Modified: trunk/dports/devel/cvs2svn/Portfile
===================================================================
--- trunk/dports/devel/cvs2svn/Portfile	2013-03-07 16:12:42 UTC (rev 103791)
+++ trunk/dports/devel/cvs2svn/Portfile	2013-03-07 16:41:55 UTC (rev 103792)
@@ -2,10 +2,11 @@
 
 PortSystem 1.0
 
-PortGroup		python26 1.0
+PortGroup		python 1.0
 
 name			cvs2svn
 version			2.4.0
+revision		1
 categories		devel python
 maintainers		geeklair.net:dluke
 description		Tool for converting from CVS to subversion
@@ -27,7 +28,6 @@
 		rmd160	62db8eb7b5d70ed42b47679bcb21237312e62135
 
 test.run		yes
-test.cmd		${prefix}/bin/python2.6
 test.target		run-tests.py
 
 post-destroot {
@@ -37,8 +37,20 @@
 		cvs2svn-example.options HACKING README doc/design-notes.txt \
 		${destroot}${prefix}/share/doc/${name}
 	file copy ${worksrcpath}/www ${destroot}${prefix}/share/doc/${name}
-	ln -s ${python.prefix}/bin/cvs2svn ${destroot}${prefix}/bin/cvs2svn
-	ln -s ${python.prefix}/bin/cvs2bzr ${destroot}${prefix}/bin/cvs2bzr
-	ln -s ${python.prefix}/bin/cvs2git ${destroot}${prefix}/bin/cvs2git
 }
 
+python.link_binaries_suffix
+
+variant python26 description {Use python 2.6} { 
+	python.default_version 26 
+	test.cmd ${python.bin} 
+}
+ 
+variant python27 description {Use python 2.7} { 
+	python.default_version 27 
+	test.cmd ${python.bin} 
+} 
+
+if {![variant_isset python26]} { 
+	default_variants +python27 
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130307/95277574/attachment.html>


More information about the macports-changes mailing list