From b941f90d24ffc7553e3f81ea8e3d2804184ce100 Mon Sep 17 00:00:00 2001 From: carregal Date: Tue, 9 Dec 2008 18:39:20 +0000 Subject: Moving to "modules" builds on the rockspecs --- rockspecs/luafilesystem-1.4.2-1.rockspec | 26 ++++++++++++++++++++++++++ rockspecs/luafilesystem-cvs-2.rockspec | 31 +++++++------------------------ 2 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 rockspecs/luafilesystem-1.4.2-1.rockspec (limited to 'rockspecs') diff --git a/rockspecs/luafilesystem-1.4.2-1.rockspec b/rockspecs/luafilesystem-1.4.2-1.rockspec new file mode 100644 index 0000000..01b7c6f --- /dev/null +++ b/rockspecs/luafilesystem-1.4.2-1.rockspec @@ -0,0 +1,26 @@ +package = "LuaFileSystem" + +version = "1.4.2-1" + +source = { + url = "http://luaforge.net/frs/download.php/3345/luafilesystem-1.4.1.tar.gz", +} + +description = { + summary = "File System Library for the Lua Programming Language", + detailed = [[ + 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. + ]] +} + +dependencies = { + "lua >= 5.1" +} + +build = { + type = "module", + modules = { lfs = "src/lfs.c" } +} \ No newline at end of file diff --git a/rockspecs/luafilesystem-cvs-2.rockspec b/rockspecs/luafilesystem-cvs-2.rockspec index 1320390..28f367b 100644 --- a/rockspecs/luafilesystem-cvs-2.rockspec +++ b/rockspecs/luafilesystem-cvs-2.rockspec @@ -1,9 +1,12 @@ package = "LuaFileSystem" + version = "cvs-2" + source = { url = "cvs://:pserver:anonymous:@cvs.luaforge.net:/cvsroot/luafilesystem", cvs_tag = "HEAD" } + description = { summary = "File System Library for the Lua Programming Language", detailed = [[ @@ -13,32 +16,12 @@ description = { underlying directory structure and file attributes. ]] } + dependencies = { "lua >= 5.1" } + build = { - platforms = { - unix = { - type = "make", - build_variables = { - LIB_OPTION = "$(LIBFLAG)", - CFLAGS = "$(CFLAGS) -I$(LUA_INCDIR) $(STAT64)", - }, - install_variables = { - LUA_LIBDIR = "$(LIBDIR)" - } - }, - win32 = { - type = "make", - build_variables = { - LUA_LIB = "$(LUA_LIBDIR)\\lua5.1.lib", - CFLAGS = "/MD $(CFLAGS) /I$(LUA_INCDIR)", - }, - install_variables = { - LUA_LIBDIR = "$(LIBDIR)", - LUA_DIR = "$(LUADIR)", - BIN_DIR = "$(BINDIR)" - } - } - } + type = "module", + modules = { lfs = "src/lfs.c" } } -- cgit v1.2.3-55-g6feb