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

PortSystem          1.0

name                cowsay
version             3.03
revision            1
categories          textproc amusements games
license             {Artistic-1 GPL}
platforms           darwin freebsd
maintainers         {grimreaper @grimreaper}
supported_archs     noarch
description         Configurable talking characters in ASCII art
long_description    ${description}
homepage            http://www.nog.net/~tony/warez/
master_sites        ftp://ftp.nog.net/pub/tony/cowsay/
checksums           md5 b29169797359420dadb998079021a494

patchfiles          patch-cowsay.diff \
                    patch-install.sh.diff

use_configure       no

build               {}

destroot {
    system "cd $worksrcpath && sh install.sh ${destroot}${prefix}"
    reinplace "s,${destroot}${prefix},${prefix}," "${destroot}${prefix}/bin/cowsay"
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar