# -*- 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

name                cvs
version             1.11.23
revision            4
categories          devel net
license             GPL-2+
maintainers         nomaintainer

description         Concurrent Versions System
long_description    CVS is a version control system, an important \
                    component of Source Configuration Management (SCM). \
                    Using it, you can record the history of sources \
                    files, and documents.
homepage            http://cvs.nongnu.org

master_sites        gnu:non-gnu/cvs/source/stable/${version}
use_bzip2           yes
checksums           rmd160  ff8c5c6777f1c12ee9134a3cf59e00c2ebaad279 \
                    sha256  400f51b59d85116e79b844f2d5dbbad4759442a789b401a94aa5052c3d7a4aa9

installs_libs       no

depends_lib         port:zlib

patchfiles          zlib.patch

# Lion provides a POSIX getline; rename the one in the source to use
# the OS-provided one instead, and avoid conflict on name
if {${os.platform} eq "darwin" && ${os.major} >= 11} {
    patchfiles-append use-system-getline.patch
}

configure.args      --infodir=${prefix}/share/info \
                    --mandir=${prefix}/share/man \
                    --without-gssapi

variant gssapi {
    depends_lib-append      port:kerberos5
    configure.args-replace  --without-gssapi --with-gssapi
    configure.args-append   --enable-encryption
}

variant proxy {
    patchfiles-append proxy.patch
}

livecheck.type      gnu
livecheck.name      non-gnu/cvs/source/stable
livecheck.regex     {>(\d+(?:\.\d+)+)/<}
