[103195] trunk/dports/shells/luash
and.damore at macports.org
and.damore at macports.org
Mon Feb 18 01:46:43 PST 2013
Revision: 103195
https://trac.macports.org/changeset/103195
Author: and.damore at macports.org
Date: 2013-02-18 01:46:43 -0800 (Mon, 18 Feb 2013)
Log Message:
-----------
port luash: fixed master_sites, added modeline, using the right compiler, installing docs, updated patch
Modified Paths:
--------------
trunk/dports/shells/luash/Portfile
trunk/dports/shells/luash/files/patch-makefile.diff
Modified: trunk/dports/shells/luash/Portfile
===================================================================
--- trunk/dports/shells/luash/Portfile 2013-02-18 09:40:40 UTC (rev 103194)
+++ trunk/dports/shells/luash/Portfile 2013-02-18 09:46:43 UTC (rev 103195)
@@ -1,3 +1,4 @@
+# -*- 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$
PortSystem 1.0
@@ -3,4 +4,5 @@
name luash
version 0.9
+license AGPL-3
categories shells lua
maintainers and.damore openmaintainer
@@ -9,14 +11,20 @@
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://luaforge.net/frs/download.php/4238
-#this is a hack, distfile has name ending in .tar.gz but is actually a bzip2 file
+master_sites http://files.luaforge.net/releases/luash/luash/luash0.9
+distname ${name}
use_bzip2 yes
-extract.suffix .tar.gz
checksums md5 67bbb8985166579686361fe840e016c0 \
sha1 ef1d56843f19a29b96f6d5ce8f983b54074b955f \
rmd160 165d88850e8d068d7586f1785b36dd20c9c8ce37
patchfiles patch-makefile.diff
worksrcdir ${name}
use_configure no
-destroot.env-append PREFIX=${destroot}${prefix}
+build.args-append CC=${configure.cc} \
+ CXX=${configure.cxx} \
+ CPP=${configure.cpp}
+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}
+}
Modified: trunk/dports/shells/luash/files/patch-makefile.diff
===================================================================
--- trunk/dports/shells/luash/files/patch-makefile.diff 2013-02-18 09:40:40 UTC (rev 103194)
+++ trunk/dports/shells/luash/files/patch-makefile.diff 2013-02-18 09:46:43 UTC (rev 103195)
@@ -1,10 +1,25 @@
---- makefile.orig 2009-09-19 16:51:32.000000000 +0200
-+++ makefile 2009-09-19 16:57:40.000000000 +0200
-@@ -1,6 +1,6 @@
+--- makefile.orig 2013-02-18 10:20:14.000000000 +0100
++++ makefile 2013-02-18 10:20:33.000000000 +0100
+@@ -1,16 +1,16 @@
CXX_FLAGS=-O3
all:
- echo -n const char *lua_code = \" > lua_code.h
+- cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | gawk '{ print $$0"\\n" }' | tr -d '\n' >> lua_code.h
+- echo "\";" >> lua_code.h
+- g++ -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
+ /bin/echo -n const char *lua_code = \" > lua_code.h
- cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | gawk '{ print $$0"\\n" }' | tr -d '\n' >> lua_code.h
- echo "\";" >> lua_code.h
- g++ -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
++ cat luash.lua | sed 's/\\/\\\\/g' | sed 's/\"/\\\"/g' | gawk '{ print $0"\\n" }' | tr -d '\n' >> lua_code.h
++ /bin/echo "\";" >> lua_code.h
++ $(CXX) -o luash luash.cpp ${CXX_FLAGS} -llua -lreadline
+
+ clean:
+ !(test -e lua_code.h) || rm lua_code.h
+ !(test -e luash) || rm luash
+
+ install:
+- if [ "${PREFIX}" == "" ]; then cp luash /usr/local/bin/; else cp luash "${PREFIX}/bin/"; fi
++ if [ "${PREFIX}" == "" ]; then cp luash /usr/local/bin/; else cp luash "$(DESTDIR)${PREFIX}/bin/"; fi
+
+ uninstall:
+- if [ "${PREFIX}" == "" ]; then rm /usr/local/bin/luash; else rm "${PREFIX}/bin/luash"; fi
++ if [ "${PREFIX}" == "" ]; then rm /usr/local/bin/luash; else rm "$(DESTDIR)${PREFIX}/bin/luash"; fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130218/2bd0c767/attachment.html>
More information about the macports-changes
mailing list