You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  1. # Copyright 1999-2021 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="7"
  4. PLOCALES="af ar ca cs da de eo es et eu fr hr hu id it ja kn ko nb nl pl pt pt_BR ru sl sr_Cyrl sv uk vi zh_CN zh_HK"
  5. inherit perl-module plocale
  6. DESCRIPTION="Tools to ease the translation of documentation"
  7. HOMEPAGE="https://po4a.org/"
  8. SRC_URI="https://github.com/mquinson/${PN}/releases/download/v${PV}/${P}.tar.gz"
  9. LICENSE="GPL-2+"
  10. SLOT="0"
  11. KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
  12. IUSE="test"
  13. RESTRICT="!test? ( test )"
  14. RDEPEND="app-text/opensp
  15. dev-libs/libxslt
  16. dev-perl/Locale-gettext
  17. dev-perl/SGMLSpm
  18. dev-perl/TermReadKey
  19. dev-perl/Text-WrapI18N
  20. dev-perl/Unicode-LineBreak
  21. dev-perl/YAML-Tiny
  22. sys-devel/gettext
  23. dev-perl/Pod-Parser"
  24. DEPEND="${RDEPEND}"
  25. BDEPEND="
  26. app-text/docbook-xml-dtd:4.1.2
  27. app-text/docbook-xsl-stylesheets
  28. dev-perl/Module-Build
  29. test? (
  30. app-text/docbook-sgml-dtd:4.1
  31. dev-perl/Test-Pod
  32. virtual/latex-base
  33. )"
  34. PATCHES=( "${FILESDIR}"/${PN}-0.60-man.patch )
  35. DIST_TEST="do"
  36. src_prepare() {
  37. plocale_find_changes "${S}/po/bin" '' '.po'
  38. rm_locale() {
  39. PERL_RM_FILES+=( po/{bin,pod}/${1}.po )
  40. }
  41. plocale_for_each_disabled_locale rm_locale
  42. perl-module_src_prepare
  43. }