# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       github 1.0
PortGroup       python 1.0

github.setup    mhagger cvs2svn 2.5.0
revision        0

categories      devel python
maintainers     nomaintainer
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 https://web.archive.org/web/20180922125537/http://cvs2svn.tigris.org/servlets/LicenseDetails?licenseID=9
license         Apache
platforms       {darwin any}
supported_archs noarch

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.

github.tarball_from releases

checksums       rmd160  0ec03a846b20128ebffa8ab0590219152588d4fa \
                sha256  6409d118730722f439760d41c08a5bfd05e5d3ff4a666050741e4a5dc2076aea \
                size    539332

python.default_version 27

test.run        yes
test.cmd        ${python.bin}
test.target     run-tests.py

post-destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -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}
}
