prune old and add back in emake
authorMike Frysinger <vapier@gentoo.org>
Tue, 13 Apr 2004 18:36:59 +0000 (18:36 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 13 Apr 2004 18:36:59 +0000 (18:36 +0000)
13 files changed:
sys-libs/ncurses/ChangeLog
sys-libs/ncurses/files/digest-ncurses-5.3-r1 [deleted file]
sys-libs/ncurses/files/digest-ncurses-5.3-r2 [deleted file]
sys-libs/ncurses/files/digest-ncurses-5.3-r3 [deleted file]
sys-libs/ncurses/files/digest-ncurses-5.3-r4 [deleted file]
sys-libs/ncurses/files/digest-ncurses-5.4 [deleted file]
sys-libs/ncurses/files/ncurses-5.2.20020511-gcc31.patch [deleted file]
sys-libs/ncurses/ncurses-5.3-r1.ebuild [deleted file]
sys-libs/ncurses/ncurses-5.3-r2.ebuild [deleted file]
sys-libs/ncurses/ncurses-5.3-r3.ebuild [deleted file]
sys-libs/ncurses/ncurses-5.3-r4.ebuild [deleted file]
sys-libs/ncurses/ncurses-5.4-r1.ebuild
sys-libs/ncurses/ncurses-5.4.ebuild [deleted file]

index 1efe896caad121ee8a355178fe836953241be12f..36b297a0427bb02b756ad5cc73405e38bc537f65 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-libs/ncurses
 # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.62 2004/04/03 00:48:42 avenj Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ChangeLog,v 1.63 2004/04/13 18:36:59 vapier Exp $
+
+  13 Apr 2004; Mike Frysinger <vapier@gentoo.org> ncurses-5.3-r1.ebuild 
+  ncurses-5.3-r2.ebuild ncurses-5.3-r3.ebuild ncurses-5.3-r4.ebuild 
+  ncurses-5.4.ebuild ncurses-5.4-r1.ebuild :
+  Prune out old ebuilds since KEYWORDS overrides the previous ones and 
+  add back in parallel support with 5.4 via (emake).  Tested on a P4 with -j
+  and on a 8way with -j16 ;).
 
   02 Apr 2004; Jon Portnoy <avenj@gentoo.org> ncurses-5.4.ebuild, 
   ncurses-5.4-r1.ebuild :
