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.
52 lines
1.3 KiB
52 lines
1.3 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI="7"
|
||
|
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"
|
||
6 years ago
|
|
||
4 years ago
|
inherit l10n perl-module
|
||
|
|
||
6 years ago
|
DESCRIPTION="Tools to ease the translation of documentation"
|
||
|
HOMEPAGE="https://po4a.org/"
|
||
4 years ago
|
SRC_URI="https://github.com/mquinson/${PN}/releases/download/v${PV}/${P}.tar.gz"
|
||
6 years ago
|
|
||
4 years ago
|
LICENSE="GPL-2+"
|
||
6 years ago
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
|
||
6 years ago
|
IUSE="test"
|
||
5 years ago
|
RESTRICT="!test? ( test )"
|
||
6 years ago
|
|
||
|
RDEPEND="app-text/opensp
|
||
|
dev-libs/libxslt
|
||
|
dev-perl/Locale-gettext
|
||
|
dev-perl/SGMLSpm
|
||
|
dev-perl/TermReadKey
|
||
|
dev-perl/Text-WrapI18N
|
||
|
dev-perl/Unicode-LineBreak
|
||
|
dev-perl/YAML-Tiny
|
||
|
sys-devel/gettext"
|
||
|
DEPEND="${RDEPEND}
|
||
|
app-text/docbook-xml-dtd:4.1.2
|
||
|
app-text/docbook-xsl-stylesheets
|
||
|
dev-perl/Module-Build
|
||
|
test? (
|
||
|
app-text/docbook-sgml-dtd:4.1
|
||
4 years ago
|
dev-perl/Test-Pod
|
||
5 years ago
|
virtual/latex-base
|
||
6 years ago
|
)"
|
||
|
|
||
4 years ago
|
PATCHES=( "${FILESDIR}"/${PN}-0.60-man.patch )
|
||
6 years ago
|
|
||
6 years ago
|
DIST_TEST="do"
|
||
|
|
||
|
src_prepare() {
|
||
|
l10n_find_plocales_changes "${S}/po/bin" '' '.po'
|
||
|
|
||
|
rm_locale() {
|
||
|
PERL_RM_FILES+=( po/{bin,pod}/${1}.po )
|
||
|
}
|
||
|
l10n_for_each_disabled_locale_do rm_locale
|
||
|
|
||
|
perl-module_src_prepare
|
||
|
}
|