Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 159906 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-i18n/man-pages-cs/man-pages-cs-0.16-r1.ebuild (-3 / +29 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-cs/man-pages-cs-0.16-r1.ebuild,v 1.2 2006/06/21 17:24:45 vapier Exp $
3
4
inherit eutils
4
5
5
DESCRIPTION="A somewhat comprehensive collection of Linux czech man page translations"
6
DESCRIPTION="A somewhat comprehensive collection of Linux czech man page translations"
6
HOMEPAGE="http://www.win.tue.nl/~aeb/linux/man/"
7
HOMEPAGE="http://www.win.tue.nl/~aeb/linux/man/"
Lines 9-22 Link Here
9
LICENSE="freedist"
10
LICENSE="freedist"
10
SLOT="0"
11
SLOT="0"
11
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
12
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
12
IUSE=""
13
IUSE="unicode"
13
14
14
RDEPEND="virtual/man"
15
RDEPEND="virtual/man"
15
16
17
src_unpack() {
18
	unpack ${A}
19
	cd ${S}
20
	epatch ${FILESDIR}/man-pages-cs-unicode.diff
21
}
22
16
src_compile() { :; }
23
src_compile() { :; }
17
24
18
src_install() {
25
src_install() {
19
	make MANDIR="${D}"/usr/share/man/cs install || die
26
	local utf8switch=""
27
	if use unicode; then
28
		utf8switch="UTF8=yes"
29
	fi
30
31
	make ${utf8switch} MANDIR="${D}"/usr/share/man/cs install || die
20
	dodoc CONTRIB README*
32
	dodoc CONTRIB README*
21
33
22
	# remove man pages that are provided by other packages.
34
	# remove man pages that are provided by other packages.
Lines 25-27 Link Here
25
	rm -f ${D}/usr/share/man/cs/man5/shadow.5
37
	rm -f ${D}/usr/share/man/cs/man5/shadow.5
26
	rm -f ${D}/usr/share/man/cs/man8/{lastlog,vigr,vipw}.8
38
	rm -f ${D}/usr/share/man/cs/man8/{lastlog,vigr,vipw}.8
27
}
39
}
40
41
pkg_postinst(){
42
	if use unicode; then
43
		ewarn "sys-apps/groff doesn't support man pages in UTF-8. You should"
44
		ewarn "consider to USE=-unicode on this ebuild and replace -Tascii by"
45
		ewarn "-Tutf8 -mlatin2 in /etc/man.conf on line configuring nroff to"
46
		ewarn "keep man pages in ISO-8859-2."
47
	else
48
		elog "man utility can't recognise encoding of manual pages. Therefore"
49
		elog "you should replace -Tascii by -Tutf8 -mlatin2 in /etc/man.conf"
50
		elog "on line configuring nroff. Otherwise manual pages wouldn't be"
51
		elog "displayed properly."
52
	fi
53
}

Return to bug 159906