logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

kanaconv-1.0.0.ebuild (1008B)


  1. # Copyright 2023-2024 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=8
  4. VERIFY_SIG_METHOD=signify
  5. inherit nodejs verify-sig
  6. DESCRIPTION="Command to convert Japanese from/to Kana/Kanji/Romaji with furigana option"
  7. HOMEPAGE="https://hacktivis.me/git/kanaconv/"
  8. SRC_URI="
  9. https://hacktivis.me/releases/${P}.tar.gz
  10. verify-sig? ( https://hacktivis.me/releases/${P}.tar.gz.sign )
  11. "
  12. LICENSE="MIT"
  13. SLOT="0"
  14. KEYWORDS="~amd64"
  15. RESTRICT="test" # Has no tests
  16. RDEPEND="
  17. dev-nodejs/kuroshiro:0
  18. dev-nodejs/kuroshiro-analyzer-mecab
  19. dev-nodejs/minimist
  20. "
  21. BDEPEND="verify-sig? ( sec-keys/signify-keys-lanodan:2024 )"
  22. VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2024.pub"
  23. src_unpack() {
  24. if use verify-sig; then
  25. # Too many levels of symbolic links
  26. cd "${DISTDIR}" || die
  27. cp ${A} "${WORKDIR}" || die
  28. cd "${WORKDIR}" || die
  29. verify-sig_verify_detached "${P}.tar.gz" "${P}.tar.gz.sign"
  30. fi
  31. default
  32. }