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
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-es/man-pages-es-1.55-r1.ebuild,v 1.8 2008/06/09 08:07:57 ferdy Exp $
manpagesextra=${PN}-extra-0.8a
S2=${WORKDIR}/${manpagesextra}
DESCRIPTION="A somewhat comprehensive collection of Linux spanish man page translations"
HOMEPAGE="http://ditec.um.es/~piernas/manpages-es/index.html"
SRC_URI="http://ditec.um.es/~piernas/manpages-es/${P}.tar.bz2
http://ditec.um.es/~piernas/manpages-es/${manpagesextra}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE=""
RDEPEND="virtual/man"
src_compile() { :; }
src_install() {
local d f toencoding
# These are provided by sys-apps/shadow, see bug #154140
rm -f {"${S}","${S2}"}/man{1/{passwd,su,newgrp,login}.1,8/{vigr,vipw}.8}
# This one by app-misc/mc, see bug #206361
rm -f {"${S}","${S2}"}/man1/mc.1
dodoc man?/{LEAME,README}
dodir /usr/share/man/es/man{1,2,3,4,5,6,7,8}
toencoding=iso8859-1
# This is needed because manpages-es has broken encodings upstream
for d in "${S}" "${S2}" ; do
cd "${d}"
file -i man?/* | while read f ; do
iconv -f ${f##*=} \
-t ${toencoding} ${d}/${f%%:*} \
-o ${D}/usr/share/man/es/${f%%:*}
done
done
}
pkg_postinst() {
ewarn
ewarn "If you want to read these man-pages properly you need to replace"
ewarn "the following line in /etc/man.conf:"
ewarn
ewarn "NROFF /usr/bin/nroff -Tascii -c -mandoc"
ewarn
ewarn "With:"
ewarn
ewarn "NROFF /usr/bin/groff -Tutf8 -mandoc"
ewarn
}
|