dev-nodejs/kuroshiro - 1.2.0 (lanodanOverlay)

Search

Package Information

Description:
Convert Japanese to Hiragana, Katakana or Romaji with furigana and okurigana modes
Homepage:
https://kuroshiro.org/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.2.0 8 ~amd64 1
View Raw Ebuild
# 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="1"
KEYWORDS="~amd64"

BDEPEND="dev-util/esbuild"

RESTRICT="test" # Uses jest

src_prepare() {
	default
	sed -i '/"module":/a"type": "module",' package.json || die
}

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 --format=esm || die
}

Dependencies

BDEPEND

dev-util/esbuild

Manifest for 1.2.0

Type File Size Source URLs
DIST kuroshiro-1.2.0.tar.gz 27477 bytes https://github.com/hexenq/kuroshiro/archive/refs/tags/1.2.0.tar.gz