git: 93c1c633aa07 - main - lang/tolua++: switch to alive upstream

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 19 Oct 2022 19:17:26 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=93c1c633aa07901c891e06ea803a74010f319da8

commit 93c1c633aa07901c891e06ea803a74010f319da8
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-10-19 16:33:18 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-10-19 19:15:05 +0000

    lang/tolua++: switch to alive upstream
    
    No changes to package contents, but new sources from GitHub, despite
    the same tag, contain CMake build system we may switch to someday
    if the port is still used (for the record, its only currently used
    by 3 ports).
---
 lang/tolua++/Makefile | 13 +++++++------
 lang/tolua++/distinfo |  5 +++--
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/lang/tolua++/Makefile b/lang/tolua++/Makefile
index f3328469b95e..77666ec9b50f 100644
--- a/lang/tolua++/Makefile
+++ b/lang/tolua++/Makefile
@@ -2,20 +2,21 @@ PORTNAME=	tolua++
 PORTVERSION=	1.0.93
 PORTREVISION=	3
 CATEGORIES=	lang devel
-MASTER_SITES=	http://www.codenix.com/~tolua/ \
-		http://mirror.amdmi3.ru/distfiles/
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Extended version of tolua, a tool to integrate C/C++ code with Lua
-WWW=		http://www.codenix.com/~tolua/
+WWW=		https://github.com/LuaDist/toluapp
 
 USES=		scons lua:51 tar:bzip2
+USE_GITHUB=	yes
+GH_ACCOUNT=	LuaDist
+GH_PROJECT=	toluapp
+
 MAKE_ARGS=	prefix=${PREFIX} SONAME="libtolua++-${LUA_VER}.so"
 
 CCFLAGS+=	-I${LUA_INCDIR}
 LDFLAGS+=	-L${LUA_LIBDIR}
 
-TGT_BINDIR=	${PREFIX}/bin
 TGT_INCDIR=	${LUA_INCDIR:C/^${LOCALBASE}/${PREFIX}/}
 TGT_LIBDIR=	${LUA_LIBDIR:C/^${LOCALBASE}/${PREFIX}/}
 
@@ -23,8 +24,8 @@ post-patch:
 	@${REINPLACE_CMD} -e "s|'lualib',||; s|lua|lua-${LUA_VER}|g" ${WRKSRC}/config_posix.py
 
 do-install:
-	${MKDIR} ${STAGEDIR}${TGT_BINDIR} ${STAGEDIR}${TGT_INCDIR} ${STAGEDIR}${TGT_LIBDIR}
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua++ ${STAGEDIR}${TGT_BINDIR}
+	@${MKDIR} ${STAGEDIR}${TGT_INCDIR} ${STAGEDIR}${TGT_LIBDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua++ ${STAGEDIR}${PREFIX}/bin
 	${LN} -sf tolua++ ${STAGEDIR}${PREFIX}/bin/tolua++-${LUA_VER}
 	${INSTALL_DATA} ${WRKSRC}/include/tolua++.h ${STAGEDIR}${TGT_INCDIR}
 	${INSTALL_DATA} ${WRKSRC}/lib/libtolua++.a ${STAGEDIR}${TGT_LIBDIR}
diff --git a/lang/tolua++/distinfo b/lang/tolua++/distinfo
index f018695077db..21a165d69b15 100644
--- a/lang/tolua++/distinfo
+++ b/lang/tolua++/distinfo
@@ -1,2 +1,3 @@
-SHA256 (tolua++-1.0.93.tar.bz2) = 90df1eeb8354941ca65663dcf28658b67d3aa41daa71133bdd20c35abb1bcaba
-SIZE (tolua++-1.0.93.tar.bz2) = 163956
+TIMESTAMP = 1666195158
+SHA256 (LuaDist-toluapp-1.0.93_GH0.tar.gz) = 0a1ff87cb74e7531aec57e2a7cfdf282116647dea3b46223e3cc7c362b55b5bb
+SIZE (LuaDist-toluapp-1.0.93_GH0.tar.gz) = 247926