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

PortSystem              1.0

name                    detex
version                 2.8
categories              tex textproc
maintainers             ryandesign
license                 NCSA/University of Illinois Open Source License
homepage                http://www.cs.purdue.edu/homes/trinkle/detex/
master_sites            ${homepage}
platforms               darwin
extract.suffix          .tar
extract.cmd             tar
extract.pre_args        -xf
extract.post_args
use_configure           no
universal_variant       no
use_parallel_build      yes

description \
    removes TeX constructs from a text file

long_description \
    Detex ${description}.

checksums \
    md5 7a96b647f43bb077323cde92faa1e893 \
    sha1 57691f8e4dd52cbf632f38abebfd8c3725de019b \
    rmd160 983ea90de9e3559317baf4a71de0e8de47863b7d

patchfiles \
    patch-Makefile.diff

destroot {
    xinstall -W ${worksrcpath} detex ${destroot}${prefix}/bin
    xinstall -W ${worksrcpath} detex.1l ${destroot}${prefix}/share/man/man1/
    
    set docdir ${destroot}${prefix}/share/doc/${name}-${version}
    xinstall -d ${docdir}
    xinstall -W ${worksrcpath} COPYRIGHT README ${docdir}
}

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