blob: be16ab433bb65562f237e3ae9059b92db9c74e8d (
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
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/texinfo/texinfo-4.0c.ebuild,v 1.1 2001/06/19 00:58:19 achim Exp $
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="The GNU info program and utilities"
SRC_URI="ftp://alpha.gnu.org/pub/gnu/${A}"
DEPEND="virtual/glibc >=sys-libs/ncurses-5.2-r2
nls? ( sys-devel/gettext )"
RDEPEND="virtual/glibc >=sys-libs/ncurses-5.2-r4"
src_unpack() {
unpack ${A}
cd ${S}
patch -p0 < ${FILESDIR}/${PN}-4.0-gentoo.diff
}
src_compile() {
local myconf
if [ -z "`use nls`" ]
then
myconf="--disable-nls"
fi
try ./configure --host=${CHOST} --prefix=/usr ${myconf} \
--mandir=/usr/share/man --infodir=/usr/share/info
try make ${MAKEOPTS}
}
src_install() {
try make DESTDIR=${D} infodir=${D}/usr/share/info install
exeinto /usr/sbin
doexe ${FILESDIR}/mkinfodir
cd ${D}/usr/share/info
mv texinfo texinfo.info
for i in texinfo-*
do
mv ${i} texinfo.info-${i#texinfo-*}
done
cd ${S}
dodoc AUTHORS ChangeLog COPYING INTRODUCTION NEWS README TODO
docinto info
dodoc info/README
docinto makeinfo
dodoc makeinfo/README
}
|