1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A somewhat comprehensive collection of man page translations"
8 HOMEPAGE="https://manpages-l10n-team.pages.debian.net/manpages-l10n/"
9 SRC_URI="https://salsa.debian.org/manpages-l10n-team/manpages-l10n/-/archive/v${PV}/${MY_P}.tar.bz2"
10 S="${WORKDIR}/${MY_P}"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~amd64-linux ~x86-linux"
15 # omit pt-BR and ro for now, because they each install only two man pages
17 IUSE="${MY_L10N[@]/#/l10n_}"
18 REQUIRED_USE="|| ( ${MY_L10N[@]/#/l10n_} )"
21 l10n_de? ( !app-i18n/man-pages-de )
22 l10n_fr? ( !app-i18n/man-pages-fr )
23 l10n_nl? ( !app-i18n/man-pages-nl )
24 l10n_pl? ( !app-i18n/man-pages-pl )"
26 BDEPEND="app-text/po4a
29 DOCS=(AUTHORS.md CHANGES.md README.md)
33 sed -i -e "/^SUBDIRS/s/=.*/= ${L10N//-/_}/" po/Makefile.{am,in} || die
35 # some packages have their own translations
36 local noinst_manpages=(
57 printf '%s\n' "${noinst_manpages[@]}" \
58 | sed 's%^\(.*\)/\(.*\)\.\(.*\)$%po/\1/man\3/\2.\3.po%' | xargs rm
63 econf --enable-compression=none