# $Id: Portfile 57758 2009-09-16 07:48:28Z ryandesign@macports.org $

PortSystem              1.0

name                    dosmacux
version                 1.5
categories              textproc
platforms               darwin
maintainers             ryandesign
license                 public domain
use_bzip2               yes
use_parallel_build      yes
homepage                http://www.math.utah.edu/pub/dosmacux/

master_sites \
    ${homepage} \
    ftp://ftp.math.utah.edu/pub/misc/

checksums \
    md5 4c37a5fa90a4598f109e36047e3a9010 \
    sha1 37344520373639cd7a9fb69465114218044ff7b0 \
    rmd160 dc87032458df1106a48df6dc017138202c886f45

description \
    convert text file line endings between DOS, Mac and UNIX standards

long_description \
    ${name} provides six utilities for converting text file end-of-line \
    characters from one operating system convention to another, while \
    retaining file time stamps.

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

test.run                yes
test.target             check

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}-${version}
    xinstall -d ${docdir}
    xinstall -W ${worksrcpath} -m 0644 \
        AUTHORS \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        ${docdir}
}

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