Changeset 103195


Ignore:
Timestamp:
Feb 18, 2013, 9:46:43 AM (6 years ago)
Author:
and.damore@…
Message:

port luash: fixed master_sites, added modeline, using the right compiler, installing docs, updated patch

Location:
trunk/dports/shells/luash
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/shells/luash/Portfile

    r103194 r103195  
     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
    12# $Id$
    23PortSystem          1.0
     
    45name                luash
    56version             0.9
     7license             AGPL-3
    68categories          shells lua
    79maintainers         and.damore openmaintainer
     
    1012homepage            http://luaforge.net/projects/luash/         
    1113platforms           darwin
    12 master_sites        http://luaforge.net/frs/download.php/4238
    13 #this is a hack, distfile has name ending in .tar.gz but is actually a bzip2 file
     14master_sites        http://files.luaforge.net/releases/luash/luash/luash0.9
     15distname            ${name}
    1416use_bzip2           yes
    15 extract.suffix      .tar.gz
    1617checksums           md5     67bbb8985166579686361fe840e016c0 \
    1718                    sha1    ef1d56843f19a29b96f6d5ce8f983b54074b955f \
     
    2021worksrcdir          ${name}
    2122use_configure       no
    22 destroot.env-append PREFIX=${destroot}${prefix}
     23build.args-append       CC=${configure.cc} \
     24                        CXX=${configure.cxx} \
     25                        CPP=${configure.cpp}
     26destroot.args       PREFIX=${prefix}
     27post-destroot {
     28    xinstall -d -m 755 ${destroot}$prefix/share/doc/${name}
     29    xinstall    -m 644 -W ${worksrcpath} COPYING README ${destroot}$prefix/share/doc/${name}
     30}
  • trunk/dports/shells/luash/files/patch-makefile.diff

    r57944 r103195  
    1 --- makefile.orig       2009-09-19 16:51:32.000000000 +0200
    2 +++ makefile    2009-09-19 16:57:40.000000000 +0200
    3 @@ -1,6 +1,6 @@
     1--- makefile.orig       2013-02-18 10:20:14.000000000 +0100
     2+++ makefile    2013-02-18 10:20:33.000000000 +0100
     3@@ -1,16 +1,16 @@
    44 CXX_FLAGS=-O3
    55 all:
    66-       echo -n const char *lua_code = \" > lua_code.h
     7-       cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | gawk '{ print $$0"\\n" }' | tr -d '\n' >> lua_code.h
     8-       echo "\";" >> lua_code.h
     9-       g++ -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
    710+       /bin/echo -n const char *lua_code = \" > lua_code.h
    8         cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | gawk '{ print $$0"\\n" }' | tr -d '\n' >> lua_code.h
    9         echo "\";" >> lua_code.h
    10         g++ -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
     11+       cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | gawk '{ print $0"\\n" }' | tr -d '\n' >> lua_code.h
     12+       /bin/echo "\";" >> lua_code.h
     13+       $(CXX) -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
     14 
     15 clean:
     16        !(test -e lua_code.h) || rm lua_code.h
     17        !(test -e luash) || rm luash
     18 
     19 install:
     20-       if [ "${PREFIX}" == "" ]; then cp luash /usr/local/bin/; else cp luash "${PREFIX}/bin/"; fi
     21+       if [ "${PREFIX}" == "" ]; then cp luash /usr/local/bin/; else cp luash "$(DESTDIR)${PREFIX}/bin/"; fi
     22 
     23 uninstall:
     24-       if [ "${PREFIX}" == "" ]; then rm /usr/local/bin/luash; else rm "${PREFIX}/bin/luash"; fi
     25+       if [ "${PREFIX}" == "" ]; then rm /usr/local/bin/luash; else rm "$(DESTDIR)${PREFIX}/bin/luash"; fi
Note: See TracChangeset for help on using the changeset viewer.