# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit savedconfig font

MY_PN="${PN%-*}"
MY_PV=$(ver_rs 3 '-' 4 '.')
MY_P="${MY_PN^}-${MY_PV}"

# yarnlock2srcuri files/Iosevka-16.1.0-yarn.lock
# yarnlock2srcuri is from https://hacktivis.me/git/yarnlock2srcuri
NODE_SRC="
https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.10.1.tgz -> @assemblyscript-loader-0.10.1.tgz
https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.4.1.tgz -> @eslint-eslintrc-1.4.1.tgz
https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.8.tgz -> @humanwhocodes-config-array-0.11.8.tgz
https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz -> @humanwhocodes-module-importer-1.0.1.tgz
https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz -> @humanwhocodes-object-schema-1.2.1.tgz
https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz -> @iarna-toml-2.2.5.tgz
https://registry.yarnpkg.com/@msgpack/msgpack/-/msgpack-2.8.0.tgz -> @msgpack-msgpack-2.8.0.tgz
https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz -> @nodelib-fs.scandir-2.1.5.tgz
https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz -> @nodelib-fs.stat-2.0.5.tgz
https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz -> @nodelib-fs.walk-1.2.8.tgz
https://registry.yarnpkg.com/@ot-builder/bin-composite-types/-/bin-composite-types-1.6.0.tgz -> @ot-builder-bin-composite-types-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/bin-util/-/bin-util-1.6.0.tgz -> @ot-builder-bin-util-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/cli-help-shower/-/cli-help-shower-1.6.0.tgz -> @ot-builder-cli-help-shower-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/cli-proc/-/cli-proc-1.6.0.tgz -> @ot-builder-cli-proc-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/cli-shared/-/cli-shared-1.6.0.tgz -> @ot-builder-cli-shared-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/common-impl/-/common-impl-1.6.0.tgz -> @ot-builder-common-impl-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/errors/-/errors-1.6.0.tgz -> @ot-builder-errors-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-cff/-/io-bin-cff-1.6.0.tgz -> @ot-builder-io-bin-cff-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-encoding/-/io-bin-encoding-1.6.0.tgz -> @ot-builder-io-bin-encoding-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-ext-private/-/io-bin-ext-private-1.6.0.tgz -> @ot-builder-io-bin-ext-private-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-font/-/io-bin-font-1.6.0.tgz -> @ot-builder-io-bin-font-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-glyph-store/-/io-bin-glyph-store-1.6.0.tgz -> @ot-builder-io-bin-glyph-store-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-layout/-/io-bin-layout-1.6.0.tgz -> @ot-builder-io-bin-layout-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-metadata/-/io-bin-metadata-1.6.0.tgz -> @ot-builder-io-bin-metadata-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-metric/-/io-bin-metric-1.6.0.tgz -> @ot-builder-io-bin-metric-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-name/-/io-bin-name-1.6.0.tgz -> @ot-builder-io-bin-name-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-sfnt/-/io-bin-sfnt-1.6.0.tgz -> @ot-builder-io-bin-sfnt-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-ttf/-/io-bin-ttf-1.6.0.tgz -> @ot-builder-io-bin-ttf-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/io-bin-vtt-private/-/io-bin-vtt-private-1.6.0.tgz -> @ot-builder-io-bin-vtt-private-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-encoding/-/ot-encoding-1.6.0.tgz -> @ot-builder-ot-encoding-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-ext-private/-/ot-ext-private-1.6.0.tgz -> @ot-builder-ot-ext-private-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-glyphs/-/ot-glyphs-1.6.0.tgz -> @ot-builder-ot-glyphs-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-layout/-/ot-layout-1.6.0.tgz -> @ot-builder-ot-layout-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-metadata/-/ot-metadata-1.6.0.tgz -> @ot-builder-ot-metadata-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-name/-/ot-name-1.6.0.tgz -> @ot-builder-ot-name-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-sfnt/-/ot-sfnt-1.6.0.tgz -> @ot-builder-ot-sfnt-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-standard-glyph-namer/-/ot-standard-glyph-namer-1.6.0.tgz -> @ot-builder-ot-standard-glyph-namer-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot-vtt-private/-/ot-vtt-private-1.6.0.tgz -> @ot-builder-ot-vtt-private-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/ot/-/ot-1.6.0.tgz -> @ot-builder-ot-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/prelude/-/prelude-1.6.0.tgz -> @ot-builder-prelude-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/primitive/-/primitive-1.6.0.tgz -> @ot-builder-primitive-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/rectify/-/rectify-1.6.0.tgz -> @ot-builder-rectify-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/stat-glyphs/-/stat-glyphs-1.6.0.tgz -> @ot-builder-stat-glyphs-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/trace/-/trace-1.6.0.tgz -> @ot-builder-trace-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/var-store/-/var-store-1.6.0.tgz -> @ot-builder-var-store-1.6.0.tgz
https://registry.yarnpkg.com/@ot-builder/variance/-/variance-1.6.0.tgz -> @ot-builder-variance-1.6.0.tgz
https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz -> @types-json5-0.0.29.tgz
https://registry.yarnpkg.com/@unicode/unicode-14.0.0/-/unicode-14.0.0-1.3.1.tgz -> @unicode-unicode-14.0.0-1.3.1.tgz
https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.6.tgz -> @xmldom-xmldom-0.8.6.tgz
https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz
https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz
https://registry.yarnpkg.com/aglfn/-/aglfn-1.0.2.tgz
https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz
https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz
https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz
https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz
https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz
https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz
https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz
https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz
https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz
https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz
https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz
https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz
https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz
https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz
https://registry.yarnpkg.com/chainsaw/-/chainsaw-0.0.9.tgz
https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz
https://registry.yarnpkg.com/cldr/-/cldr-7.3.0.tgz
https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz
https://registry.yarnpkg.com/clipper-lib/-/clipper-lib-6.4.2.tgz
https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz
https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz
https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz
https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz
https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz
https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz
https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz
https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz
https://registry.yarnpkg.com/deep-equal/-/deep-equal-2.2.0.tgz
https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz
https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz
https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz
https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz
https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz
https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.21.1.tgz
https://registry.yarnpkg.com/es-get-iterator/-/es-get-iterator-1.1.3.tgz
https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz
https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz
https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz
https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz
https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz
https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz
https://registry.yarnpkg.com/escodegen/-/escodegen-1.3.3.tgz
https://registry.yarnpkg.com/escope/-/escope-1.0.3.tgz
https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz
https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz
https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz
https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz
https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz
https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz
https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz
https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz
https://registry.yarnpkg.com/eslint/-/eslint-8.32.0.tgz
https://registry.yarnpkg.com/esmangle/-/esmangle-1.0.1.tgz
https://registry.yarnpkg.com/espree/-/espree-9.4.1.tgz
https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz
https://registry.yarnpkg.com/esprima/-/esprima-1.1.1.tgz
https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz
https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz
https://registry.yarnpkg.com/esshorten/-/esshorten-1.1.1.tgz
https://registry.yarnpkg.com/estraverse/-/estraverse-2.0.0.tgz
https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz
https://registry.yarnpkg.com/estraverse/-/estraverse-1.5.1.tgz
https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz
https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz
https://registry.yarnpkg.com/esutils/-/esutils-1.0.0.tgz
https://registry.yarnpkg.com/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz
https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz
https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz
https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz
https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-1.0.7.tgz
https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz
https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz
https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz
https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz
https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz
https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz
https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz
https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz
https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz
https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz
https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz
https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz
https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz
https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz
https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz
https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz
https://registry.yarnpkg.com/globals/-/globals-13.19.0.tgz
https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.3.tgz
https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz
https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz
https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz
https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz
https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz
https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz
https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz
https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz
https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz
https://registry.yarnpkg.com/has/-/has-1.0.3.tgz
https://registry.yarnpkg.com/hashish/-/hashish-0.0.4.tgz
https://registry.yarnpkg.com/hdr-histogram-js/-/hdr-histogram-js-2.0.3.tgz
https://registry.yarnpkg.com/hdr-histogram-percentiles-obj/-/hdr-histogram-percentiles-obj-3.0.0.tgz
https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz
https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz
https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz
https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz
https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz
https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz
https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.4.tgz
https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz
https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.1.tgz
https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz
https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz
https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz
https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.11.0.tgz
https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz
https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz
https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz
https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz
https://registry.yarnpkg.com/is-map/-/is-map-2.0.2.tgz
https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz
https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz
https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz
https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz
https://registry.yarnpkg.com/is-set/-/is-set-2.0.2.tgz
https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz
https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz
https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz
https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.10.tgz
https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.1.tgz
https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz
https://registry.yarnpkg.com/is-weakset/-/is-weakset-2.0.2.tgz
https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz
https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz
https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.3.0.tgz
https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz
https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz
https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz
https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz
https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz
https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz
https://registry.yarnpkg.com/levn/-/levn-0.2.5.tgz
https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz
https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz
https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz
https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.5.0.tgz
https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz
https://registry.yarnpkg.com/memoizeasync/-/memoizeasync-1.1.0.tgz
https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz
https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz
https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz
https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz
https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz
https://registry.yarnpkg.com/nice-napi/-/nice-napi-1.0.2.tgz
https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz
https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.6.0.tgz
https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.3.tgz
https://registry.yarnpkg.com/object-is/-/object-is-1.1.5.tgz
https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz
https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.4.tgz
https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz
https://registry.yarnpkg.com/once/-/once-1.4.0.tgz
https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz
https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz
https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz
https://registry.yarnpkg.com/optionator/-/optionator-0.3.0.tgz
https://registry.yarnpkg.com/ot-builder/-/ot-builder-1.6.0.tgz
https://registry.yarnpkg.com/otb-ttc-bundle/-/otb-ttc-bundle-1.6.0.tgz
https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz
https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz
https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz
https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz
https://registry.yarnpkg.com/passerror/-/passerror-1.1.1.tgz
https://registry.yarnpkg.com/patel/-/patel-0.38.0.tgz
https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz
https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz
https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz
https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz
https://registry.yarnpkg.com/patrisika-scopes/-/patrisika-scopes-0.12.0.tgz
https://registry.yarnpkg.com/patrisika/-/patrisika-0.25.0.tgz
https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz
https://registry.yarnpkg.com/piscina/-/piscina-3.2.0.tgz
https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz
https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz
https://registry.yarnpkg.com/prettier/-/prettier-2.8.3.tgz
https://registry.yarnpkg.com/punycode/-/punycode-2.3.0.tgz
https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz
https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz
https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz
https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz
https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz
https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz
https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz
https://registry.yarnpkg.com/resumer/-/resumer-0.0.0.tgz
https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz
https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz
https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz
https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz
https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz
https://registry.yarnpkg.com/semaphore-async-await/-/semaphore-async-await-1.5.1.tgz
https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz
https://registry.yarnpkg.com/semver/-/semver-7.3.8.tgz
https://registry.yarnpkg.com/seq/-/seq-0.3.5.tgz
https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz
https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz
https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz
https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz
https://registry.yarnpkg.com/source-map/-/source-map-0.1.43.tgz
https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz
https://registry.yarnpkg.com/spiro/-/spiro-3.0.0.tgz
https://registry.yarnpkg.com/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz
https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz
https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz
https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz
https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz
https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz
https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz
https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz
https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz
https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz
https://registry.yarnpkg.com/through/-/through-2.3.8.tgz
https://registry.yarnpkg.com/toposort/-/toposort-2.0.2.tgz
https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz
https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz
https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz
https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz
https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz
https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz
https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.4.tgz
https://registry.yarnpkg.com/typo-geom/-/typo-geom-0.13.0.tgz
https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz
https://registry.yarnpkg.com/unicoderegexp/-/unicoderegexp-0.4.1.tgz
https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz
https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz
https://registry.yarnpkg.com/uuid/-/uuid-9.0.0.tgz
https://registry.yarnpkg.com/verda/-/verda-1.11.0.tgz
https://registry.yarnpkg.com/wawoff2/-/wawoff2-2.0.1.tgz
https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz
https://registry.yarnpkg.com/which-collection/-/which-collection-1.0.1.tgz
https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.9.tgz
https://registry.yarnpkg.com/which/-/which-2.0.2.tgz
https://registry.yarnpkg.com/which/-/which-3.0.0.tgz
https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz
https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz
https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz
https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz
https://registry.yarnpkg.com/xpath/-/xpath-0.0.32.tgz
https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz
https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz
https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz
https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz
https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz
https://registry.yarnpkg.com/yargs/-/yargs-17.6.2.tgz
https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz
"

