commit: 5f4c65aee5db13c17f475dd16810543f30ed2e76
parent e337d05ff40387c0657d1f80d9220b5977026fa2
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 29 Oct 2023 06:48:09 +0100
dev-nodejs/kuroshiro: new package, add 1.2.0
Diffstat:
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/dev-nodejs/kuroshiro/Manifest b/dev-nodejs/kuroshiro/Manifest
@@ -0,0 +1 @@
+DIST kuroshiro-1.2.0.tar.gz 27477 BLAKE2B 73d14a7e54595590ecfe1c43c6fa2538a0fa6ba26538b9a8ca5df24f2ed2593cd9de37c7330a1ab486fe71001da2a5444d8ea2bf96487618724a3f64b1c719a9 SHA512 2a8ac57233ef18f9d5cd2a8d7afadd5e2bba5be66d521db90c67eef91d47ebb7e6cd8d2f4b633252635d487aa3636e8e169d95710ca1171a201e3131fb9552c1
diff --git a/dev-nodejs/kuroshiro/kuroshiro-1.2.0.ebuild b/dev-nodejs/kuroshiro/kuroshiro-1.2.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit nodejs
+
+DESCRIPTION="Convert Japanese to Hiragana, Katakana or Romaji with furigana and okurigana modes"
+HOMEPAGE="https://kuroshiro.org/"
+SRC_URI="https://github.com/hexenq/kuroshiro/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+BDEPEND="dev-util/esbuild"
+
+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 || die
+}