1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
11 HOMEPAGE="https://salsa.debian.org/manpages-de-team/manpages-de"
12 SRC_URI="https://salsa.debian.org/manpages-de-team/manpages-de/-/archive/v${PV}/${MY_P}.tar.bz2"
14 LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
16 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 m68k ~mips ppc ppc64 ~riscv s390 sparc x86"
20 BDEPEND="app-text/po4a"
22 S="${WORKDIR}/${MY_P}"
27 sed '/gzip --best/d' -i po/Makefile.am || die
29 # sys-apps/shadow has it's own translated man-page for this
31 local noinst_manpages=(
32 upstream/debian-unstable/man1/groups.1
38 for manpage in ${noinst_manpages[@]} ; do
39 rm "${manpage}" || die
42 # Use the same compression as every other manpage
43 local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
44 local PORTAGE_COMPRESS_FLAGS_LOCAL=${PORTAGE_COMPRESS_FLAGS}
45 if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
46 case ${PORTAGE_COMPRESS_LOCAL} in
48 PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
53 # Fix source files for symlinks
55 case ${PORTAGE_COMPRESS_LOCAL} in
57 for LINKSOURCE in upstream/*/links.txt ; do
58 sed -i -e 's/\.gz/\.bz2/g' "${LINKSOURCE}" || die
65 for LINKSOURCE in upstream/*/links.txt ; do
66 sed -i -e 's/\.gz/\.xz/g' "${LINKSOURCE}" || die
70 ewarn "Unexpected compression command ${PORTAGE_COMPRESS} found, symlinks will not work."
80 emake mandir="${ED}"/usr/share/man install
81 dodoc CHANGES.md README.md