[89903] trunk/dports/devel
and.damore at macports.org
and.damore at macports.org
Tue Feb 14 07:02:22 PST 2012
Revision: 89903
http://trac.macports.org/changeset/89903
Author: and.damore at macports.org
Date: 2012-02-14 07:02:20 -0800 (Tue, 14 Feb 2012)
Log Message:
-----------
new port lua-cgilua
Added Paths:
-----------
trunk/dports/devel/lua-cgilua/
trunk/dports/devel/lua-cgilua/Portfile
trunk/dports/devel/lua-cgilua/files/
trunk/dports/devel/lua-cgilua/files/patch-Makefile.diff
Added: trunk/dports/devel/lua-cgilua/Portfile
===================================================================
--- trunk/dports/devel/lua-cgilua/Portfile (rev 0)
+++ trunk/dports/devel/lua-cgilua/Portfile 2012-02-14 15:02:20 UTC (rev 89903)
@@ -0,0 +1,55 @@
+# $Id$
+PortSystem 1.0
+PortGroup github 1.0
+
+github.setup keplerproject cgilua 5.1.4
+github.tarball_from downloads
+
+name lua-${github.project}
+version 5.1.3
+license MIT
+categories devel
+platforms darwin
+maintainers and.damore openmaintainer
+description Building Web Scripts with Lua
+long_description CGILua is a tool for creating dynamic Web pages and manipulating input \
+ data from Web forms. CGILua allows the separation of logic and data \
+ handling from the generation of pages, making it easy to develop web \
+ applications with Lua.
+
+checksums md5 6c120f3bb235e1edd9baad762eb303c1 \
+ sha1 573da0ffbaed5c60eb6b2f1c5587d32f9cdc5a49 \
+ rmd160 e094af41d5162a0793b68f46597983a8d4d220e5
+
+depends_lib port:lua \
+ port:lua-luafilesystem
+
+patchfiles patch-Makefile.diff
+use_configure no
+build {}
+destroot.args PREFIX="${prefix}"
+
+post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/bin
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
+
+ # binaries
+ xinstall -m 755 -W ${worksrcpath}/src/launchers cgilua.cgi cgilua.fcgi \
+ ${destroot}${prefix}/bin
+
+ # documentation
+ eval file copy ${worksrcpath}/README \
+ ${worksrcpath}/doc/br \
+ [glob ${worksrcpath}/doc/us/*] \
+ ${destroot}${prefix}/share/doc/${name}
+
+ # examples
+ eval file copy [glob ${worksrcpath}/examples/*] \
+ ${worksrcpath}/tests \
+ ${destroot}${prefix}/share/examples/${name}
+
+ # set module files readonly
+ system -W ${destroot}${prefix}/share/lua/5.1 "chmod -x cgilua.lua cgilua/*"
+}
+
Property changes on: trunk/dports/devel/lua-cgilua/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/lua-cgilua/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-cgilua/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/lua-cgilua/files/patch-Makefile.diff 2012-02-14 15:02:20 UTC (rev 89903)
@@ -0,0 +1,15 @@
+--- Makefile.orig 2012-02-14 15:10:52.000000000 +0100
++++ Makefile 2012-02-14 15:11:56.000000000 +0100
+@@ -13,9 +13,9 @@
+ all:
+
+ install:
+- mkdir -p $(CGILUA_DIR)
+- cp $(CGILUA_LUAS) $(CGILUA_DIR)
+- cp $(ROOT_LUAS) $(LUA_DIR)
++ mkdir -p $(DESTDIR)$(CGILUA_DIR)
++ cp $(CGILUA_LUAS) $(DESTDIR)$(CGILUA_DIR)
++ cp $(ROOT_LUAS) $(DESTDIR)$(LUA_DIR)
+
+ clean:
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120214/fec78c62/attachment-0001.html>
More information about the macports-changes
mailing list