# $Id: Portfile 92837 2012-05-09 00:51:48Z ryandesign@macports.org $

PortSystem 1.0
PortGroup               github 1.0
PortGroup               cmake 1.0

github.setup            stevedekorte io 2011.09.12
revision                2
name                    Io
categories      lang
platforms       macosx
maintainers     openmaintainer brett
description     Io is small prototype-based programming language
long_description \
    Io is small prototype-based programming language. The ideas in Io are   \
    mostly inspired by Smalltalk (all values are objects), Self,            \
    NewtonScript and Act1 (prototype-based differential inheritance, actors \
    and futures for concurrency), LISP (code is a runtime inspectable /     \
    modifiable tree) and Lua (small, embeddable).

homepage                http://www.iolanguage.com/

checksums               rmd160  3d72e02ba4b43cbecac150cbd9d744306633eb2f \
                        sha256  7b4cb97a0aa3abb562703e1dbfe46925c22820eeca6969865b979c397799d092

depends_lib             path:lib/pkgconfig/cairo.pc:cairo \
                        port:freetype \
                        path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        port:gmp \
                        port:jpeg \
                        port:libedit \
                        port:libevent \
                        port:libffi \
                        port:libiconv \
                        port:libmemcached \
                        port:libogg \
                        port:libpng \
                        port:libsndfile \
                        port:libtheora \
                        port:libvorbis \
                        port:libxml2 \
                        port:loudmouth \
                        port:lzo2 \
                        port:ncurses \
                        port:openssl \
                        port:ossp-uuid \
                        path:lib/pkgconfig/pango.pc:pango \
                        port:pcre \
                        port:python27 \
                        port:readline \
                        port:sqlite3 \
                        port:tiff \
                        port:yajl \
                        port:zlib

patchfiles              patch-libs-basekit-source-Common_inline.h.diff

configure.python        ${prefix}/bin/python2.7

# ../../_build/binaries/io_static: No such file or directory
use_parallel_build      no

post-destroot {
    fs-traverse destlib ${destroot}${prefix}/lib {
        if {[file isfile ${destlib}] && [file extension ${destlib}] == ".dylib"} {
            set lib [strsed ${destlib} "s|^${destroot}||"]
            set cmd "install_name_tool -id '${lib}' '${destlib}'"
            ui_debug "Assembled command: '${cmd}'"
            system "${cmd}"
        }
    }
}
