devel/lutok: Update version 0.4=>0.5

Changelog: https://github.com/freebsd/lutok/releases/tag/lutok-0.5

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2024-11-30 17:48:09 +01:00
parent bf6000347d
commit 164965f264
No known key found for this signature in database
GPG key ID: BDB9B5A617C0BC91
3 changed files with 9 additions and 23 deletions

View file

@ -1,12 +1,11 @@
PORTNAME= lutok
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 0.4
PORTREVISION= 9
DISTVERSION= 0.5
CATEGORIES= devel
MASTER_SITES=https://github.com/freebsd/${PORTNAME}/releases/download/${DISTNAME}/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Lightweight C++ API for Lua
WWW= https://github.com/jmmv/lutok/
WWW= https://github.com/freebsd/lutok/
LICENSE= BSD3CLAUSE
@ -15,8 +14,6 @@ RUN_DEPENDS= atf>=0.21:devel/atf
USES= autoreconf libtool lua pathfix pkgconfig
USE_CXXSTD= gnu++11
USE_GITHUB= yes
GH_ACCOUNT= freebsd
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
@ -28,11 +25,11 @@ CONFIGURE_ARGS+= LUA_CFLAGS="-I${LUA_INCDIR}"
CONFIGURE_ARGS+= LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
MAKE_FLAGS+= examplesdir=${EXAMPLESDIR}
# pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
PORTDOCS= AUTHORS COPYING NEWS README html/*
NO_WRKSUBDIR= yes
PORTDOCS= AUTHORS COPYING NEWS.md README.md html/*
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_SUB= yes

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1704256837
SHA256 (freebsd-lutok-lutok-0.4_GH0.tar.gz) = 475da420c75a566533f8763ee161525a533cf976f1901f089796bb867953098f
SIZE (freebsd-lutok-lutok-0.4_GH0.tar.gz) = 37561
TIMESTAMP = 1732984939
SHA256 (lutok-0.5.tar.gz) = 9cdc3cf08babec6e70a96a907d82f8b34eac866dd7196abc73b95d5e13701f55
SIZE (lutok-0.5.tar.gz) = 4075008

View file

@ -1,11 +0,0 @@
--- state.cpp.orig 2019-04-22 05:13:10 UTC
+++ state.cpp
@@ -492,7 +492,7 @@ lutok::state::is_userdata(const int inde
void
lutok::state::load_file(const std::string& file)
{
- if (!::access(file.c_str(), R_OK) == 0)
+ if (::access(file.c_str(), R_OK) == -1)
throw lutok::file_not_found_error(file);
if (luaL_loadfile(_pimpl->lua_state, file.c_str()) != 0)
throw lutok::api_error::from_stack(*this, "luaL_loadfile");