# -*- 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 103293 2013-02-20 10:23:50Z and.damore@macports.org $
PortSystem          1.0

name                    luash
version                 0.9
revision                1
license                 AGPL-3
categories              shells lua
maintainers             and.damore openmaintainer
description             shell written in Lua/C++
long_description        luash is a shell written in Lua/C++ that allow you to run command using Lua syntax
homepage                http://luaforge.net/projects/luash
platforms               darwin
master_sites            http://files.luaforge.net/releases/luash/luash/luash${version}
distname                ${name}
dist_subdir             ${name}/${version}
checksums               md5     67bbb8985166579686361fe840e016c0 \
                        sha1    ef1d56843f19a29b96f6d5ce8f983b54074b955f \
                        rmd160  165d88850e8d068d7586f1785b36dd20c9c8ce37

use_bzip2               yes
patchfiles              patch-makefile.diff
use_configure           no

variant universal {}

depends_lib             port:lua \
                        port:lua-luafilesystem

build.args-append       CXX=${configure.cxx} \
                        CXX_FLAGS="${configure.cxxflags} [get_canonical_archflags cxx]"

destroot.args           PREFIX=${prefix}

post-destroot {
    xinstall -d -m 755 ${destroot}$prefix/share/doc/${name}
    xinstall    -m 644 -W ${worksrcpath} COPYING README ${destroot}$prefix/share/doc/${name}
}
