# $Id: Portfile 57182 2009-09-07 04:07:10Z ryandesign@macports.org $

PortSystem              1.0

name                    q
version                 7.11
revision                1
categories              lang
platforms               darwin
maintainers             ryandesign
homepage                http://q-lang.sourceforge.net/
master_sites            sourceforge:q-lang
worksrcdir              ${name}-[lindex [split ${version} -] 0]
use_parallel_build      yes

description \
    extensible scripting language

long_description \
    Q is a powerful and extensible scripting language with advanced \
    symbolic processing and functional programming capabilities. Q \
    is based on term rewriting. Consequently, Q scripts are just \
    collections of equations which are used to evaluate expressions \
    in a symbolic fashion. Despite its conceptual simplicity, Q is \
    a full-featured functional programming language with a modern \
    syntax, curried function applications, dynamic object-oriented \
    typing, exception handling, and POSIX multithreading.

depends_lib \
    port:curl \
    port:gettext \
    port:gmp \
    port:libiconv \
    port:libxml2 \
    port:libxslt \
    port:readline \
    port:zlib

checksums \
    md5 18ca956aad555b54efacc0de5b2d79bd \
    sha1 f255c80cee5b09d62b38e72785d12649901c0933 \
    rmd160 61a7eba9857ae2c7c553625a423c62fd737836e4

patchfiles \
    patch-system.c.diff

configure.args \
    --with-curl \
    --with-gmp \
    --with-pthread \
    --with-rl \
    --with-xml \
    --without-dmalloc \
    --without-dxl \
    --without-ft2 \
    --without-gdbm \
    --without-ggi \
    --without-magick \
    --without-odbc \
    --without-tk \
    --without-x

test.run                yes

livecheck.version       [lindex [split ${version} -] 0]
livecheck.regex         <title>q (.*) released.*</title>
