[57942] trunk/dports/devel
and.damore at macports.org
and.damore at macports.org
Sat Sep 19 07:13:24 PDT 2009
Revision: 57942
http://trac.macports.org/changeset/57942
Author: and.damore at macports.org
Date: 2009-09-19 07:13:20 -0700 (Sat, 19 Sep 2009)
Log Message:
-----------
web server API for lua, new port
Added Paths:
-----------
trunk/dports/devel/lua-wsapi/
trunk/dports/devel/lua-wsapi/Portfile
trunk/dports/devel/lua-wsapi/files/
trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff
trunk/dports/devel/lua-wsapi/files/patch-configure.diff
trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff
Added: trunk/dports/devel/lua-wsapi/Portfile
===================================================================
--- trunk/dports/devel/lua-wsapi/Portfile (rev 0)
+++ trunk/dports/devel/lua-wsapi/Portfile 2009-09-19 14:13:20 UTC (rev 57942)
@@ -0,0 +1,24 @@
+# $Id$
+PortSystem 1.0
+
+name lua-wsapi
+version 1.1.0
+categories devel
+platforms darwin
+maintainers and.damore openmaintainer
+description Lua Web Server API
+long_description WSAPI is an API that abstracts the web server from Lua web applications. \
+ By coding against WSAPI your application can run on any of the supported \
+ servers and interfaces (currently CGI, FastCGI and Xavante, on Windows \
+ and UNIX-based systems).
+homepage http://wsapi.luaforge.net/
+master_sites http://luaforge.net/frs/download.php/3935/
+checksums md5 6a872e60b091d15561a26e283a047ba7 \
+ sha1 f18e938f97575759fbe66893721cf9da5a245384 \
+ rmd160 02259c07799089953c360706cc682c12cbc4b2ae
+distname wsapi-${version}
+depends_lib port:lua
+patchfiles patch-Makefile.diff \
+ patch-configure.diff \
+ patch-src-fastcgi-lfcgi.diff
+configure.pre_args lua
Property changes on: trunk/dports/devel/lua-wsapi/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff 2009-09-19 14:13:20 UTC (rev 57942)
@@ -0,0 +1,25 @@
+--- Makefile.orig 2009-09-19 15:49:32.000000000 +0200
++++ Makefile 2009-09-19 16:01:04.000000000 +0200
+@@ -14,16 +14,16 @@
+ fcgi: fastcgi
+
+ src/fastcgi/lfcgi.so: src/fastcgi/lfcgi.o src/fastcgi/lfcgi.h
+- $(CC) $(CFLAGS) $(LIB_OPTION) -o src/fastcgi/lfcgi.so src/fastcgi/lfcgi.o -lfcgi
++ $(CC) $(CFLAGS) $(LIB_OPTION) -o src/fastcgi/lfcgi.so src/fastcgi/lfcgi.o -lfcgi -llua
+
+ install:
+- mkdir -p $(LUA_DIR)/wsapi
+- cp src/wsapi/*.lua $(LUA_DIR)/wsapi
+- cp src/launcher/wsapi.cgi $(BIN_DIR)/
+- cp src/launcher/wsapi.fcgi $(BIN_DIR)/
++ mkdir -p $(DESTDIR)/$(LUA_DIR)/wsapi
++ cp src/wsapi/*.lua $(DESTDIR)/$(LUA_DIR)/wsapi
++ cp src/launcher/wsapi.cgi $(DESTDIR)/$(BIN_DIR)/
++ cp src/launcher/wsapi.fcgi $(DESTDIR)/$(BIN_DIR)/
+
+ install-fcgi:
+- cp src/fastcgi/lfcgi.so $(LUA_LIBDIR)/
++ cp src/fastcgi/lfcgi.so $(DESTDIR)/$(LUA_LIBDIR)/
+
+ install-rocks: install
+ mkdir -p $(PREFIX)/samples
Added: trunk/dports/devel/lua-wsapi/files/patch-configure.diff
===================================================================
--- trunk/dports/devel/lua-wsapi/files/patch-configure.diff (rev 0)
+++ trunk/dports/devel/lua-wsapi/files/patch-configure.diff 2009-09-19 14:13:20 UTC (rev 57942)
@@ -0,0 +1,11 @@
+--- configure.orig 2009-09-18 19:51:51.000000000 +0200
++++ configure 2009-09-18 19:55:23.000000000 +0200
+@@ -25,7 +25,7 @@
+ lua_share=$lua_root/share/lua/5.1
+ lua_lib=$lua_root/lib/lua/5.1
+ bin_dir=$lua_root/bin
+- echo "LIB_OPTION= -shared" > config
++ echo "LIB_OPTION= -dynamiclib" > config
+ echo "LUA_DIR= $lua_share" >> config
+ echo "BIN_DIR= $bin_dir" >> config
+ echo "LUA_LIBDIR= $lua_lib" >> config
Added: trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff
===================================================================
--- trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff (rev 0)
+++ trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff 2009-09-19 14:13:20 UTC (rev 57942)
@@ -0,0 +1,16 @@
+--- src/fastcgi/lfcgi.c.orig 2009-09-19 15:40:19.000000000 +0200
++++ src/fastcgi/lfcgi.c 2009-09-19 15:46:37.000000000 +0200
+@@ -77,8 +77,11 @@
+ #define IO_INPUT "_input"
+ #define IO_OUTPUT "_output"
+
+-#ifndef _WIN32
+-extern char **environ;
++#ifdef __APPLE__
++#include <crt_externs.h>
++#define environ (*_NSGetEnviron())
++#else
++ extern char **environ;
+ #endif
+
+ static char **old_env;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090919/66236532/attachment.html>
More information about the macports-changes
mailing list