blob: 143f76755e598f8c92453d2aa7d60abe3e5a8a2f (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.3-r2.ebuild,v 1.3 2003/06/22 05:10:31 seemant Exp $
IUSE=""
inherit eutils flag-o-matic
filter-flags "-fno-exceptions"
S="${WORKDIR}/${P}"
DESCRIPTION="Linux console display library"
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
SRC_URI="mirror://gnu/ncurses/${P}.tar.gz"
LICENSE="MIT"
SLOT="5"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~arm ~mips"
DEPEND="virtual/glibc"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/ncurses-5.3-xterm.patch
}
src_compile() {
[ -z "${DEBUGBUILD}" ] && myconf="${myconf} --without-debug"
# From version 5.3, ncurses also build c++ bindings, and as
# we do not have a c++ compiler during bootstrap, disable
# building it. We will rebuild ncurses after gcc's second
# build in bootstrap.sh.
# <azarah@gentoo.org> (23 Oct 2002)
( use build || use bootstrap ) \
&& myconf="${myconf} --without-cxx --without-cxx-binding --without-ada"
econf \
--libdir=/lib \
--disable-termcap \
--with-shared \
--with-rcs-ids \
--without-ada \
${myconf} || die "configure failed"
# do not work with -j2 on P4 - <azarah@gentoo.org> (23 Oct 2002)
make || die "parallel make failed"
}
src_install() {
make DESTDIR=${D} install || die "make install failed"
# Move static and extraneous ncurses libraries out of /lib
cd ${D}/lib
dodir /usr/lib
mv libform* libmenu* libpanel* ${D}/usr/lib
mv *.a ${D}/usr/lib
# bug #4411
gen_usr_ldscript libncurses.so
# With this fix, the default xterm has color as it should
#cd ${D}/usr/share/terminfo/x
#mv xterm xterm.orig
#dosym xterm-color /usr/share/terminfo/x/xterm
if [ -n "`use build`" ]
then
cd ${D}
rm -rf usr/share/man
cd usr/share/terminfo
cp -a l/linux n/nxterm v/vt100 ${T}
rm -rf *
mkdir l x v
cp -a ${T}/linux l
cp -a ${T}/nxterm x/xterm
cp -a ${T}/vt100 v
#bash compilation requires static libncurses libraries, so
#this breaks the "build a new build image" system. We now
#need to remove libncurses.a from the build image manually.
#rm *.a
else
cd ${S}
dodoc ANNOUNCE MANIFEST NEWS README* TO-DO
dodoc doc/*.doc
dohtml -r doc/html/
fi
}
pkg_postinst() {
# Old ncurses may still be around from old build tbz2's.
rm -f /lib/libncurses.so.5.2
rm -f /usr/lib/lib{form,menu,panel}.so.5.2
}
|