git: 7278592dafea - main - devel/lutok: Switch to FreeBSD upstream

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 03 Jan 2024 05:28:15 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7278592dafeab418642a00203b1134285be7f1a3

commit 7278592dafeab418642a00203b1134285be7f1a3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-03 05:19:19 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-03 05:27:54 +0000

    devel/lutok: Switch to FreeBSD upstream
    
    - As per the recent discussion switch to the FreeBSD upstream
    - For now resetting MAINTAINER to myself with ci@ hat on but anyone from
      ci@ feel free to commit
    - Pet port{clippy|fmt}
    
    PR:             276071
    Approved by:    jmmv (private mail)
---
 devel/lutok/Makefile  |  71 ++++++++---------
 devel/lutok/distinfo  |   5 +-
 devel/lutok/pkg-plist | 210 --------------------------------------------------
 3 files changed, 36 insertions(+), 250 deletions(-)

diff --git a/devel/lutok/Makefile b/devel/lutok/Makefile
index 597d59657153..2fd11a7439b3 100644
--- a/devel/lutok/Makefile
+++ b/devel/lutok/Makefile
@@ -1,38 +1,22 @@
 PORTNAME=	lutok
-PORTVERSION=	0.4
-PORTREVISION=	8
+DISTVERSION=	0.4
+PORTREVISION=	9
 CATEGORIES=	devel
-MASTER_SITES=	https://github.com/jmmv/lutok/releases/download/${PORTNAME}-${PORTVERSION}/ \
-		LOCAL/jmmv
 
-MAINTAINER=	jmmv@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Lightweight C++ API for Lua
 WWW=		https://github.com/jmmv/lutok/
 
 LICENSE=	BSD3CLAUSE
 
-GNU_CONFIGURE=	yes
-INSTALL_TARGET=	install-strip
-USES=		libtool lua pkgconfig
+USES=		autoreconf libtool lua pathfix pkgconfig
 USE_CXXSTD=	gnu++11
+USE_GITHUB=	yes
+GH_ACCOUNT=	freebsd
+GH_TAGNAME=	${PORTNAME}-${DISTVERSION}
 USE_LDCONFIG=	yes
 
-OPTIONS_DEFINE=	DOCS EXAMPLES TEST
-OPTIONS_DEFAULT=TEST
-
-OPTIONS_SUB=		yes
-TEST_CONFIGURE_WITH=	atf
-TEST_BUILD_DEPENDS=	atf>=0.21:devel/atf
-TEST_RUN_DEPENDS=	atf>=0.21:devel/atf
-
-.include <bsd.port.options.mk>
-
-CONFIGURE_ARGS+=	--docdir=${DOCSDIR}
-CONFIGURE_ARGS+=	--htmldir=${DOCSDIR}/html
-# The distfile contains prebuilt doxygen files.  Specify --without_doxygen so
-# we won't rebuild them
-CONFIGURE_ARGS+=	--without-doxygen
-
+GNU_CONFIGURE=	yes
 # Force the use of the lua version we have chosen via USE_LUA.  If we allow
 # lutok's configure script search for one using pkgconfig files, it might pick
 # a different version.
@@ -40,19 +24,30 @@ CONFIGURE_ARGS+=	LUA_CFLAGS="-I${LUA_INCDIR}"
 CONFIGURE_ARGS+=	LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm"
 
 MAKE_FLAGS+=	examplesdir=${EXAMPLESDIR}
