# $Id: Portfile 103792 2013-03-07 16:41:55Z dluke@macports.org $

PortSystem 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
#Actually it's CollabNet/Tigris.org Apache-style license
#which is the same as the Apache license, but with CollabNet as the copyright holder
#see http://cvs2svn.tigris.org/servlets/LicenseDetails?licenseID=9
license			Apache

long_description	cvs2svn is a Python script that converts a CVS \
			repository to a Subversion repository. It is designed \
			for one-time conversions, not for repeated \
			synchronizations between CVS and Subversion.

platforms		darwin
homepage		http://cvs2svn.tigris.org
master_sites		http://cvs2svn.tigris.org/files/documents/1462/49237/
checksums	md5	4b93192e66302af9e537c6e33d80acc5 \
		sha1	1194ac6ec70004409eea1fb2f0fce745318f1767 \
		rmd160	62db8eb7b5d70ed42b47679bcb21237312e62135

test.run		yes
test.target		run-tests.py

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} BUGS CHANGES COMMITTERS COPYING \
		cvs2bzr-example.options cvs2git-example.options cvs2hg-example.options \
		cvs2svn-example.options HACKING README doc/design-notes.txt \
		${destroot}${prefix}/share/doc/${name}
	file copy ${worksrcpath}/www ${destroot}${prefix}/share/doc/${name}
}

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 
}
