pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lua-luafilesystem: dependency of lua-penlight



Module Name:	pkgsrc-wip
Committed By:	Frédér Fauberteau <triaxx%triaxx.org@localhost>
Pushed By:	frederic
Date:		Mon Jun 5 21:41:26 2017 +0000
Changeset:	e6273f3551075bf12a3cd70b38b0c301db3f72a4

Modified Files:
	Makefile
Added Files:
	lua-luafilesystem/DESCR
	lua-luafilesystem/Makefile
	lua-luafilesystem/PLIST
	lua-luafilesystem/distinfo
	lua-luafilesystem/patches/patch-Makefile
	lua-luafilesystem/patches/patch-config

Log Message:
lua-luafilesystem: dependency of lua-penlight

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e6273f3551075bf12a3cd70b38b0c301db3f72a4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                 |  1 +
 lua-luafilesystem/DESCR                  |  7 +++++++
 lua-luafilesystem/Makefile               | 30 ++++++++++++++++++++++++++++++
 lua-luafilesystem/PLIST                  |  2 ++
 lua-luafilesystem/distinfo               |  8 ++++++++
 lua-luafilesystem/patches/patch-Makefile | 17 +++++++++++++++++
 lua-luafilesystem/patches/patch-config   | 23 +++++++++++++++++++++++
 7 files changed, 88 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 5d665da87c..b45f950742 100644
--- a/Makefile
+++ b/Makefile
@@ -1850,6 +1850,7 @@ SUBDIR+=	ltrace
 SUBDIR+=	lua-MessagePack
 SUBDIR+=	lua-lbn
 SUBDIR+=	lua-ldoc
+SUBDIR+=	lua-luafilesystem
 SUBDIR+=	lua-mpack
 SUBDIR+=	lua-penlight
 SUBDIR+=	lucene
diff --git a/lua-luafilesystem/DESCR b/lua-luafilesystem/DESCR
new file mode 100644
index 0000000000..e663967185
--- /dev/null
+++ b/lua-luafilesystem/DESCR
@@ -0,0 +1,7 @@
+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.
+
+LuaFileSystem is free software and uses the same license as Lua 5.x (MIT).
diff --git a/lua-luafilesystem/Makefile b/lua-luafilesystem/Makefile
new file mode 100644
index 0000000000..353c0e0ec8
--- /dev/null
+++ b/lua-luafilesystem/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD$
+
+DISTNAME=	luafilesystem-1.6.3
+PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=keplerproject/}
+GITHUB_TAG=	v${PKGVERSION_NOREV:C/\./_/g}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://keplerproject.github.io/luafilesystem/
+COMMENT=	File system library to complement standard Lua distribution
+LICENSE=	mit
+
+USE_TOOLS+=	gmake
+WRKSRC=		${WRKDIR}/luafilesystem-v_${PKGVERSION_NOREV:C/\./_/g}
+
+SUBST_CLASSES+=		cfg
+SUBST_MESSAGE.cfg=	Fixing paths
+SUBST_STAGE.cfg=	pre-build
+SUBST_FILES.cfg=	config
+SUBST_SED.cfg+=		-e "s,@PREFIX@,${PREFIX},"
+SUBST_SED.cfg+=		-e "s,@LUA_CDIR@,${LUA_CDIR},"
+SUBST_SED.cfg+=		-e "s,@LUA_INCDIR@,${LUA_INCDIR},"
+
+do-build:
+	cd ${WRKSRC} && ${GMAKE} src/lfs.so
+
+.include "../../lang/lua/module.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lua-luafilesystem/PLIST b/lua-luafilesystem/PLIST
new file mode 100644
index 0000000000..3a5567b1cf
--- /dev/null
+++ b/lua-luafilesystem/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+${LUA_CDIR}/lfs.so
diff --git a/lua-luafilesystem/distinfo b/lua-luafilesystem/distinfo
new file mode 100644
index 0000000000..0db131f311
--- /dev/null
+++ b/lua-luafilesystem/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (luafilesystem-1.6.3.tar.gz) = 72bc1415e7eefb339742538505675c59bd69e6bb
+RMD160 (luafilesystem-1.6.3.tar.gz) = cb949e36d9d09061be5eed9c67332cb3178250b5
+SHA512 (luafilesystem-1.6.3.tar.gz) = abfa1b3ac22ed80189560a1a025a7ea21a954defe14e5b539e08f266d180962a691262efc7eb2ddacc2d4aae14d6e356b1a276165b5bed46a13e4d6c61ab99f1
+Size (luafilesystem-1.6.3.tar.gz) = 30379 bytes
+SHA1 (patch-Makefile) = 567f375e16d6007b1764b7507a544e529ecdc354
+SHA1 (patch-config) = 719f87343d8a2be744d632592587618ce49bdc52
diff --git a/lua-luafilesystem/patches/patch-Makefile b/lua-luafilesystem/patches/patch-Makefile
new file mode 100644
index 0000000000..41aaa42fb5
--- /dev/null
+++ b/lua-luafilesystem/patches/patch-Makefile
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Don't use mkdir and cp directly, use BSD_INSTALL_* abstraction instead
+
+--- Makefile.orig	2015-01-15 18:58:20.000000000 +0000
++++ Makefile
+@@ -18,8 +18,8 @@ test: lib
+ 	LUA_CPATH=./src/?.so lua tests/test.lua
+ 
+ install:
+-	mkdir -p $(LUA_LIBDIR)
+-	cp src/lfs.so $(LUA_LIBDIR)
++	$(BSD_INSTALL_LIB_DIR) $(DESTDIR)$(LUA_LIBDIR)
++	$(BSD_INSTALL_LIB) src/lfs.so $(DESTDIR)$(LUA_LIBDIR)
+ 
+ clean:
+ 	rm -f src/lfs.so $(OBJS)
diff --git a/lua-luafilesystem/patches/patch-config b/lua-luafilesystem/patches/patch-config
new file mode 100644
index 0000000000..eeb526e2ba
--- /dev/null
+++ b/lua-luafilesystem/patches/patch-config
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Replace hardcoded paths with @@ variables to use SUBST framework
+
+--- config.orig	2015-01-15 18:58:20.000000000 +0000
++++ config
+@@ -1,13 +1,13 @@
+ # 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
++LUA_LIBDIR= $(PREFIX)/@LUA_CDIR@
+ 
+ # Lua includes directory
+-LUA_INC= $(PREFIX)/include
++LUA_INC= $(PREFIX)/@LUA_INCDIR@
+ 
+ # OS dependent
+ LIB_OPTION= -shared #for Linux


Home | Main Index | Thread Index | Old Index