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 $ |
|
|
4 |
|
3 |
|
5 |
DESCRIPTION="A somewhat comprehensive collection of Linux czech man page translations" |
4 |
DESCRIPTION="A somewhat comprehensive collection of Linux czech man page translations" |
6 |
HOMEPAGE="http://www.win.tue.nl/~aeb/linux/man/" |
5 |
HOMEPAGE="http://www.win.tue.nl/~aeb/linux/man/" |
Lines 9-22
Link Here
|
9 |
LICENSE="freedist" |
8 |
LICENSE="freedist" |
10 |
SLOT="0" |
9 |
SLOT="0" |
11 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
10 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
12 |
IUSE="" |
11 |
IUSE="unicode" |
13 |
|
12 |
|
14 |
RDEPEND="virtual/man" |
13 |
RDEPEND="virtual/man" |
15 |
|
14 |
|
16 |
src_compile() { :; } |
15 |
src_compile() { :; } |
17 |
|
16 |
|
18 |
src_install() { |
17 |
src_install() { |
19 |
make MANDIR="${D}"/usr/share/man/cs install || die |
18 |
local locale="LANG=C LC_ALL=C" |
|
|
19 |
if use unicode; then |
20 |
locale="LANG=C.UTF-8" |
21 |
fi |
22 |
|
23 |
make ${locale} MANDIR="${D}"/usr/share/man/cs install || die |
20 |
dodoc CONTRIB README* |
24 |
dodoc CONTRIB README* |
21 |
|
25 |
|
22 |
# remove man pages that are provided by other packages. |
26 |
# 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 |
29 |
rm -f ${D}/usr/share/man/cs/man5/shadow.5 |
26 |
rm -f ${D}/usr/share/man/cs/man8/{lastlog,vigr,vipw}.8 |
30 |
rm -f ${D}/usr/share/man/cs/man8/{lastlog,vigr,vipw}.8 |
27 |
} |
31 |
} |
|
|
32 |
|
33 |
pkg_postinst(){ |
34 |
if use unicode; then |
35 |
ewarn "sys-apps/groff doesn't support man pages in UTF-8. You should" |
36 |
ewarn "consider to USE=-unicode on this ebuild and replace -Tascii by" |
37 |
ewarn "-mlatin2 in /etc/man.conf on line configuring nroff to keep man" |
38 |
ewarn "pages in ISO-8859-2." |
39 |
else |
40 |
elog "man utility can't recognise encoding of manual pages. Therefore" |
41 |
elog "you should replace -Tascii by -mlatin2 in /etc/man.conf on line" |
42 |
elog "configuring nroff. Otherwise manual pages wouldn't be displayed" |
43 |
elog "properly." |
44 |
fi |
45 |
} |