git: d8c5a71d89db - main - japanese/skk-tools: Update to 1.3.4-28

From: MANTANI Nobutaka <nobutaka_at_FreeBSD.org>
Date: Sat, 17 Aug 2024 20:00:19 UTC
The branch main has been updated by nobutaka:

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

commit d8c5a71d89db329479e6bc9cdf360e1949be7b22
Author:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2024-08-17 19:48:05 +0000
Commit:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2024-08-17 19:59:29 +0000

    japanese/skk-tools: Update to 1.3.4-28
    
    - Switch to the new MASTER_SITES on GitHub
    - Set the reporter as the new MAINTAINER
    - Remove the EXPR2 option and add the DIFF option
    
    PR:     279172
    Reported by:    mew14930xvi <mew14930xvi@inbox.lv>
---
 japanese/skk-tools/Makefile  | 59 ++++++++++++++++++++++++--------------------
 japanese/skk-tools/distinfo  |  6 ++---
 japanese/skk-tools/pkg-descr |  2 --
 3 files changed, 35 insertions(+), 32 deletions(-)

diff --git a/japanese/skk-tools/Makefile b/japanese/skk-tools/Makefile
index 2a750c1bec77..094147cfba19 100644
--- a/japanese/skk-tools/Makefile
+++ b/japanese/skk-tools/Makefile
@@ -1,47 +1,52 @@
 PORTNAME=	skk-tools
-PORTVERSION=	1.3.4
+DISTVERSION=	1.3.4-28
+DISTVERSIONSUFFIX=	-g1e8c457
 PORTEPOCH=	1
 CATEGORIES=	japanese
-MASTER_SITES=	http://openlab.ring.gr.jp/skk/tools/
-DISTNAME=	skktools-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	mew14930xvi@inbox.lv
 COMMENT=	Jisyo-tools for the SKK Japanese-input software
-WWW=		http://openlab.ring.gr.jp/skk/
+WWW=		https://github.com/skk-dev/skktools
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-GNU_CONFIGURE=	yes
+USES=		gnome pkgconfig python shebangfix
 
-DOCSDIR=	${PREFIX}/share/doc/skk
+USE_GITHUB=	yes
+GH_ACCOUNT=	skk-dev
+GH_PROJECT=	skktools
 
-WRKSRC=		${WRKDIR}/skktools-${DISTNAME:S/./_/g}
+USE_GNOME=	glib20
+SHEBANG_FILES=	skk2cdb.py
 
-PORTDOCS=	README.skktools
-PLIST_FILES=	bin/skkdic-count bin/skkdic-expr bin/skkdic-sort
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-skkdic-expr2
 
-OPTIONS_DEFINE=		DOCS EXPR2
-OPTIONS_DEFAULT=	EXPR2
+PLIST_FILES=	bin/skkdic-count bin/skkdic-expr bin/skkdic-expr2 \
+		bin/skkdic-sort bin/skk2cdb
+PORTDOCS=	FAQ.md README.md README.skkdic-expr2.md
 
-EXPR2_DESC=		Build skkdic-expr2 (needs glib-2.x)
-EXPR2_USES=		gnome pkgconfig
-EXPR2_USE=		GNOME=glib20
-EXPR2_PLIST_FILES=	bin/skkdic-expr2
-EXPR2_CONFIGURE_WITH=	skkdic-expr2
+OPTIONS_DEFINE=		DIFF DOCS
+DIFF_DESC=		Install skkdic-diff (lang/gauche dependency)
+DIFF_RUN_DEPENDS=	gosh:lang/gauche
+DIFF_PLIST_FILES=	bin/skkdic-diff
+DIFF_PORTDOCS=		README.skkdic-diff.md
+DIFF_VARS=		SHEBANG_FILES+=skkdic-diff.scm SHEBANG_LANG=gosh
 
-.include <bsd.port.options.mk>
+post-extract:
+	@${REINPLACE_CMD} -e 's|skk2cdb.py|skk2cdb|' ${WRKSRC}/skk2cdb.py
 
-.if ${PORT_OPTIONS:MEXPR2}
-PORTDOCS+=	README.skkdic-expr2
-.endif
+post-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/skk2cdb.py ${STAGEDIR}${PREFIX}/bin/skk2cdb
 
-post-build:
-	@${LN} -sf README.C ${WRKSRC}/READMEs/README.skktools
+post-install-DIFF-on:
+	${INSTALL_SCRIPT} ${WRKSRC}/skkdic-diff.scm \
+		${STAGEDIR}${PREFIX}/bin/skkdic-diff
 
-post-install:
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for i in ${PORTDOCS}
-	(cd ${WRKSRC}/READMEs && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
-.endfor
+	cd ${WRKSRC}/READMEs && \
+		${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>
diff --git a/japanese/skk-tools/distinfo b/japanese/skk-tools/distinfo
index 548027b7fbac..a5f91025c433 100644
--- a/japanese/skk-tools/distinfo
+++ b/japanese/skk-tools/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1709979673
-SHA256 (skktools-1.3.4.tar.gz) = 84cc5d3344362372e0dfe93a84790a193d93730178401a96248961ef161f2168
-SIZE (skktools-1.3.4.tar.gz) = 482860
+TIMESTAMP = 1716072620
+SHA256 (skk-dev-skktools-1.3.4-28-g1e8c457_GH0.tar.gz) = ead6bf5d601370048357d05c37d21b6c6b05be36633c8a02fbfed2be13f1adb7
+SIZE (skk-dev-skktools-1.3.4-28-g1e8c457_GH0.tar.gz) = 498683
diff --git a/japanese/skk-tools/pkg-descr b/japanese/skk-tools/pkg-descr
index 54ab8ba0a919..538001ee0571 100644
--- a/japanese/skk-tools/pkg-descr
+++ b/japanese/skk-tools/pkg-descr
@@ -1,5 +1,3 @@
 This package includes jisyo(conversion dictionary) management tools for
 the SKK(Simple Kana Kanji Convertor), a very fast and efficient Japanese
 input method system.
-
-Read ${PREFIX}/share/doc/skk/README.skktools for more detail.