commit: a9731bed7ab01b28ce33719581ff9821dd75a2bd
parent ad581198fe041c0fc6167839979ee9e59530128c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 6 Apr 2024 16:11:47 +0200
app-text/kanaconv: verify-sig support
Diffstat:
2 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/app-text/kanaconv/Manifest b/app-text/kanaconv/Manifest
@@ -1 +1,2 @@
DIST kanaconv-1.0.0.tar.gz 2534 BLAKE2B e0517985512b372d0a18c1a9b90a09dc23365cc287af35feedbd79d0d9cec237e78d296b3648d621a1eb115371952b3520c8932124831dd605ed608441e08324 SHA512 1d0cae61c76e66666cf1333206410dbe6cf2c21a9b82b25e4724cdc5c31ac8bcf47bce9cd3c537cf751ddb3815cf246ab74d2b227901490aa3b9ef351e4e7ffe
+DIST kanaconv-1.0.0.tar.gz.sign 309 BLAKE2B bf3b71b7dc6903730f18a980cc33b9b828deb7afabfd0a783d13e49f3a9898a6d5d73015d829dfa05a0de7bd49ed1beb3d4a5c136ce545bf1ecd2f1df878117c SHA512 84f4067738d07ccd32ede644844c19cf0bf6073d35ae54cab43eef82e9556d8d8281a00bd8037e726dc0486064b3b96527918eecd7c0dfc28374272d878f107b
diff --git a/app-text/kanaconv/kanaconv-1.0.0.ebuild b/app-text/kanaconv/kanaconv-1.0.0.ebuild
@@ -3,11 +3,15 @@
EAPI=8
-inherit nodejs
+VERIFY_SIG_METHOD=signify
+inherit nodejs verify-sig
DESCRIPTION="Command to convert Japanese from/to Kana/Kanji/Romaji with furigana option"
HOMEPAGE="https://hacktivis.me/git/kanaconv/"
-SRC_URI="https://hacktivis.me/releases/${P}.tar.gz"
+SRC_URI="
+ https://hacktivis.me/releases/${P}.tar.gz
+ verify-sig? ( https://hacktivis.me/releases/${P}.tar.gz.sign )
+"
LICENSE="MIT"
SLOT="0"
@@ -20,3 +24,19 @@ RDEPEND="
dev-nodejs/kuroshiro-analyzer-mecab
dev-nodejs/minimist
"
+
+BDEPEND="verify-sig? ( sec-keys/signify-keys-lanodan:2024 )"
+
+VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2024.pub"
+
+src_unpack() {
+ if use verify-sig; then
+ # Too many levels of symbolic links
+ cd "${DISTDIR}" || die
+ cp ${A} "${WORKDIR}" || die
+ cd "${WORKDIR}" || die
+ verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign"
+ fi
+
+ default
+}