summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfhajny <fhajny>2010-09-21 09:30:41 +0000
committerfhajny <fhajny>2010-09-21 09:30:41 +0000
commit6acde95c54fa8840e629bcf7cfaad92d6197945e (patch)
tree8ed2bde44d4ecec2822bd0fc8766aaaa397c6a8b
parent4b8b40919b3cad5fc69fc7ea25a6e94fca6fc94b (diff)
downloadpkgsrc-6acde95c54fa8840e629bcf7cfaad92d6197945e.tar.gz
Import lua-filesystem-1.5.0 as devel/lua-filesystem.
LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution. LuaFileSystem offers a portable way to access the underlying directory structure and file attributes.
-rw-r--r--devel/lua-filesystem/DESCR5
-rw-r--r--devel/lua-filesystem/Makefile19
-rw-r--r--devel/lua-filesystem/PLIST2
-rw-r--r--devel/lua-filesystem/distinfo6
-rw-r--r--devel/lua-filesystem/patches/patch-aa27
5 files changed, 59 insertions, 0 deletions
diff --git a/devel/lua-filesystem/DESCR b/devel/lua-filesystem/DESCR
new file mode 100644
index 00000000000..a5d701a1460
--- /dev/null
+++ b/devel/lua-filesystem/DESCR
@@ -0,0 +1,5 @@
+LuaFileSystem is a Lua library developed to complement the set of functions
+related to file systems offered by the standard Lua distribution.
+
+LuaFileSystem offers a portable way to access the underlying directory
+structure and file attributes.
diff --git a/devel/lua-filesystem/Makefile b/devel/lua-filesystem/Makefile
new file mode 100644
index 00000000000..f4e623b9f99
--- /dev/null
+++ b/devel/lua-filesystem/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/09/21 09:30:41 fhajny Exp $
+#
+
+DISTNAME= luafilesystem-1.5.0
+PKGNAME= ${DISTNAME:S/lua/lua-/}
+CATEGORIES= devel
+MASTER_SITES= http://github.com/downloads/keplerproject/luafilesystem/
+
+MAINTAINER= filip@joyent.com
+HOMEPAGE= http://keplerproject.github.com/luafilesystem/
+COMMENT= File system related library for Lua
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_TOOLS+= gmake
+BUILD_TARGET= lib
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/lua-filesystem/PLIST b/devel/lua-filesystem/PLIST
new file mode 100644
index 00000000000..93eda59858f
--- /dev/null
+++ b/devel/lua-filesystem/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/21 09:30:41 fhajny Exp $
+${LUA_CDIR}/lfs.so
diff --git a/devel/lua-filesystem/distinfo b/devel/lua-filesystem/distinfo
new file mode 100644
index 00000000000..cabc6d6886b
--- /dev/null
+++ b/devel/lua-filesystem/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/09/21 09:30:41 fhajny Exp $
+
+SHA1 (luafilesystem-1.5.0.tar.gz) = 1ee2ca3b5dbc3cf7c21c7168a0873b2983b7e241
+RMD160 (luafilesystem-1.5.0.tar.gz) = db1e597046d47ab12df202e7c65fb3b815c9f922
+Size (luafilesystem-1.5.0.tar.gz) = 26660 bytes
+SHA1 (patch-aa) = 17a15dbf8ec314bdf643ff4aba103006af55064a
diff --git a/devel/lua-filesystem/patches/patch-aa b/devel/lua-filesystem/patches/patch-aa
new file mode 100644
index 00000000000..ed5c7725ee7
--- /dev/null
+++ b/devel/lua-filesystem/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/09/21 09:30:41 fhajny Exp $
+
+Fix default directory locations
+--- config.orig 2009-10-20 20:54:35.000000000 +0000
++++ config
+@@ -1,10 +1,10 @@
+ # Installation directories
+
+ # Default installation prefix
+-PREFIX=/usr/local
++PREFIX?=/usr/local
+
+ # System's libraries directory (where binary libraries are installed)
+-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
++LUA_LIBDIR= $(DESTDIR)$(PREFIX)/lib/lua/5.1
+
+ # Lua includes directory
+ LUA_INC= $(PREFIX)/include
+@@ -16,7 +16,7 @@ LIB_OPTION= -shared #for Linux
+ LIBNAME= $T.so.$V
+
+ # Compilation directives
+-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic
++WARN= -O2 -fPIC
+ INCS= -I$(LUA_INC)
+ CFLAGS= $(WARN) $(INCS)
+ CC= gcc