# -*- 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                tklib
version             0.7
revision            0
categories          devel
license             BSD
platforms           any
maintainers         nomaintainer
supported_archs     noarch

description         A companion to Tcllib, for Tk related packages.

long_description    {*}$description

homepage            https://core.tcl-lang.org/tklib/home

use_bzip2           yes
set artifact_uuid   7832035fb9
master_sites        https://core.tcl-lang.org/${name}/raw/${distfiles}?name=${artifact_uuid}&dummy=

checksums           size    5967953 \
                    sha256  5a1283a1056350c7cb89fba4af1e83ed2dbfc2e310c5303013faae0b563e5ece \
                    rmd160  ab5b9531f3f5eea16572fd1785e8caf76d1e6724

configure.args      --mandir=${prefix}/share/man

depends_lib         port:tcl \
                    port:tcllib \
                    port:tk

post-destroot {
    reinplace "s|#!/usr/bin/env wish|#!${prefix}/bin/wish|g" ${destroot}${prefix}/bin/bitmap-editor
    reinplace "s|#!/usr/bin/env tclsh|#!${prefix}/bin/tclsh|g" ${destroot}${prefix}/bin/diagram-viewer
}

test.run            yes

livecheck.url       https://core.tcl-lang.org/tklib/wiki?name=Downloads
