/[gentoo-x86]/sys-apps/man/man-1.5k.ebuild
Gentoo

Contents of /sys-apps/man/man-1.5k.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Dec 26 19:05:31 2002 UTC (17 years, 6 months ago) by azarah
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.8: +22 -4 lines
fix segfault; fix debugging info for locale confusing

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/sys-apps/man/man-1.5k.ebuild,v 1.8 2002/12/15 10:44:23 bjb Exp $
4
5 IUSE=""
6
7 inherit eutils
8
9 NV="${PV}"
10 S="${WORKDIR}/${PN}-${NV}"
11 DESCRIPTION="Standard commands to read man pages"
12 SRC_URI="http://www.kernel.org/pub/linux/utils/man/man-${NV}.tar.gz"
13 HOMEPAGE="http://freshmeat.net/projects/man/"
14
15 DEPEND="virtual/glibc"
16
17 RDEPEND="sys-apps/cronbase
18 sys-apps/groff"
19
20 SLOT="0"
21 KEYWORDS="x86 ppc sparc alpha"
22 LICENSE="GPL-2"
23
24 src_unpack() {
25 unpack ${A}
26
27 cd ${S}
28 cp configure configure.orig
29 sed -e 's:/usr/lib/locale:$(prefix)/usr/lib/locale:g' \
30 -e 's!/usr/bin:/usr/ucb:!/usr/bin:!' \
31 configure.orig > configure
32 local x
33 for x in / src/ man2html/ msgs/
34 do
35 cd ${S}/${x}
36 cp Makefile.in Makefile.in.orig
37 sed -e '/inst.sh/d' \
38 -e '/^CC =/c\' \
39 -e "CC = gcc" \
40 -e '/^CFLAGS =/c\' \
41 -e "CFLAGS = $CFLAGS" \
42 Makefile.in.orig > Makefile.in
43 done
44
45 cd ${S}/gencat
46 cp Makefile Makefile.orig
47 sed -e "s:cc -o:gcc -o:" Makefile.orig > Makefile
48
49 cd ${S}
50 # Fix a crash when calling man with: man -k "foo bar" (bug #9761).
51 # <azarah@gentoo.org> (26 Dec 2002).
52 epatch ${FILESDIR}/${P}-util_c-segfault.patch
53
54 # Do not print the 'man: No such file or directory' error if
55 # 'man -d' was called and the NLS catalogue was not found, as
56 # it confuses people, and be more informative ... (bug #6360)
57 # <azarah@gentoo.org> (26 Dec 2002).
58 epatch ${FILESDIR}/${P}-locale-debug-info.patch
59 }
60
61 src_compile() {
62 local myconf=""
63 use nls && myconf="+lang all"
64
65 ./configure -confdir=/etc \
66 +sgid +fhs \
67 ${myconf} || die
68
69 make || die
70 }
71
72 src_install() {
73 dodir /usr/{bin,sbin}
74 cd ${S}
75 make PREFIX=${D} install || die
76
77 if [ -n "`use nls`" ]
78 then
79 cd ${S}/msgs
80 ./inst.sh ?? ${D}/usr/share/locale/%L/%N
81 fi
82
83 chmod 2555 ${D}/usr/bin/man
84 chown root.man ${D}/usr/bin/man
85
86 # Needed for makewhatis
87 keepdir /var/cache/man
88
89 insinto /etc
90 cd ${S}
91 doins src/man.conf
92
93 dodoc COPYING LSM README* TODO
94
95 exeinto /etc/cron.daily
96 doexe ${FILESDIR}/makewhatis.cron
97 }
98
99

  ViewVC Help
Powered by ViewVC 1.1.20