diff --git a/sys-libs/ncurses/files/digest-ncurses-5.3-r1 b/sys-libs/ncurses/files/digest-ncurses-5.3-r1
deleted file mode 100644 (file)
index e8f3272..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5dcc9faa93157eafa572494bffed131a ncurses-5.3.tar.gz 2067718
diff --git a/sys-libs/ncurses/files/digest-ncurses-5.3-r2 b/sys-libs/ncurses/files/digest-ncurses-5.3-r2
deleted file mode 100644 (file)
index e8f3272..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5dcc9faa93157eafa572494bffed131a ncurses-5.3.tar.gz 2067718
diff --git a/sys-libs/ncurses/files/digest-ncurses-5.3-r3 b/sys-libs/ncurses/files/digest-ncurses-5.3-r3
deleted file mode 100644 (file)
index e8f3272..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5dcc9faa93157eafa572494bffed131a ncurses-5.3.tar.gz 2067718
diff --git a/sys-libs/ncurses/files/digest-ncurses-5.3-r4 b/sys-libs/ncurses/files/digest-ncurses-5.3-r4
deleted file mode 100644 (file)
index e8f3272..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 5dcc9faa93157eafa572494bffed131a ncurses-5.3.tar.gz 2067718
diff --git a/sys-libs/ncurses/files/digest-ncurses-5.4 b/sys-libs/ncurses/files/digest-ncurses-5.4
deleted file mode 100644 (file)
index fdf84be..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 069c8880072060373290a4fefff43520 ncurses-5.4.tar.gz 2154022
diff --git a/sys-libs/ncurses/files/ncurses-5.2.20020511-gcc31.patch b/sys-libs/ncurses/files/ncurses-5.2.20020511-gcc31.patch
deleted file mode 100644 (file)
index e351790..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -urNd ncurses-5.2/c++/cursesw.cc ncurses-5.2/c++/cursesw.cc.new
---- ncurses-5.2/c++/cursesw.cc Sat May 25 12:23:26 2002
-+++ ncurses-5.2/c++/cursesw.cc.new     Sat May 25 12:22:51 2002
-@@ -51,8 +51,7 @@
-     char buf[BUFSIZ];
-     int result = wgetstr(w, buf);
-     if (result == OK) {
--      strstreambuf ss(buf, sizeof(buf));
--      result = ss.vscan(fmt, (_IO_va_list)args);
-+      result = vsscanf(buf, fmt, args);
-     }
-     va_end(args);
-     return result;
-@@ -73,8 +72,7 @@
-     if (result == OK) {
-       result = wgetstr(w, buf);
-       if (result == OK) {
--          strstreambuf ss(buf, sizeof(buf));
--          result = ss.vscan(fmt, (_IO_va_list)args);
-+          result = vsscanf(buf, fmt, args);
-       }
-     }
-     va_end(args);
diff --git a/sys-libs/ncurses/ncurses-5.3-r1.ebuild b/sys-libs/ncurses/ncurses-5.3-r1.ebuild
deleted file mode 100644 (file)
index 08be299..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-# Copyright 1999-2004 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-r1.ebuild,v 1.20 2004/02/22 12:34:56 mr_bones_ Exp $
-
-inherit eutils flag-o-matic
-filter-flags -fno-exceptions
-
-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 mips"
-IUSE="debug"
-
-DEPEND="virtual/glibc"
-
-src_compile() {
-       [ `use debug` ] && 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 "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
-}
diff --git a/sys-libs/ncurses/ncurses-5.3-r2.ebuild b/sys-libs/ncurses/ncurses-5.3-r2.ebuild
deleted file mode 100644 (file)
index 38db1c7..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-# Copyright 1999-2004 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.16 2004/02/22 12:34:56 mr_bones_ Exp $
-
-inherit eutils flag-o-matic gnuconfig
-filter-flags -fno-exceptions
-
-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="amd64 x86 ppc sparc alpha hppa mips"
-IUSE="debug"
-
-DEPEND="virtual/glibc"
-
-src_unpack() {
-       unpack ${A}
-       epatch ${FILESDIR}/ncurses-5.3-xterm.patch
-}
-
-src_compile() {
-       [ `use debug` ] && myconf="${myconf} --without-debug"
-
-       # Detect mips systems
-       use mips && gnuconfig_update
-
-       # 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 "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
-}
diff --git a/sys-libs/ncurses/ncurses-5.3-r3.ebuild b/sys-libs/ncurses/ncurses-5.3-r3.ebuild
deleted file mode 100644 (file)
index 6466b74..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright 1999-2004 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-r3.ebuild,v 1.7 2004/02/22 12:34:56 mr_bones_ Exp $
-
-inherit eutils flag-o-matic gnuconfig
-filter-flags -fno-exceptions
-
-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="~amd64 ~x86 ~ppc ~sparc ~alpha ~hppa ~mips"
-IUSE="debug"
-
-DEPEND="virtual/glibc"
-
-src_unpack() {
-       unpack ${A}
-       epatch ${FILESDIR}/ncurses-5.3-xterm.patch
-}
-
-src_compile() {
-       [ `use debug` ] && myconf="${myconf} --without-debug"
-
-       # Detect mips systems
-       use mips && gnuconfig_update
-
-       # 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 "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
-               # Install xterm-debian terminfo entry to satisfy bug #18486
-               LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${D}/usr/lib:${D}/lib \
-                       TERMINFO=${D}/usr/share/terminfo \
-                       ${D}/usr/bin/tic ${FILESDIR}/xterm-debian.ti
-
-               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
-}
diff --git a/sys-libs/ncurses/ncurses-5.3-r4.ebuild b/sys-libs/ncurses/ncurses-5.3-r4.ebuild
deleted file mode 100644 (file)
index ea6c97e..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-# Copyright 1999-2004 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-r4.ebuild,v 1.14 2004/02/22 12:34:56 mr_bones_ Exp $
-
-inherit eutils flag-o-matic 64-bit gnuconfig
-filter-flags -fno-exceptions
-
-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="amd64 ~x86 ppc ~sparc ~alpha hppa ~mips ia64 ppc64"
-IUSE="debug"
-
-DEPEND="virtual/glibc"
-
-src_unpack() {
-       unpack ${A}
-       epatch ${FILESDIR}/ncurses-5.3-xterm.patch
-}
-
-src_compile() {
-       [ `use debug` ] && myconf="${myconf} --without-debug"
-
-       # Shared objects are compiled properly with -fPIC, but
-       # standard libs also require this.
-       64-bit && append-flags -fPIC
-
-       # Detect mips systems
-       use mips && gnuconfig_update
-
-       # 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 "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 || die "gen_usr_ldscript failed"
-
-       # 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
-               # Install xterm-debian terminfo entry to satisfy bug #18486
-               LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${D}/usr/lib:${D}/lib \
-                       TERMINFO=${D}/usr/share/terminfo \
-                       ${D}/usr/bin/tic ${FILESDIR}/xterm-debian.ti
-
-               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
-}
index 8596669dd629252ecae5740f79247c8c1bce670d..9e0152fcb4a4df68b432016d8c925e60fb62e668 100644 (file)
@@ -1,9 +1,8 @@
 # Copyright 1999-2004 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r1.ebuild,v 1.10 2004/04/03 00:48:42 avenj Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r1.ebuild,v 1.11 2004/04/13 18:36:59 vapier Exp $
 
 inherit eutils flag-o-matic 64-bit gnuconfig
