git: 87413da11b35 - main - games/wipeclean: Update to 1.1.0

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Sun, 27 Feb 2022 20:47:59 UTC
The branch main has been updated by ehaupt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=87413da11b35ec9b47d66775ed5bc332f78ffd22

commit 87413da11b35ec9b47d66775ed5bc332f78ffd22
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2022-02-27 20:47:50 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2022-02-27 20:47:50 +0000

    games/wipeclean: Update to 1.1.0
---
 games/wipeclean/Makefile  | 18 +++++++++---------
 games/wipeclean/distinfo  |  6 +++---
 games/wipeclean/pkg-plist | 22 ++++++++++++++++++++++
 3 files changed, 34 insertions(+), 12 deletions(-)

diff --git a/games/wipeclean/Makefile b/games/wipeclean/Makefile
index bf61fa8bde50..517f9040a4bb 100644
--- a/games/wipeclean/Makefile
+++ b/games/wipeclean/Makefile
@@ -1,26 +1,26 @@
 # Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
 
 PORTNAME=	wipeclean
-PORTVERSION=	g20220222
+PORTVERSION=	1.1.0
 PORTEPOCH=	1
 CATEGORIES=	games
+MASTER_SITES=	LOCAL/ehaupt
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	CLI tool to wipe away your error messages in style
 
 LICENSE=	ISCL
 
-USES=		nodejs:run
-USE_GITHUB=	yes
-GH_ACCOUNT=	JeanJouliaCode
-GH_PROJECT=	wipeClean
-GH_TAGNAME=	858b089
+USES=		dos2unix nodejs:run tar:xz
 NO_BUILD=	yes
 
-PLIST_FILES=	bin/wipeclean
-
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/index.js \
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+	${LN} -fs ${DATADIR}/node_modules/wipeclean/index.js \
 		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
+dist: clean
+	@npm install --prefix ${WRKSRC} ${PORTNAME}@${PORTVERSION}
+	@${TAR} -C ${WRKDIR} -cvJpf ${DISTDIR}/${DISTFILES} ${DISTNAME}
+
 .include <bsd.port.mk>
diff --git a/games/wipeclean/distinfo b/games/wipeclean/distinfo
index 930a20aae7de..322dfac2eb11 100644
--- a/games/wipeclean/distinfo
+++ b/games/wipeclean/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1645734318
-SHA256 (JeanJouliaCode-wipeClean-g20220222-858b089_GH0.tar.gz) = 778f84a787fb06e72adebd19406719df9eb33007328a3512119810bb2a9d577f
-SIZE (JeanJouliaCode-wipeClean-g20220222-858b089_GH0.tar.gz) = 2347
+TIMESTAMP = 1645989237
+SHA256 (wipeclean-1.1.0.tar.xz) = 3d33528426780b42b51195a39f2d3bc6a9dc6ae605a1cedb7fd0eb5a6318c606
+SIZE (wipeclean-1.1.0.tar.xz) = 37136
diff --git a/games/wipeclean/pkg-plist b/games/wipeclean/pkg-plist
new file mode 100644
index 000000000000..bc4afee0ef54
--- /dev/null
+++ b/games/wipeclean/pkg-plist
@@ -0,0 +1,22 @@
+bin/wipeclean
+%%DATADIR%%/node_modules/.bin/wipeclean
+%%DATADIR%%/node_modules/.package-lock.json
+%%DATADIR%%/node_modules/commander/LICENSE
+%%DATADIR%%/node_modules/commander/Readme.md
+%%DATADIR%%/node_modules/commander/esm.mjs
+%%DATADIR%%/node_modules/commander/index.js
+%%DATADIR%%/node_modules/commander/lib/argument.js
+%%DATADIR%%/node_modules/commander/lib/command.js
+%%DATADIR%%/node_modules/commander/lib/error.js
+%%DATADIR%%/node_modules/commander/lib/help.js
+%%DATADIR%%/node_modules/commander/lib/option.js
+%%DATADIR%%/node_modules/commander/lib/suggestSimilar.js
+%%DATADIR%%/node_modules/commander/package-support.json
+%%DATADIR%%/node_modules/commander/package.json
+%%DATADIR%%/node_modules/commander/typings/index.d.ts
+%%DATADIR%%/node_modules/wipeclean/.prettierrc
+%%DATADIR%%/node_modules/wipeclean/README.md
+@(,,0755) %%DATADIR%%/node_modules/wipeclean/index.js
+%%DATADIR%%/node_modules/wipeclean/package.json
+%%DATADIR%%/package-lock.json
+%%DATADIR%%/package.json