# -*- 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
# $Id: Portfile 88786 2012-01-11 17:49:57Z ryandesign@macports.org $

PortSystem          1.0

name                librep
version             0.92.1b
categories          lang
platforms           darwin
maintainers         hilaiel.com:lloyd
license             GPL-2+

description         A shared library implementing a Lisp dialect

long_description    librep is a shared library implementing a Lisp \
                    dialect that is lightweight, reasonably fast, and \
                    highly extensible. It contains an interpreter, \
                    byte-code compiler and virtual machine. Applications \
                    may use the interpreter as an extension language, or \
                    it may be used for standalone scripts.

homepage            http://sawfish.wikia.com/wiki/Librep
master_sites        http://download.tuxfamily.org/librep/
use_xz              yes

checksums           rmd160  69e00665fe02cd6fdf1f31531b22f5969e291bb1 \
                    sha256  aedca2716252a1ff2256aca321cce35646b795840b65a3c481708c04a6fd7e3e

depends_build       port:pkgconfig

depends_lib         port:gdbm \
                    port:gmp \
                    port:libffi

# TODO variant with readline support
configure.args      --without-readline

# 10.3 and i386 are fine with the default 'stack-direction=-1' but 10.4 ppc needs 1
platform darwin 8 powerpc {
    configure.args-append   --with-stack-direction=1
}