-filter-flags -fno-exceptions
 
 DESCRIPTION="Linux console display library"
 HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
@@ -32,7 +31,9 @@ src_unpack() {
 src_compile() {
        local myconf=
 
-       [ -n "`use debug`" ] || myconf="${myconf} --without-debug"
+       filter-flags -fno-exceptions
+
+       use debug || myconf="${myconf} --without-debug"
 
        # Shared objects are compiled properly with -fPIC, but
        # standard libs also require this.
@@ -63,10 +64,10 @@ src_compile() {
                --with-shared \
                --with-rcs-ids \
                --without-ada \
-               ${myconf} || die "configure failed"
+               ${myconf} \
+               || die "configure failed"
 
-       # do not work with -j2 on P4 - <azarah@gentoo.org> (23 Oct 2002)
-       make || die "make failed"
+       emake || die "make failed"
 }
 
 src_install() {
@@ -104,7 +105,7 @@ src_install() {
        dodir /etc/env.d
        echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > ${D}/etc/env.d/50ncurses
 
-       if [ -n "`use build`" ]
+       if use build
        then
                cd ${D}
                rm -rf usr/share/man
diff --git a/sys-libs/ncurses/ncurses-5.4.ebuild b/sys-libs/ncurses/ncurses-5.4.ebuild
deleted file mode 100644 (file)
index 9531171..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-# Copyright 1999-2004 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4.ebuild,v 1.9 2004/04/03 00:48:42 avenj Exp $
-
-inherit eutils flag-o-matic 64-bit gnuconfig
-filter-flags -fno-exceptions
-
-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 ~mips amd64 ia64 ppc64 s390"
-IUSE="debug"
-
-DEPEND="virtual/glibc"
-
-src_unpack() {
-       unpack ${A}
-
-       cd ${S}
-       epatch ${FILESDIR}/${P}-xterm.patch
-       # Bug #42336.
-       epatch ${FILESDIR}/${P}-share-sed.patch
-}
-
-src_compile() {
-       local myconf=
-
-       [ -n "`use debug`" ] || myconf="${myconf} --without-debug"
-
-       # Shared objects are compiled properly with -fPIC, but
-       # standard libs also require this.
-       64-bit && append-flags -fPIC
-
-       # Detect mips systems
-       use mips && gnuconfig_update
-
-       # 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"
-
-
-       # We need the basic terminfo files in /etc, bug #37026.  We will
-       # add '--with-terminfo-dirs' and then populate /etc/terminfo in
-       # src_install() ...
-       econf \
-               --libdir=/lib \
-               --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \
-               --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 "make failed"
-}
-
-src_install() {
-       local x=
-
-       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 || die "gen_usr_ldscript failed"
-
-       # We need the basic terminfo files in /etc, bug #37026
-       einfo "Installing basic terminfo files in /etc..."
-       for x in dumb linux rxvt screen sun vt{52,100,102,220} xterm
-       do
-               local termfile="$(find "${D}/usr/share/terminfo/" -name "${x}" 2>/dev/null)"
-               local basedir="$(basename $(dirname "${termfile}"))"
-
-               if [ -n "${termfile}" ]
-               then
-                       dodir /etc/terminfo/${basedir}
-                       mv ${termfile} ${D}/etc/terminfo/${basedir}/
-                       dosym ../../../../etc/terminfo/${basedir}/${x} \
-                               /usr/share/terminfo/${basedir}/${x}
-               fi
-       done
-
-       # Build fails to create this ...
-       dosym ../share/terminfo /usr/lib/terminfo
-
-       dodir /etc/env.d
-       echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > ${D}/etc/env.d/50ncurses
-
-       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.
-               # cd ${D}/usr/lib; rm *.a
-       else
-               # Install xterm-debian terminfo entry to satisfy bug #18486
-               LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${D}/usr/lib:${D}/lib \
-                       TERMINFO=${D}/usr/share/terminfo \
-                       ${D}/usr/bin/tic ${FILESDIR}/xterm-debian.ti
-
-               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.[23]
-       rm -f /usr/lib/lib{form,menu,panel}.so.5.[23]
-}