[57763] trunk/dports/devel/lua-copas
and.damore at macports.org
and.damore at macports.org
Wed Sep 16 03:28:17 PDT 2009
Revision: 57763
http://trac.macports.org/changeset/57763
Author: and.damore at macports.org
Date: 2009-09-16 03:28:16 -0700 (Wed, 16 Sep 2009)
Log Message:
-----------
luafilesystem library for lua, new port
Modified Paths:
--------------
trunk/dports/devel/lua-copas/Portfile
trunk/dports/devel/lua-copas/files/patch-Makefile.diff
Added Paths:
-----------
trunk/dports/devel/lua-copas/files/patch-config.diff
Modified: trunk/dports/devel/lua-copas/Portfile
===================================================================
--- trunk/dports/devel/lua-copas/Portfile 2009-09-16 09:54:24 UTC (rev 57762)
+++ trunk/dports/devel/lua-copas/Portfile 2009-09-16 10:28:16 UTC (rev 57763)
@@ -1,25 +1,26 @@
# $Id$
PortSystem 1.0
-name lua-copas
-version 1.1.5
+name lua-luafilesystem
+version 1.4.2
categories devel
platforms darwin
maintainers and.damore openmaintainer
-description Coroutine Oriented Portable Asynchronous Services for Lua
-long_description Copas is a dispatcher based on coroutines that can be used by TCP/IP \
- servers. It uses LuaSocket as the interface with the TCP/IP stack.
-homepage http://www.keplerproject.org/copas/
-master_sites http://luaforge.net/frs/download.php/4027/
-checksums md5 89b78f2d9a9d13c35a35756f2471f059 \
- sha1 fb1726cce15deaed9e0aecd5f2b691d4c2d72a8b \
- rmd160 5069fcd0bd134cee9ad9a530752a4b54d73783b5
-distname copas-${version}
-depends_lib port:lua \
- port:lua-luasocket
-patchfiles patch-Makefile.diff
+description File System Library for the Lua Programming Language
+long_description LuaFileSystem is a Lua library developed to complement the set of \
+ functions related to file systems offered by the standard Lua \
+ distribution.
+homepage http://www.keplerproject.org/luafilesystem
+master_sites http://luaforge.net/frs/download.php/3931/
+checksums md5 8e7b2a9b899d669280456d0f95afd961 \
+ sha1 19b2d7935d933868baa4fc59ad1ef79ee9924217 \
+ rmd160 47ced0e72f4e2b442fe3fc38214e4ac7f56cfced
+distname luafilesystem-${version}
+depends_lib port:lua
+patchfiles patch-config.diff \
+ patch-Makefile.diff
post-patch {
- reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/Makefile
+ reinplace "s|%%PREFIX%%|${prefix}|g" ${worksrcpath}/config
}
use_configure no
-build {}
\ No newline at end of file
+build.target
Modified: trunk/dports/devel/lua-copas/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-copas/files/patch-Makefile.diff 2009-09-16 09:54:24 UTC (rev 57762)
+++ trunk/dports/devel/lua-copas/files/patch-Makefile.diff 2009-09-16 10:28:16 UTC (rev 57763)
@@ -1,19 +1,13 @@
---- Makefile.orig 2009-09-16 11:13:39.000000000 +0200
-+++ Makefile 2009-09-16 11:14:19.000000000 +0200
-@@ -1,13 +1,13 @@
- # $Id: Makefile,v 1.3 2007/10/29 22:50:16 carregal Exp $
+--- Makefile.orig 2009-09-16 12:21:18.000000000 +0200
++++ Makefile 2009-09-16 12:21:59.000000000 +0200
+@@ -15,8 +15,8 @@
+ MACOS_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
- # Default prefix
--PREFIX = /usr/local
-+PREFIX = %%PREFIX%%
-
- # System's lua directory (where Lua libraries are installed)
- LUA_DIR= $(PREFIX)/share/lua/5.1
-
install:
-- mkdir -p $(LUA_DIR)/copas
-- cp src/copas/copas.lua $(LUA_DIR)/copas.lua
-+ mkdir -p $(DESTDIR)/$(LUA_DIR)/copas
-+ cp src/copas/copas.lua $(DESTDIR)$(LUA_DIR)/copas.lua
+- mkdir -p $(LUA_LIBDIR)
+- cp src/lfs.so $(LUA_LIBDIR)
++ mkdir -p $(DESTDIR)$(LUA_LIBDIR)
++ cp src/lfs.so $(DESTDIR)$(LUA_LIBDIR)
clean:
+ rm -f src/lfs.so $(OBJS)
Added: trunk/dports/devel/lua-copas/files/patch-config.diff
===================================================================
--- trunk/dports/devel/lua-copas/files/patch-config.diff (rev 0)
+++ trunk/dports/devel/lua-copas/files/patch-config.diff 2009-09-16 10:28:16 UTC (rev 57763)
@@ -0,0 +1,28 @@
+--- config.orig 2009-09-16 12:13:37.000000000 +0200
++++ config 2009-09-16 12:14:49.000000000 +0200
+@@ -1,7 +1,7 @@
+ # Installation directories
+
+ # Default installation prefix
+-PREFIX=/usr/local
++PREFIX=%%PREFIX%%
+
+ # System's libraries directory (where binary libraries are installed)
+ LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
+@@ -10,8 +10,8 @@
+ LUA_INC= $(PREFIX)/include
+
+ # OS dependent
+-LIB_OPTION= -shared #for Linux
+-#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
++#LIB_OPTION= -shared #for Linux
++LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
+
+ LIBNAME= $T.so.$V
+
+@@ -20,5 +20,3 @@
+ INCS= -I$(LUA_INC)
+ CFLAGS= $(WARN) $(INCS)
+ CC= gcc
+-
+-# $Id: config,v 1.21 2007/10/27 22:42:32 carregal Exp $
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090916/6ba4bca5/attachment.html>
More information about the macports-changes
mailing list