commit: 2ee026585e95bad73125cfc22765940603956260
parent c055bf4a3e50ae9b7ef35ebe8edc4f1fd578cad4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 29 Oct 2023 07:22:52 +0100
dev-nodejs/kuroshiro-analyzer-mecab: new package, add 1.0.0
Diffstat:
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/dev-nodejs/kuroshiro-analyzer-mecab/Manifest b/dev-nodejs/kuroshiro-analyzer-mecab/Manifest
@@ -0,0 +1 @@
+DIST kuroshiro-analyzer-mecab-1.0.0.tar.gz 4822 BLAKE2B 62bab378a25ab319dff95f93e49d203be62a9a10a3558d71f123dad4504678d68ef5b302599a1081412ec92a2ababd00ab9a96183d065a52c3474964cf2ed537 SHA512 23656585d4faa2fff0b58bdbe442b202170bb16a28c057d6081f9e2a288788f653fd265a3e13f3ab5d1c699d484185a922e0662b0bd3d17bcc62602ef7c56498
diff --git a/dev-nodejs/kuroshiro-analyzer-mecab/kuroshiro-analyzer-mecab-1.0.0.ebuild b/dev-nodejs/kuroshiro-analyzer-mecab/kuroshiro-analyzer-mecab-1.0.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit nodejs
+
+DESCRIPTION="Mecab morphological analyzer for kuroshiro"
+HOMEPAGE="https://github.com/hexenq/kuroshiro-analyzer-mecab"
+SRC_URI="https://github.com/hexenq/kuroshiro-analyzer-mecab/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+BDEPEND="dev-util/esbuild"
+RDEPEND="dev-nodejs/mecab-async"
+
+RESTRICT="test" # Uses jest
+
+src_compile() {
+ # Uses babel by default, let's use esbuild for now instead to create a similar result
+ esbuild --bundle src/index.js --outdir=lib --minify --sourcemap --platform=node || die
+}