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

PortSystem          1.0

name                tkcvs
version             8.2.3
categories          devel
license             GPL-2+
platforms           any
supported_archs     noarch
maintainers         nomaintainer

description         Tk-based GUI for CVS
long_description    \
    TkCVS is a Tcl/Tk-based graphical interface to the CVS \
    configuration management system. It displays the status \
    of the files in the current working directory, and provides \
    buttons and menus to execute CVS commands on the selected files. \
    TkDiff is included for browsing and merging your changes.

# DNS lookup fails for twobarleycorns.net (NXDOMAIN 20181016)
# homepage            http://www.twobarleycorns.net/tkcvs.html
homepage            https://tkcvs.sourceforge.io/
master_sites        sourceforge:project/tkcvs/tkcvs/${version}

checksums           rmd160  62f80f45341fb4c52212b26845fbb64a8e8c133b \
                    sha256  4bfb29dd9ffbbbc1e6e611e1c772af745d742d336e797bf056dbf70116b8e32a \
                    size    570910

depends_run         bin:wish8.5:tk
patchfiles          patch-doinstall.tcl.diff

use_configure       no

build {}

destroot {
    system -W ${worksrcpath} "./doinstall.tcl -nox -finallib ${prefix}/lib ${destroot}${prefix}"
}

post-destroot {
    reinplace "s|exec wish|exec wish8.5|" ${destroot}${prefix}/bin/tkcvs ${destroot}${prefix}/bin/tkdiff
}
