Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/lua-filesystem lua-filesystem: Update to 1.8.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/bf3e3340572a
branches: trunk
changeset: 435253:bf3e3340572a
user: nia <nia%pkgsrc.org@localhost>
date: Thu Jul 02 21:40:49 2020 +0000
description:
lua-filesystem: Update to 1.8.0
Version 1.8.0 [22/Apr/2020]
* Lua 5.4 support
* lfs.link and lfs.symlinkattributes now work on Windows
* MACOSX_DEPLOYMENT_TARGET is configurable in the Makefile
* Fallback to _POSIX_PATH_MAX when MAXPATHLEN is not avaliable
* Fixed memory leak in case of realloc failure
diffstat:
devel/lua-filesystem/Makefile | 14 +++++----
devel/lua-filesystem/distinfo | 13 ++++----
devel/lua-filesystem/patches/patch-Makefile | 10 ++++--
devel/lua-filesystem/patches/patch-config | 42 -----------------------------
4 files changed, 20 insertions(+), 59 deletions(-)
diffs (129 lines):
diff -r 986305770da3 -r bf3e3340572a devel/lua-filesystem/Makefile
--- a/devel/lua-filesystem/Makefile Thu Jul 02 20:53:10 2020 +0000
+++ b/devel/lua-filesystem/Makefile Thu Jul 02 21:40:49 2020 +0000
@@ -1,27 +1,29 @@
-# $NetBSD: Makefile,v 1.14 2020/07/02 10:26:17 nia Exp $
+# $NetBSD: Makefile,v 1.15 2020/07/02 21:40:49 nia Exp $
#
-DISTNAME= luafilesystem-1.7.0
+DISTNAME= luafilesystem-1.8.0
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}-/}
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
GITHUB_PROJECT= luafilesystem
-GITHUB_TAG= v${PKGVERSION_NOREV:S/./_/g}_2
+GITHUB_TAG= v${PKGVERSION_NOREV:S/./_/g}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= https://keplerproject.github.com/luafilesystem/
COMMENT= File system related library for Lua
LICENSE= mit
-WRKSRC= ${WRKDIR}/luafilesystem-${PKGVERSION_NOREV:S/./_/g}_2
+WRKSRC= ${WRKDIR}/luafilesystem-${PKGVERSION_NOREV:S/./_/g}
USE_TOOLS+= gmake pkg-config
BUILD_TARGET= lib
TEST_TARGET= test
-MAKE_ENV+= LUA_CDIR=${LUA_CDIR}
-MAKE_ENV+= LUA_VERS=${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= CC=${CC}
+MAKE_FLAGS+= CFLAGS="${CFLAGS} -fPIC"
+MAKE_FLAGS+= LUA_VERSION=${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 986305770da3 -r bf3e3340572a devel/lua-filesystem/distinfo
--- a/devel/lua-filesystem/distinfo Thu Jul 02 20:53:10 2020 +0000
+++ b/devel/lua-filesystem/distinfo Thu Jul 02 21:40:49 2020 +0000
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.6 2019/05/28 20:43:04 maya Exp $
+$NetBSD: distinfo,v 1.7 2020/07/02 21:40:49 nia Exp $
-SHA1 (luafilesystem-1.7.0.tar.gz) = 910de0959ff72703b284c26783979b663c4dc0d2
-RMD160 (luafilesystem-1.7.0.tar.gz) = 6770d25f1d0928c347560425d7c5758788038fd9
-SHA512 (luafilesystem-1.7.0.tar.gz) = a1d4d077776e57cd878dbcd21656da141ea3686c587b5420a2b039aeaf086b7e7d05d531ee1cc2bbd7d06660d1315b09593e52143f6711f033ce8eecdc550511
-Size (luafilesystem-1.7.0.tar.gz) = 30877 bytes
-SHA1 (patch-Makefile) = 1fd838ba0f5a716ed1f8f7b7ed4fda816e702806
-SHA1 (patch-config) = 5d459797960118aa387f1f5cfb8bc6d7923965c8
+SHA1 (luafilesystem-1.8.0.tar.gz) = d81c8fd0a0a4c206980a9b01fa27cbd1f458031c
+RMD160 (luafilesystem-1.8.0.tar.gz) = 761c35786ffd299f16a5f7b97afe028b41944beb
+SHA512 (luafilesystem-1.8.0.tar.gz) = 79d964f13ae43716281dc8521d2f128b22f2261234c443e242b857cfdf621e208bdf4512f8ba710baa113e9b3b71e2544609de65e2c483f569c243a5cf058247
+Size (luafilesystem-1.8.0.tar.gz) = 30374 bytes
+SHA1 (patch-Makefile) = 28319e09fde9214aba812a84ee63ed39385694ec
diff -r 986305770da3 -r bf3e3340572a devel/lua-filesystem/patches/patch-Makefile
--- a/devel/lua-filesystem/patches/patch-Makefile Thu Jul 02 20:53:10 2020 +0000
+++ b/devel/lua-filesystem/patches/patch-Makefile Thu Jul 02 21:40:49 2020 +0000
@@ -1,16 +1,18 @@
-$NetBSD: patch-Makefile,v 1.1 2019/05/28 20:43:04 maya Exp $
+$NetBSD: patch-Makefile,v 1.2 2020/07/02 21:40:50 nia Exp $
- Remove MACOSX_DEPLOYMENT_TARGET as it will give problem on newer macOS
and also targeting/building for current macOS version is enough
---- Makefile.orig 2017-09-15 23:07:33.000000000 +0000
+ - Honour LDFLAGS.
+
+--- Makefile.orig 2020-04-23 01:16:42.000000000 +0000
+++ Makefile
@@ -12,7 +12,7 @@ OBJS= src/$T.o
lib: src/lfs.so
src/lfs.so: $(OBJS)
-- MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
-+ $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
+- MACOSX_DEPLOYMENT_TARGET=$(MACOSX_DEPLOYMENT_TARGET); export MACOSX_DEPLOYMENT_TARGET; $(CC) $(LIB_OPTION) -o src/lfs.so $(OBJS)
++ $(CC) $(LDFLAGS) $(LIB_OPTION) -o src/lfs.so $(OBJS)
test: lib
LUA_CPATH=./src/?.so lua tests/test.lua
diff -r 986305770da3 -r bf3e3340572a devel/lua-filesystem/patches/patch-config
--- a/devel/lua-filesystem/patches/patch-config Thu Jul 02 20:53:10 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
-$NetBSD: patch-config,v 1.1 2019/05/28 20:43:04 maya Exp $
-
-Fix default directory locations
-Try to find lua libs from pkgconfig, so we get RPATH specified.
-(This eliminates the need to separately add -lm)
-
---- config.orig 2017-09-15 23:07:33.000000000 +0000
-+++ config
-@@ -1,22 +1,28 @@
- # 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_LIBS= $(pkg-config --libs lua-$(LUA_VERS))
-+LUA_LIBDIR= $(DESTDIR)$(PREFIX)/$(LUA_CDIR)
-
- # Lua includes directory
- LUA_INC= $(PREFIX)/include
-
- # OS dependent
--LIB_OPTION= -shared #for Linux
--#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
-+ifeq ($(shell uname -s 2>/dev/null), Darwin)
-+# for macOS
-+LIB_OPTION+= -L$(PREFIX)/lib $(LUA_LIBS) -shared -install_name $(PREFIX)/$(LUA_CDIR)/$(notdir $@)
-+else
-+# for Linux & other unix
-+LIB_OPTION+= -L$(PREFIX)/lib $(LUA_LIBS) -shared
-+endif
-
- 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
Home |
Main Index |
Thread Index |
Old Index