-MAKE_FLAGS+=	pkgconfigdir=${PREFIX}/libdata/pkgconfig
-.if ! ${PORT_OPTIONS:MDOCS}
-MAKE_FLAGS+=	doc_DATA=
-.endif
-.if ! ${PORT_OPTIONS:MEXAMPLES}
-MAKE_FLAGS+=	examples_DATA=
-.endif
-
-PLIST_SUB+=	TESTS="@comment "
-
-.if ! ${PORT_OPTIONS:MDOCS}
-pre-install: .SILENT
-	${RM} -r ${WRKSRC}/api-docs
-.endif
+#		pkgconfigdir=${PREFIX}/libdata/pkgconfig
+
+INSTALL_TARGET=	install-strip
+
+PORTDOCS=	AUTHORS COPYING NEWS README html/*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES TEST
+OPTIONS_DEFAULT=TEST
+OPTIONS_SUB=		yes
+
+DOCS_BUILD_DEPENDS=	doxygen>0:devel/doxygen
+DOCS_CONFIGURE_ON=	--docdir=${DOCSDIR} --htmldir=${DOCSDIR}/html
+DOCS_CONFIGURE_OFF=	--without-doxygen
+DOCS_MAKE_ARGS_OFF=	doc_DATA=
+EXAMPLES_MAKE_ARGS_OFF=	dist_examples_DATA=
+TEST_BUILD_DEPENDS=	atf>=0.21:devel/atf
+TEST_RUN_DEPENDS=	atf>=0.21:devel/atf
+TEST_CONFIGURE_WITH=	atf
+
+pre-install-DOCS-off:
+	@${RM} -r ${WRKSRC}/api-docs
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/api-docs && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>
diff --git a/devel/lutok/distinfo b/devel/lutok/distinfo
index d1ec70f5c501..f9bff8aba970 100644
--- a/devel/lutok/distinfo
+++ b/devel/lutok/distinfo
@@ -1,2 +1,3 @@
-SHA256 (lutok-0.4.tar.gz) = 2cec51efa0c8d65ace8b21eaa08384b77abc5087b46e785f78de1c21fb754cd5
-SIZE (lutok-0.4.tar.gz) = 489570
+TIMESTAMP = 1704256837
+SHA256 (freebsd-lutok-0.4-lutok-0.4_GH0.tar.gz) = 475da420c75a566533f8763ee161525a533cf976f1901f089796bb867953098f
+SIZE (freebsd-lutok-0.4-lutok-0.4_GH0.tar.gz) = 37561
diff --git a/devel/lutok/pkg-plist b/devel/lutok/pkg-plist
index f4bf7b69d6eb..0f1665afb7cc 100644
--- a/devel/lutok/pkg-plist
+++ b/devel/lutok/pkg-plist
@@ -11,216 +11,6 @@ lib/liblutok.so
 lib/liblutok.so.3
 lib/liblutok.so.3.0.0
 libdata/pkgconfig/lutok.pc
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/html/tabs.css
-%%PORTDOCS%%%%DOCSDIR%%/html/jquery.js
-%%PORTDOCS%%%%DOCSDIR%%/html/dynsections.js
-%%PORTDOCS%%%%DOCSDIR%%/html/tab_a.png
-%%PORTDOCS%%%%DOCSDIR%%/html/tab_b.png
-%%PORTDOCS%%%%DOCSDIR%%/html/tab_h.png
-%%PORTDOCS%%%%DOCSDIR%%/html/tab_s.png
-%%PORTDOCS%%%%DOCSDIR%%/html/nav_h.png
-%%PORTDOCS%%%%DOCSDIR%%/html/nav_f.png
-%%PORTDOCS%%%%DOCSDIR%%/html/bc_s.png
-%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.png
-%%PORTDOCS%%%%DOCSDIR%%/html/closed.png
-%%PORTDOCS%%%%DOCSDIR%%/html/open.png
-%%PORTDOCS%%%%DOCSDIR%%/html/bdwn.png
-%%PORTDOCS%%%%DOCSDIR%%/html/nav_g.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2blank.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2doc.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2folderclosed.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2folderopen.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2ns.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2mo.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2cl.png
-%%PORTDOCS%%%%DOCSDIR%%/html/doxygen.css
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2lastnode.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2link.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2mlastnode.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2mnode.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2node.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2plastnode.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2pnode.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2vertline.png
-%%PORTDOCS%%%%DOCSDIR%%/html/ftv2splitbar.png
-%%PORTDOCS%%%%DOCSDIR%%/html/search/mag_sel.png
-%%PORTDOCS%%%%DOCSDIR%%/html/search/search_l.png
-%%PORTDOCS%%%%DOCSDIR%%/html/search/search_m.png
-%%PORTDOCS%%%%DOCSDIR%%/html/search/search_r.png
-%%PORTDOCS%%%%DOCSDIR%%/html/search/close.png
-%%PORTDOCS%%%%DOCSDIR%%/html/search/search.css
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_5f.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_5f.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_61.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_61.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_63.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_63.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_64.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_64.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_65.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_65.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_66.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_66.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_67.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_67.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_68.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_68.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_69.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_69.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_6c.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_6c.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_6e.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_6e.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_6f.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_6f.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_70.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_70.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_72.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_72.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_73.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_73.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_74.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_74.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_75.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_75.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_77.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_77.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_7e.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/all_7e.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_61.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_61.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_64.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_63.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_64.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_65.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_65.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_66.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_66.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_69.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_69.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_73.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/classes_73.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/namespaces_61.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/namespaces_61.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_63.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_64.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_64.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_65.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_65.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_6f.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_6f.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_73.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_73.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_74.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/files_74.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_61.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_61.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_63.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_63.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_64.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_64.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_65.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_65.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_66.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_66.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_67.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_67.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_68.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_68.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_69.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_69.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_6c.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_6c.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_6e.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_6e.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_6f.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_6f.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_70.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_70.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_72.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_72.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_73.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_73.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_74.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_74.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_75.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_75.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_77.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_77.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_7e.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/functions_7e.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_5f.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_5f.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_6c.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_6c.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_6f.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_6f.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_73.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/variables_73.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/defines_72.html
-%%PORTDOCS%%%%DOCSDIR%%/html/search/defines_72.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/search.js
-%%PORTDOCS%%%%DOCSDIR%%/html/search/nomatches.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00013_source.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00016_source.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00019_source.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00022_source.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00025_source.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00028_source.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00031_source.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00013.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00016.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00019.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00022.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00025.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00028.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00031.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00032.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00033.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00034.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00035.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00001.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00039.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00011.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00040.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00003.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00041.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00004.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00042.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00005.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00005.png
-%%PORTDOCS%%%%DOCSDIR%%/html/a00043.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00002.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00002.png
-%%PORTDOCS%%%%DOCSDIR%%/html/a00044.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00006.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00006.png
-%%PORTDOCS%%%%DOCSDIR%%/html/a00045.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00007.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00046.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00008.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00047.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00009.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00048.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00010.html
-%%PORTDOCS%%%%DOCSDIR%%/html/a00049.html
-%%PORTDOCS%%%%DOCSDIR%%/html/index.html
-%%PORTDOCS%%%%DOCSDIR%%/html/namespaces.html
-%%PORTDOCS%%%%DOCSDIR%%/html/namespacemembers.html
-%%PORTDOCS%%%%DOCSDIR%%/html/namespacemembers_func.html
-%%PORTDOCS%%%%DOCSDIR%%/html/annotated.html
-%%PORTDOCS%%%%DOCSDIR%%/html/classes.html
-%%PORTDOCS%%%%DOCSDIR%%/html/hierarchy.html
-%%PORTDOCS%%%%DOCSDIR%%/html/functions.html
-%%PORTDOCS%%%%DOCSDIR%%/html/functions_func.html
-%%PORTDOCS%%%%DOCSDIR%%/html/functions_vars.html
-%%PORTDOCS%%%%DOCSDIR%%/html/files.html
-%%PORTDOCS%%%%DOCSDIR%%/html/globals.html
-%%PORTDOCS%%%%DOCSDIR%%/html/globals_defs.html
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/bindings.cpp
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/hello.cpp