Portfile

# $Id: Portfile 22551 2007-03-04 20:39:15Z mww@macports.org $

PortSystem 1.0

name 4th
version 3.5a2
categories lang
platforms darwin
maintainers mww@macports.org
description very small Forth compiler
long_description 4tH is a very small Forth compiler that can create \
bytecode, C-embeddable bytecode, standalone executables, \
but also works fine as a scripting language. It supports \
over 85% of the ANS Forth CORE wordset and features \
conditional compilation, pipes, files, assertions, forward \
declarations, recursion, include files, etc.

homepage http://www.xs4all.nl/~thebeez/4tH/foldtree.html
master_sites http://www.xs4all.nl/~thebeez/4tH/
distname ${distname}-unix
checksums sha1 468ea25409e323bdfe99fda456f3884dece52fcb

worksrcdir ${name}-3.5a

use_configure no

build.dir ${worksrcpath}/sources
build.args -f Makefile.OSX

destroot.dir ${build.dir}
destroot.destdir LIBRARIES=${destroot}${prefix}/lib BINARIES=${destroot}${prefix}/bin
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc
file copy ${worksrcpath}/documentation ${destroot}${prefix}/share/doc/${name}
file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/
}

livecheck.check regex
livecheck.url http://www.xs4all.nl/~thebeez/4tH/download.html
livecheck.regex 4th-(\[a-z0-9\\.\]+)-unix.tar.gz