# $Id: Portfile 76741 2011-03-07 09:19:17Z pmq@macports.org $

PortSystem 1.0

name                sysvbanner
version             1.0.15
categories          sysutils textproc
platforms	    darwin
maintainers	    pmq

description         System V banner clone
long_description    \
    Displays a banner text the same way as the System V banner does: horizontally.

homepage            http://directory.fsf.org/text/doc/banner.html
master_sites        http://ftp.debian.org/debian/pool/main/s/sysvbanner

distfiles           [suffix ${name}_${version}]

checksums           sha1    310960c38ff9778bc1597322f45f8b052b7c5ede \
                    rmd160  6268a34e613585db3ba3387e710c51bbc516df9c

livecheck.url	    http://packages.debian.org/unstable/misc/${name}
livecheck.regex	    "<h1>Package: ${name} \\\((\[a-z0-9.\]+)"

use_configure	    no

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.target	    banner
build.args          CC=${configure.cc} \
                    CFLAGS="${archflags}"

destroot {
    xinstall -W ${worksrcpath} -m 755 banner ${destroot}${prefix}/bin/${name}
    xinstall -W ${worksrcpath} -m 644 banner.1 \
        ${destroot}${prefix}/share/man/man1/${name}.1
}
