# $Id: Portfile 65264 2010-03-24 22:14:46Z ryandesign@macports.org $

PortSystem      1.0

name            slang
conflicts       slang2
version         1.4.9
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      lang
platforms       darwin
maintainers     foellinger.de:olaf
description     library that includes a powerful scripting language with \
                a C-like syntax

long_description \
    S-Lang is a C programmer's library that includes routines for the \
    rapid development of sophisticated, user friendly, multi-platform \
    applications.

homepage        http://www.s-lang.org/
master_sites    ftp://space.mit.edu/pub/davis/slang/v${branch}/ \
                ftp://ftp.uni-stuttgart.de/pub/unix/misc/slang/slang/v${branch}/ \
                ftp://ftp.ntua.gr/pub/lang/slang/slang/v${branch}/ \
                ftp://ftp.plig.org/pub/slang/v${branch}/

checksums       md5 c73aa62b2d1b215ca55a7337daa3f543

pre-configure {
    reinplace "s|install_doc_dir = \$(prefix)/doc/slang|install_doc_dir = \$(prefix)/share/doc/slang|" \
    ${worksrcpath}/src/Makefile.in
}

test.run        yes
test.target     runtests
