blob: 0189535a20de1abb4969f9b11f22001aa70188a4 (
plain)
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
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/man/man-1.5i.ebuild,v 1.1 2001/05/08 01:30:15 achim Exp $
P=man-1.5i
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Standard commands to read man pages"
SRC_URI="ftp://ftp.win.tue.nl/pub/linux-local/utils/man/${A}"
DEPEND="virtual/glibc"
RDEPEND="virtual/glibc
sys-apps/groff"
src_unpacks() {
unpack ${A}
cd ${S}
cp configure configure.orig
sed -e 's!/bin:/usr/bin:/usr/ucb:/usr/local/bin:$PATH!/bin /usr/bin /usr/ucb /usr/local/bin $PATH!' configure.orig > configure
}
src_compile() {
try ./configure +sgid +fsstnd +lang all
for FOOF in src man2html
do
try pmake ${FOOF}/Makefile MANCONFIG=/usr/share/misc/man.conf
cd ${S}/${FOOF}
cp Makefile Makefile.orig
sed -e "s/gcc -O/gcc ${CFLAGS}/" Makefile.orig > Makefile
cd ${S}
done
try make
}
src_install() {
cd src
exeopts -s -m 2555 -o root -g man
exeinto /usr/bin
doexe man
dobin apropos whatis
dosbin makewhatis
insinto /usr/share/misc
doins ${FILESDIR}/man.conf
cd ${S}/man2html
dobin man2html
doman man2html.1
cd ${S}/man
echo "BINROOTDIR=${D}" > Makefile.orig
cat Makefile >> Makefile.orig
sed -e "s:usr/man:usr/share/man:" Makefile.orig > Makefile
try make installsubdirs
cd ${S}
dodoc COPYING LSM README* TODO
}
|