blob: 0b4510bd50ca551f4045f51f2cb75097f3dae3cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
MY_P="${PN/-/}-${PV}"
DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
HOMEPAGE="https://alioth.debian.org/projects/manpages-de/"
SRC_URI="https://manpages-de.alioth.debian.org/downloads/${MY_P}.tar.xz"
LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""
RDEPEND="virtual/man"
DEPEND="app-text/po4a"
S=${WORKDIR}/${MY_P}
src_prepare() {
default
# sys-apps/shadow has it's own translated man-page for this
rm upstream/primary/man1/groups.1 po/primary/man1/groups.1.po || die
# Use the same compression as every other manpage
local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
if [[ ${PORTAGE_COMPRESS+set} == "set" ]] ; then
PORTAGE_COMPRESS_LOCAL="#"
fi
if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
case ${PORTAGE_COMPRESS_LOCAL} in
bzip2|gzip) local PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
;;
esac
fi
sed -i -e "s/gzip --best/${PORTAGE_COMPRESS_LOCAL} ${PORTAGE_COMPRESS_FLAGS_LOCAL}/"\
po/Makefile.in || die
eautoreconf
}
src_compile() { :; }
src_install() {
emake mandir="${ED}"/usr/share/man install
dodoc CHANGES.md README.md
}
|