# $Id: Portfile 90686 2012-03-12 12:16:23Z jmr@macports.org $

PortSystem 1.0

name             gforth
version          0.7.0
revision         1
categories       lang
license          GPL-3+
maintainers      gmail.com:arto.bendiken
description      fast and portable implementation of the ANS Forth language
long_description \
    Gforth is a fast and portable implementation of the ANS Forth \
    language. It works nicely with the Emacs editor, offers some \
    nice features such as input completion and history and a \
    powerful locals facility, and it even has (the beginnings of) \
    a manual. Gforth employs traditional implementation \
    techniques: its inner interpreter is indirect or direct threaded.
homepage         http://www.gnu.org/software/gforth/
platforms        darwin
master_sites     gnu
checksums        md5       2979ae86ede73ce2b3576dae957f4098 \
                 sha1      5bb357268cba683f2a8c63d2a4bcab8f41cb0086 \
                 ripemd160 df0cef8cff25eddf670315c5497fc5634226968c

test.run         yes
test.cmd         make
test.target      check bench

use_parallel_build no

post-destroot {
  file delete -force ${destroot}${prefix}/share/info/dir
}

platform darwin {
    if {$build_arch == "x86_64"} {
        configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
    }
}
