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

PortSystem          1.0

name                cvs
version             1.11.23
revision            2
categories          devel net
platforms           darwin
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        savannah:cvs/source/stable/${version}
use_bzip2           yes
checksums           rmd160  ff8c5c6777f1c12ee9134a3cf59e00c2ebaad279 \
                    sha256  400f51b59d85116e79b844f2d5dbbad4759442a789b401a94aa5052c3d7a4aa9

depends_lib         port:libcomerr \
                    port:kerberos5 \
                    path:lib/libssl.dylib:openssl
installs_libs       no

# 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

variant gssapi {
    configure.args-append   --enable-encryption \
                            --with-gssapi
}

variant proxy {
    patchfiles-append proxy.patch
}

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