# Template file for 'cvs2svn'

# libfetch doesn't understand cookies.
XBPS_FETCH_CMD="wget"

pkgname=cvs2svn
version=2.3.0
revision=2
build_style=gnu-makefile
make_build_args="man"
makedepends="wget cvs python"
short_desc="CVS to Subversion, git and bazaar repository conversion tool"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://cvs2svn.tigris.org/"
license="BSD"
distfiles="http://cvs2svn.tigris.org/files/documents/1462/46528/cvs2svn-${version}.tar.gz"
checksum=d9d835e0c7df48966fbadf51527c25ebf1343b25179e3802f4637d4b96ba363e
long_desc="
 cvs2svn is a tool for migrating a CVS repository to Subversion, git, or
 Bazaar. The main design goals are robustness and 100% data preservation.
 cvs2svn can convert just about any CVS repository we've ever seen, including
 gcc, Mozilla, FreeBSD, KDE, GNOME...

 cvs2svn infers what happened in the history of your CVS repository and
 replicates that history as accurately as possible in the target SCM. All
 revisions, branches, tags, log messages, author names, and commit dates are
 converted. cvs2svn deduces what CVS modifications were made at the same time,
 and outputs these modifications grouped together as changesets in the target
 SCM. cvs2svn also deals with many CVS quirks and is highly configurable."

post_install() {
	vmkdir usr/share/man/man1
	install -m644 *.1 ${DESTDIR}/usr/share/man/man1
	vinstall COPYING 644 usr/share/licenses/cvs2svn
}

cvs2svn_package() {
	depends="cvs python>=0"
	noarch="yes"
	pkg_install() {
		vmove usr
	}
}
