blob: 8e43e265531ae804528b7c2bb0c5240bd05135d9 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.2.20020112a-r1.ebuild,v 1.3 2002/07/11 06:30:56 drobbins Exp $
S=${WORKDIR}/${P}
DESCRIPTION="Linux console display library"
SRC_URI="ftp://ftp.debian.org/debian/pool/main/n/${PN}/${PN}_${PV}.orig.tar.gz"
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
DEPEND="virtual/glibc"
KEYWORDS="x86"
LICENSE="MIT"
SLOT="5"
src_compile() {
if [ -z "$DEBUG" ]
then
myconf="${myconf} --without-debug"
fi
rm -rf test
./configure --prefix=/usr --libdir=/lib --mandir=/usr/share/man --enable-symlinks --enable-termcap --with-shared --with-rcs-ids --host=${CHOST} ${myconf} || die
echo "all:" > test/Makefile
# fix to make apps using ncurses compile correctly with gcc3
mv include/unctrl.h include/unctrl.h_orig
sed -e "s:#include <curses.h>:#include <curses.h>\n#include <ncurses_dll.h>:" \
include/unctrl.h_orig > include/unctrl.h
# Parallel make fails sometimes so I removed MAKEOPTS
make || die
}
src_install() {
dodir /usr/lib
echo "install:" >> ${S}/test/Makefile
make DESTDIR=${D} install || die
cd ${D}/lib
ln -s libncurses.a libcurses.a
chmod 755 ${D}/lib/*.${PV}
dodir /usr/lib
mv libform* libmenu* libpanel* ../usr/lib
mv *.a ../usr/lib
#with this fix, the default xterm has color as it should
cd ${D}/usr/share/terminfo/x
mv xterm xterm.orig
ln -s xterm-color xterm
if [ "`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
cd ${D}/usr/lib
#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/
# docinto html/ada
# dodoc doc/html/ada/*.htm
# docinto html/ada/files
# dodoc doc/html/ada/files/*.htm
# docinto html/ada/funcs
# dodoc doc/html/ada/funcs/*.htm
# docinto html/man
# dodoc doc/html/man/*.html
fi
}
|