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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jan 8 17:53:12 2003 UTC (17 years, 6 months ago) by azarah
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.2: +2 -2 lines
mark stable for x86

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-r1.ebuild,v 1.2 2002/12/26 19:05:31 azarah 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-1.18"
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
33 local x=""
34 for x in / src/ man2html/ msgs/
35 do
36 cd ${S}/${x}
37 cp Makefile.in Makefile.in.orig
38 sed -e '/inst.sh/d' \
39 -e '/^CC =/c\' \
40 -e "CC = gcc" \
41 -e '/^CFLAGS =/c\' \
42 -e "CFLAGS = ${CFLAGS}" \
43 Makefile.in.orig > Makefile.in
44 done
45
46 cd ${S}/gencat
47 cp Makefile Makefile.orig
48 sed -e "s:cc -o:gcc -o:" Makefile.orig > Makefile
49
50 cd ${S}
51 # Various fixes from Redhat
52 epatch ${FILESDIR}/${P}-redhat-patches.patch
53
54 # Fix search order in man.conf so that system installed manpages
55 # will be found first ...
56 epatch ${FILESDIR}/${P}-search-order.patch
57
58 # For groff-1.18 or later we need to call nroff with '-c'
59 epatch ${FILESDIR}/${P}-groff-1.18.patch
60
61 # Fix wierd failing in rare cases
62 epatch ${FILESDIR}/${P}-wrong-quotes.patch
63
64 # Fix a crash when calling man with: man -k "foo bar" (bug #9761).
65 # <azarah@gentoo.org> (26 Dec 2002).
66 epatch ${FILESDIR}/${P}-util_c-segfault.patch
67
68 # Do not print the 'man: No such file or directory' error if
69 # 'man -d' was called and the NLS catalogue was not found, as
70 # it confuses people, and be more informative ... (bug #6360)
71 # <azarah@gentoo.org> (26 Dec 2002).
72 epatch ${FILESDIR}/${P}-locale-debug-info.patch
73 }
74
75 src_compile() {
76 local myconf=""
77 use nls && myconf="+lang all"
78
79 ./configure -confdir=/etc \
80 +sgid +fhs \
81 ${myconf} || die
82
83 make || die
84 }
85
86 src_install() {
87 dodir /usr/{bin,sbin}
88 cd ${S}
89 make PREFIX=${D} install || die
90
91 if [ -n "`use nls`" ]
92 then
93 cd ${S}/msgs
94 ./inst.sh ?? ${D}/usr/share/locale/%L/%N
95 fi
96
97 chmod 2555 ${D}/usr/bin/man
98 chown root.man ${D}/usr/bin/man
99
100 # Needed for makewhatis
101 keepdir /var/cache/man
102
103 insinto /etc
104 cd ${S}
105 doins src/man.conf
106
107 dodoc COPYING LSM README* TODO
108
109 exeinto /etc/cron.daily
110 doexe ${FILESDIR}/makewhatis.cron
111 }
112

  ViewVC Help
Powered by ViewVC 1.1.20