[57765] trunk/dports/devel
and.damore at macports.org
and.damore at macports.org
Wed Sep 16 03:36:54 PDT 2009
Revision: 57765
http://trac.macports.org/changeset/57765
Author: and.damore at macports.org
Date: 2009-09-16 03:36:53 -0700 (Wed, 16 Sep 2009)
Log Message:
-----------
luafilesystem library for lua. New port, this time for real
Added Paths:
-----------
trunk/dports/devel/lua-luafilesystem/
trunk/dports/devel/lua-luafilesystem/Portfile
trunk/dports/devel/lua-luafilesystem/files/
trunk/dports/devel/lua-luafilesystem/files/patch-Makefile.diff
trunk/dports/devel/lua-luafilesystem/files/patch-config.diff
Added: trunk/dports/devel/lua-luafilesystem/Portfile
===================================================================
--- trunk/dports/devel/lua-luafilesystem/Portfile (rev 0)
+++ trunk/dports/devel/lua-luafilesystem/Portfile 2009-09-16 10:36:53 UTC (rev 57765)
@@ -0,0 +1,26 @@
+# $Id$
+PortSystem 1.0
+
+name lua-luafilesystem
+version 1.4.2
+categories devel
+platforms darwin
+maintainers and.damore openmaintainer
+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}/config
+}
+use_configure no
+build.target
Property changes on: trunk/dports/devel/lua-luafilesystem/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/devel/lua-luafilesystem/files/patch-Makefile.diff
===================================================================
--- trunk/dports/devel/lua-luafilesystem/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/devel/lua-luafilesystem/files/patch-Makefile.diff 2009-09-16 10:36:53 UTC (rev 57765)
@@ -0,0 +1,13 @@
+--- 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)
+
+ install:
+- 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-luafilesystem/files/patch-config.diff
===================================================================
--- trunk/dports/devel/lua-luafilesystem/files/patch-config.diff (rev 0)
+++ trunk/dports/devel/lua-luafilesystem/files/patch-config.diff 2009-09-16 10:36:53 UTC (rev 57765)
@@ -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/6fcd7e2c/attachment.html>
More information about the macports-changes
mailing list