Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 19751
Collapse All | Expand All

(-)man-1.5l-r2.ebuild.orig (-24 / +20 lines)
Lines 12-21 Link Here
12
SRC_URI="http://www.kernel.org/pub/linux/utils/man/man-${NV}.tar.gz"
12
SRC_URI="http://www.kernel.org/pub/linux/utils/man/man-${NV}.tar.gz"
13
HOMEPAGE="http://freshmeat.net/projects/man/"
13
HOMEPAGE="http://freshmeat.net/projects/man/"
14
14
15
DEPEND="virtual/glibc"
15
DEPEND="virtual/glibc
16
		>=sed-4.0.5"
16
17
17
RDEPEND="sys-apps/cronbase
18
RDEPEND="sys-apps/cronbase
18
	>=sys-apps/groff-1.18"
19
		>=sys-apps/groff-1.18"
19
20
20
SLOT="0"
21
SLOT="0"
21
KEYWORDS="x86 ppc sparc alpha hppa arm mips"
22
KEYWORDS="x86 ppc sparc alpha hppa arm mips"
Lines 23-40 Link Here
23
24
24
src_unpack() {
25
src_unpack() {
25
	unpack ${A}
26
	unpack ${A}
26
	
27
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
	cd ${S}/gencat
28
	cd ${S}/gencat
34
	cp Makefile Makefile.orig
29
	sed -i -e 's:cc -o:$(CC) -o:' Makefile || die "Makefile sed"
35
	sed -e 's:cc -o:$(CC) -o:' Makefile.orig > Makefile
36
30
37
	cd ${S}
31
	cd ${S}
32
	sed	-i \
33
		-e 's:/usr/lib/locale:$(prefix)/usr/lib/locale:g' \
34
		-e 's!/usr/bin:/usr/ucb:!/usr/bin:!' \
35
		configure || die "configure sed"
36
38
	# Fix search order in man.conf so that system installed manpages
37
	# Fix search order in man.conf so that system installed manpages
39
	# will be found first ...
38
	# will be found first ...
40
	epatch ${FILESDIR}/${P}-search-order.patch
39
	epatch ${FILESDIR}/${P}-search-order.patch
Lines 61-99 Link Here
61
60
62
src_compile() {
61
src_compile() {
63
	local myconf=
62
	local myconf=
64
	
63
65
	use nls && myconf="+lang all"
64
	use nls && myconf="+lang all"
66
65
67
	./configure -confdir=/etc \
66
	./configure -confdir=/etc +sgid +fhs ${myconf} || die "configure"
68
		+sgid +fhs \
67
69
		${myconf} || die
68
	make || die "make"
70
		
71
	make || die
72
}
69
}
73
70
74
src_install() {
71
src_install() {
75
	dodir /usr/{bin,sbin}
72
	dodir /usr/{bin,sbin}
76
	cd ${S}
73
	cd ${S}
77
	make PREFIX=${D} install || die
74
	make PREFIX=${D} install || die "make install"
78
75
79
	if [ -n "`use nls`" ]
76
	if [ -n "`use nls`" ] ; then
80
	then
81
		cd ${S}/msgs
77
		cd ${S}/msgs
82
		./inst.sh ?? ${D}/usr/share/locale/%L/%N
78
		./inst.sh ?? ${D}/usr/share/locale/%L/%N
83
	fi
79
	fi
84
	
80
85
	chmod 2555 ${D}/usr/bin/man
81
	chmod 2555 ${D}/usr/bin/man
86
	chown root.man ${D}/usr/bin/man
82
	chown root.man ${D}/usr/bin/man
87
83
88
	# Needed for makewhatis
84
	# Needed for makewhatis
89
	keepdir /var/cache/man
85
	keepdir /var/cache/man
90
	
86
91
	insinto /etc
87
	insinto /etc
92
	cd ${S}
88
	cd ${S}
93
	doins src/man.conf
89
	doins src/man.conf
94
	
90
95
	dodoc COPYING LSM README* TODO
91
	dodoc COPYING LSM README* TODO
96
	
92
97
	exeinto /etc/cron.daily
93
	exeinto /etc/cron.daily
98
	doexe ${FILESDIR}/makewhatis.cron
94
	doexe ${FILESDIR}/makewhatis.cron
99
}
95
}

Return to bug 19751