[73798] trunk/dports/devel/lua-wsapi

and.damore at macports.org and.damore at macports.org
Thu Nov 25 09:06:47 PST 2010


Revision: 73798
          http://trac.macports.org/changeset/73798
Author:   and.damore at macports.org
Date:     2010-11-25 09:06:43 -0800 (Thu, 25 Nov 2010)
Log Message:
-----------
upgraded lua-wsapi to 1.4, added library install target that was missing

Modified Paths:
--------------
    trunk/dports/devel/lua-wsapi/Portfile
    trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff

Added Paths:
-----------
    trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.c.diff

Removed Paths:
-------------
    trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff

Modified: trunk/dports/devel/lua-wsapi/Portfile
===================================================================
--- trunk/dports/devel/lua-wsapi/Portfile	2010-11-25 17:04:19 UTC (rev 73797)
+++ trunk/dports/devel/lua-wsapi/Portfile	2010-11-25 17:06:43 UTC (rev 73798)
@@ -2,7 +2,7 @@
 PortSystem 1.0
 
 name                lua-wsapi
-version             1.1.0
+version             1.4
 categories          devel
 platforms           darwin
 maintainers         and.damore openmaintainer
@@ -12,13 +12,26 @@
                     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}
+
+master_sites        https://github.com/keplerproject/wsapi/tarball/v${version}
+
+# actual name on web server is different than ${distname} but github returns a
+# tarball with the last part of URI as name
+# we'll end with a ${distname}.${extract.suffix} anyway but we need to strip
+# first component of path in order to have a consistent tree
+extract.mkdir       yes
+extract.post_args   "| tar --strip-components=1 -xf -"
+
+checksums           md5     5cfdaf867aed48e155d732f964985d3d \
+                    sha1    b041148e4a13fb454c08c21de2a8f9ba9a4a3ec6 \
+                    rmd160  d81aa518bf6e1a14814a778e075a3bef7b267f69
+
 depends_lib         port:lua
+
 patchfiles          patch-Makefile.diff \
                     patch-configure.diff \
-                    patch-src-fastcgi-lfcgi.diff                
+                    patch-src-fastcgi-lfcgi.c.diff
+
 configure.pre_args  lua
+
+destroot.target-append  install-fcgi

Modified: trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff	2010-11-25 17:04:19 UTC (rev 73797)
+++ trunk/dports/devel/lua-wsapi/files/patch-Makefile.diff	2010-11-25 17:06:43 UTC (rev 73798)
@@ -1,6 +1,6 @@
---- Makefile.orig	2009-09-19 15:49:32.000000000 +0200
-+++ Makefile	2009-09-19 16:01:04.000000000 +0200
-@@ -14,16 +14,16 @@
+--- Makefile.orig	2010-11-25 14:08:08.000000000 +0100
++++ Makefile	2010-11-25 14:10:45.000000000 +0100
+@@ -14,16 +14,17 @@
  fcgi: fastcgi
  
  src/fastcgi/lfcgi.so: src/fastcgi/lfcgi.o src/fastcgi/lfcgi.h
@@ -19,6 +19,7 @@
  
  install-fcgi:
 -	cp src/fastcgi/lfcgi.so $(LUA_LIBDIR)/
++	mkdir -p $(DESTDIR)/$(LUA_LIBDIR)
 +	cp src/fastcgi/lfcgi.so $(DESTDIR)/$(LUA_LIBDIR)/
  
  install-rocks: install

Copied: trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.c.diff (from rev 73790, trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff)
===================================================================
--- trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.c.diff	                        (rev 0)
+++ trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.c.diff	2010-11-25 17:06:43 UTC (rev 73798)
@@ -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
+@@ -76,8 +76,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;

Deleted: trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff
===================================================================
--- trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff	2010-11-25 17:04:19 UTC (rev 73797)
+++ trunk/dports/devel/lua-wsapi/files/patch-src-fastcgi-lfcgi.diff	2010-11-25 17:06:43 UTC (rev 73798)
@@ -1,16 +0,0 @@
---- 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/20101125/4f01ce75/attachment-0001.html>


More information about the macports-changes mailing list