commit: c055bf4a3e50ae9b7ef35ebe8edc4f1fd578cad4
parent 801243137f7df86569f4deba20def9d832e18ffa
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 29 Oct 2023 07:21:07 +0100
dev-nodejs/mecab-async: new package, add 0.1.2
Diffstat:
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/dev-nodejs/mecab-async/Manifest b/dev-nodejs/mecab-async/Manifest
@@ -0,0 +1 @@
+DIST node-mecab-async-f3b2b9ce10914c7b3ff3b69cc09991d8df2e4aee.tar.gz 3880 BLAKE2B 02c93559a7c28e460539faf12dc50c977b29d093810f8320bdc6ce7b7d3b75bcf65b6e7cc1bb73f0b54552403e27ccdbc3201e4cfd61343186497eedea6fb0da SHA512 e5ee96697d570fd545ad5a37bd88aa57d55da857e36305da96bffa609499436ec456e18e7062e00e8b8b9b88dbff7a71e7b97ec9cfa0d460c8bb3409c8807ca1
diff --git a/dev-nodejs/mecab-async/mecab-async-0.1.2.ebuild b/dev-nodejs/mecab-async/mecab-async-0.1.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit nodejs
+
+DESCRIPTION="Asynchronous japanese morphological analyser using MeCab"
+HOMEPAGE="https://github.com/hecomi/node-mecab-async"
+
+# No tags in the git repo, use version-change commit
+EGIT_COMMIT="f3b2b9ce10914c7b3ff3b69cc09991d8df2e4aee"
+SRC_URI="https://github.com/hecomi/node-mecab-async/archive/${EGIT_COMMIT}.tar.gz -> node-${PN}-${EGIT_COMMIT}.tar.gz"
+S="${WORKDIR}/node-${PN}-${EGIT_COMMIT}/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-nodejs/shell-quote
+ app-text/mecab
+"
+DEPEND="test? ( ${RDEPEND} )"
+
+src_test() {
+ node test.js || die
+}