source: trunk/dports/shells/luash/Portfile

Last change on this file was 118347, checked in by macsforever2000@…, 3 years ago

luash: Remove lua from categories because no other port uses that. (#37890)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 118347 2014-03-31 17:26:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                    luash
7version                 0.9
8revision                2
9license                 AGPL-3+
10categories              shells
11maintainers             nomaintainer
12description             shell written in Lua/C++
13long_description        luash is a shell written in Lua/C++ that allow you to run command using Lua syntax
14homepage                http://luaforge.net/projects/luash
15platforms               darwin
16master_sites            http://files.luaforge.net/releases/luash/luash/luash${version}
17distname                ${name}
18dist_subdir             ${name}/${version}
19checksums               md5     67bbb8985166579686361fe840e016c0 \
20                        sha1    ef1d56843f19a29b96f6d5ce8f983b54074b955f \
21                        rmd160  165d88850e8d068d7586f1785b36dd20c9c8ce37
22
23use_bzip2               yes
24
25# patch for luash.lua addresses a change in API for os.execute() in 5.2
26# remove it if a lua51 port is introduced and used to compile luash
27patchfiles              patch-makefile.diff \
28                        patch-luash_cpp.diff \
29                        patch-luash_lua.diff
30
31use_configure           no
32universal_variant       yes
33
34depends_lib             port:lua \
35                        port:lua-luafilesystem
36
37pre-build {
38    build.args          CXX=${configure.cxx} \
39                        CXX_FLAGS="${configure.cppflags} ${configure.cxxflags} \
40                            [get_canonical_archflags cxx] ${configure.ldflags}"
41}
42
43destroot.destdir        PREFIX=${destroot}${prefix}
44
45post-destroot {
46    xinstall -d -m 755 ${destroot}$prefix/share/doc/${name}
47    xinstall    -m 644 -W ${worksrcpath} COPYING README ${destroot}$prefix/share/doc/${name}
48}
49
Note: See TracBrowser for help on using the repository browser.