Permalink
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (48 sloc) 1.62 KB
# -*- 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 detex
version 2.8
revision 1
categories tex textproc
maintainers ryandesign
license NCSA
homepage http://www.cs.purdue.edu/homes/trinkle/detex/
master_sites ${homepage}
platforms darwin
# use_tar is new in MacPorts 2.5.0.
if {[info command use_tar] eq "use_tar"} {
use_tar yes
} else {
extract.suffix .tar
extract.cmd tar
extract.pre_args -xf
extract.post_args
}
use_configure 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
variant universal {}
if {[variant_isset universal]} {
set archflags ${configure.universal_cflags}
} else {
set archflags ${configure.cc_archflags}
}
build.args CC="${configure.cc} ${archflags}"
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}
xinstall -d ${docdir}
xinstall -W ${worksrcpath} COPYRIGHT README ${docdir}
}
livecheck.type regex
livecheck.regex ${name}-(\[0-9.\]+)\\.tar