DESCRIPTION="Spatial efficient monospace font family for programming"
HOMEPAGE="https://be5invis.github.io/Iosevka"
SRC_URI="
	${NODE_SRC}
	https://github.com/be5invis/Iosevka/archive/refs/tags/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz
"

S="${WORKDIR}/${MY_P}"
KEYWORDS="~amd64 ~x86"

LICENSE="OFL-1.1"
SLOT="0"
IUSE="+autohint savedconfig"
BDEPEND="
	sys-apps/yarn
	autohint? ( media-gfx/ttfautohint )
"

FONT_SUFFIX="ttf"
FONT_PN="${MY_PN}"
FONT_S="${S}/dist/iosevka/ttf"

src_unpack() {
	unpack "${MY_P}.tar.gz"
}

src_prepare() {
	default

	rm package-lock.json || die
	cp "${FILESDIR}/${MY_P}-yarn.lock" "${S}/yarn.lock" || die

	if use savedconfig; then
		local _p="private-build-plans.toml"
		FONT_S="${S}/dist/iosevka-custom/ttf"

		restore_config ${_p}

		if [ ! -e "${S}"/${_p} ]
		then
			die "Custom build requires ${_p} file at ${PORTAGE_CONFIGROOT}etc/portage/savedconfig/${CATEGORY}/${PN}, see https://github.com/be5invis/Iosevka#configuring-custom-build"
		fi
	fi
}

src_compile() {
	yarn config set yarn-offline-mirror "${DISTDIR}" || die
	#yarn --offline --verbose import || die
	yarn --offline install || die

	if use savedconfig
	then
		yarn --offline run build ttf::iosevka-custom || die
	else
		yarn --offline run build ttf::iosevka || die
	fi
}