# -*- 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: Portfile 84742 2011-09-30 12:17:11Z jmr@macports.org $

PortSystem      1.0

name            cvs
version         1.11.23
categories      devel net
platforms       darwin
license         GPL-2+
installs_libs   no
maintainers     nomaintainer
description     Concurrent Versions System

long_description \
    CVS is the Concurrent Versions System, the dominant open-source network-transparent version control \
    system. CVS is useful for everyone from individual developers to large, distributed teams.

homepage        http://www.nongnu.org/cvs/
master_sites    http://ftp.gnu.org/non-gnu/cvs/source/stable/$version
use_bzip2       yes

checksums       md5     0213ea514e231559d6ff8f80a34117f0 \
                sha1    a51c531eebaff2dfdcc0fb6d94c8c6e509e06d7d \
                rmd160  ff8c5c6777f1c12ee9134a3cf59e00c2ebaad279


# 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} == "darwin" && ${os.major} >= 11} {
    patchfiles-append      patch-getline
}

configure.args  --infodir=${prefix}/share/info \
                --mandir=${prefix}/share/man
configure.env   TMPDIR= TMP= TEMP= 

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

variant proxy {
    patchfiles-append   patch-cvs-proxy
}

livecheck.type  regex
livecheck.url   http://savannah.nongnu.org/projects/cvs/
livecheck.regex Stable CVS Version (\[0-9.\]+) Released!
