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

name                rcs
version             5.10.1
revision            0
categories          devel
platforms           darwin
maintainers         nomaintainer
license             GPL-3+
installs_libs       no

description         Revision Control System

long_description    The Revision Control System (RCS) manages multiple \
                    revisions of files. RCS automates the storing, retrieval, \
                    logging, identification, and merging of revisions. RCS is \
                    useful for text that is revised frequently, including \
                    source code, programs, documentation, graphics, papers, \
                    and form letters.

homepage            https://www.gnu.org/software/${name}/
master_sites        gnu
use_lzip            yes

checksums           rmd160  0adde8a075de346e4229a893366e2aa396b4e651 \
                    sha256  43ddfe10724a8b85e2468f6403b6000737186f01e60e0bd62fde69d842234cc5 \
                    size    917331

if {${os.platform} eq "darwin" && ${os.major} > 22} {
    configure.cflags-append \
                    -Wno-error=incompatible-function-pointer-types
}

set docdir          ${prefix}/share/doc/${name}

post-destroot {
    xinstall -m 0755 -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING NEWS README THANKS \
        ${destroot}${docdir}
}

# Currently t999 fails
test.run            yes
test.target         check
