diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-11-03 03:55:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-11-03 03:55:12 +0000 |
commit | 0233eb4ff0b383adefba20eec53320b9da5ee14c (patch) | |
tree | 400c2837f7b9a4fb87582ba59a0254f9acf44ddb /sys-libs | |
parent | stable amd64, bug 245348 (diff) | |
download | gentoo-2-0233eb4ff0b383adefba20eec53320b9da5ee14c.tar.gz gentoo-2-0233eb4ff0b383adefba20eec53320b9da5ee14c.tar.bz2 gentoo-2-0233eb4ff0b383adefba20eec53320b9da5ee14c.zip |
old
(Portage version: 2.2_rc12/cvs/Linux 2.6.27.4 x86_64)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch | 17 | ||||
-rw-r--r-- | sys-libs/ncurses/files/ncurses-5.4-share-sed.patch | 13 | ||||
-rw-r--r-- | sys-libs/ncurses/files/ncurses-5.4-xterm.patch | 13 | ||||
-rw-r--r-- | sys-libs/ncurses/files/ncurses-5.5-gfbsd.patch | 74 | ||||
-rw-r--r-- | sys-libs/ncurses/files/ncurses-5.5-terminfo-gnome.patch | 16 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.4-r6.ebuild | 157 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.5-r3.ebuild | 160 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.6-r1.ebuild | 146 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-5.6.ebuild | 146 |
9 files changed, 0 insertions, 742 deletions
diff --git a/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch b/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch deleted file mode 100644 index 60c4b716e2de..000000000000 --- a/sys-libs/ncurses/files/ncurses-5.4-c++-templates.patch +++ /dev/null @@ -1,17 +0,0 @@ -Fix building with -fno-implicit-templates. - -http://bugs.gentoo.org/show_bug.cgi?id=90819 - -Patch by Mike Frysinger (C++ sucks btw) - ---- c++/demo.cc -+++ c++/demo.cc -@@ -152,6 +152,8 @@ - return FALSE; - } - }; -+template class MyAction<UserData>; -+template class NCURSES_IMPEXP NCursesUserItem<UserData>; - - class QuitItem : public NCursesMenuItem - { diff --git a/sys-libs/ncurses/files/ncurses-5.4-share-sed.patch b/sys-libs/ncurses/files/ncurses-5.4-share-sed.patch deleted file mode 100644 index 0f9bc1cf6d9e..000000000000 --- a/sys-libs/ncurses/files/ncurses-5.4-share-sed.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -urN ncurses-5.3/misc/run_tic.in ncurses-5.3.share/misc/run_tic.in ---- ncurses-5.3/misc/run_tic.in 2001-10-14 08:44:33.000000000 +0800 -+++ ncurses-5.3.share/misc/run_tic.in 2004-02-21 15:46:09.000000000 +0800 -@@ -81,7 +81,8 @@ - umask 022 - - # Construct the name of the old (obsolete) pathname, e.g., /usr/lib/terminfo. --TICDIR=`echo $TERMINFO | sed -e 's%/share/%/lib/%'` -+# make sure only last share directory in the $TERMINFO path is changed to lib -+TICDIR=`echo $TERMINFO | sed -e 's%/share/terminfo$%/lib/terminfo%'` - - # Remove the old terminfo stuff; we don't care if it existed before, and it - # would generate a lot of confusing error messages if we tried to overwrite it. diff --git a/sys-libs/ncurses/files/ncurses-5.4-xterm.patch b/sys-libs/ncurses/files/ncurses-5.4-xterm.patch deleted file mode 100644 index a2515e48de5a..000000000000 --- a/sys-libs/ncurses/files/ncurses-5.4-xterm.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- ncurses-5.3/misc/terminfo.src.orig 2002-10-05 20:40:53.000000000 +0200 -+++ ncurses-5.3/misc/terminfo.src 2003-05-23 15:50:57.000000000 +0200 -@@ -2922,8 +2922,9 @@ - - # This is xterm for ncurses. - xterm|xterm terminal emulator (X Window System), -- use=xterm-r6, -+# use=xterm-r6, - # use=xterm-xfree86, -+ use=xterm-xf86-v43, - - # These entries allow access to the X titlebar and icon name as a status line. - # Note that twm (and possibly window managers descended from it such as tvtwm, diff --git a/sys-libs/ncurses/files/ncurses-5.5-gfbsd.patch b/sys-libs/ncurses/files/ncurses-5.5-gfbsd.patch deleted file mode 100644 index 02442bacec24..000000000000 --- a/sys-libs/ncurses/files/ncurses-5.5-gfbsd.patch +++ /dev/null @@ -1,74 +0,0 @@ -Index: ncurses-5.5/aclocal.m4 -=================================================================== ---- ncurses-5.5.orig/aclocal.m4 -+++ ncurses-5.5/aclocal.m4 -@@ -3507,7 +3507,7 @@ AC_DEFUN([CF_SHARED_OPTS], - MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $[@]` -o $[@]' - cf_cv_rm_so_locs=yes - ;; -- linux*|gnu*|k*bsd*-gnu) -+ linux*|gnu*|k*bsd*-gnu|freebsd*|dragonfly*) - if test "$DFT_LWR_MODEL" = "shared" ; then - LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib" - LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" -@@ -3523,23 +3523,6 @@ AC_DEFUN([CF_SHARED_OPTS], - CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" - MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $[@].$(ABI_VERSION)` -o $[@]' - ;; -- freebsd[[45]]*) -- CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" -- MK_SHARED_LIB='$(LD) -Bshareable -soname=`basename $[@]` -o $[@]' -- test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel -- --# This doesn't work - I keep getting spurious references to needing --# libncurses.so.5.3 when ldd says it's resolved. LOCAL_LDFLAGS2 seems to be --# no longer used anyway. And the rpath logic isn't relative - so I have to --# add the local and install lib-directories: --# --# if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then --# LOCAL_LDFLAGS="-rpath `pwd`/lib" --# LOCAL_LDFLAGS2="-rpath \$(libdir) $LOCAL_LDFLAGS" --# cf_ld_rpath_opt="-rpath " --# EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS" --# fi -- ;; - openbsd*|freebsd*) - CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" - MK_SHARED_LIB='$(LD) -Bshareable -o $[@]' -Index: ncurses-5.5/configure -=================================================================== ---- ncurses-5.5.orig/configure -+++ ncurses-5.5/configure -@@ -5061,7 +5061,7 @@ echo "${ECHO_T}$CC_SHARED_OPTS" >&6 - MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@' - cf_cv_rm_so_locs=yes - ;; -- linux*|gnu*|k*bsd*-gnu) -+ linux*|gnu*|k*bsd*-gnu|freebsd*|dragonfly*) - if test "$DFT_LWR_MODEL" = "shared" ; then - LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib" - LOCAL_LDFLAGS2="$LOCAL_LDFLAGS" -@@ -5077,23 +5077,6 @@ echo "${ECHO_T}$CC_SHARED_OPTS" >&6 - CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" - MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@.$(ABI_VERSION)` -o $@' - ;; -- freebsd[45]*) -- CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" -- MK_SHARED_LIB='$(LD) -Bshareable -soname=`basename $@` -o $@' -- test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel -- --# This doesn't work - I keep getting spurious references to needing --# libncurses.so.5.3 when ldd says it's resolved. LOCAL_LDFLAGS2 seems to be --# no longer used anyway. And the rpath logic isn't relative - so I have to --# add the local and install lib-directories: --# --# if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then --# LOCAL_LDFLAGS="-rpath `pwd`/lib" --# LOCAL_LDFLAGS2="-rpath \$(libdir) $LOCAL_LDFLAGS" --# cf_ld_rpath_opt="-rpath " --# EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS" --# fi -- ;; - openbsd*|freebsd*) - CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC" - MK_SHARED_LIB='$(LD) -Bshareable -o $@' diff --git a/sys-libs/ncurses/files/ncurses-5.5-terminfo-gnome.patch b/sys-libs/ncurses/files/ncurses-5.5-terminfo-gnome.patch deleted file mode 100644 index 43c4e4b30f81..000000000000 --- a/sys-libs/ncurses/files/ncurses-5.5-terminfo-gnome.patch +++ /dev/null @@ -1,16 +0,0 @@ -http://bugs.gentoo.org/122566 - ---- ncurses-5.5/misc/terminfo.src -+++ ncurses-5.5/misc/terminfo.src -@@ -3327,7 +3327,10 @@ gnome-rh90|GNOME Terminal, - vpa=\E[%i%p1%dd, use=xterm+pcfkeys, use=gnome-rh80, - - gnome|GNOME Terminal, -- rs2=\E7\E[r\E8\E[m\E[?7h\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h, -+ rs2=\E7\E[r\E8\E[m\E[?7h\E[!p\E[?1;3;4;6l\E[4l\E>\E[?1000l\E[?25h, -+ rs1=\Ec, -+ kDN=\EO2B,kDN5=\EO5B,kDN6=\EO6B, kUP=\EO2A,kUP5=\EO5A,kUP6=\EO6A, -+ kLFT5=\EO5D,kLFT6=\EO6D, kRIT5=\EO5C,kRIT6=\EO6C, - use=gnome-rh90, - - # This is kvt 0-18.7, shipped with Redhat 6.0 (though whether it supports bce diff --git a/sys-libs/ncurses/ncurses-5.4-r6.ebuild b/sys-libs/ncurses/ncurses-5.4-r6.ebuild deleted file mode 100644 index 87e17da721a2..000000000000 --- a/sys-libs/ncurses/ncurses-5.4-r6.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r6.ebuild,v 1.14 2007/02/21 17:26:10 vapier Exp $ - -inherit eutils flag-o-matic toolchain-funcs - -DESCRIPTION="console display library" -HOMEPAGE="http://www.gnu.org/software/ncurses/" -SRC_URI="mirror://gnu/ncurses/${P}.tar.gz" - -LICENSE="MIT" -SLOT="5" -KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86" -IUSE="gpm build bootstrap debug doc minimal unicode nocxx" - -DEPEND="gpm? ( sys-libs/gpm )" -RDEPEND="${DEPEND}" - -pkg_setup() { - # check for unicode use flag, see bug #78313 - if ! use unicode && [[ -f ${ROOT}/usr/lib/libncursesw.so ]] && [[ ${COMPILE_NCURSES} != "true" ]] ; then - ewarn "Remerging ncurses without unicode in USE flags may break your system." - ewarn "For more information see http://bugs.gentoo.org/78313" - ewarn "If you still want continue, export COMPILE_NCURSES to 'true'." - die "refusing to rebuild ncurses w/out unicode" - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${P}-xterm.patch - epatch "${FILESDIR}"/${P}-share-sed.patch #42336 - epatch "${FILESDIR}"/${P}-c++-templates.patch #90819 -} - -src_compile() { - tc-export BUILD_CC - filter-flags -fno-exceptions - - # Protect the user from themselves #115036 - unset TERMINFO - - # 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. - local myconf="" - ( use build || use bootstrap || use nocxx ) \ - && myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" - - # First we build the regular ncurses ... - mkdir "${WORKDIR}"/narrowc - cd "${WORKDIR}"/narrowc - do_compile ${myconf} - - # Then we build the UTF-8 version - if use unicode ; then - mkdir "${WORKDIR}"/widec - cd "${WORKDIR}"/widec - do_compile ${myconf} --enable-widec --includedir=/usr/include/ncursesw - fi -} -do_compile() { - ECONF_SOURCE=${S} - - # 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=/$(get_libdir) \ - --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \ - --disable-termcap \ - --with-shared \ - --with-rcs-ids \ - --without-ada \ - --enable-symlinks \ - --program-prefix="" \ - $(use_with debug) \ - $(use_with gpm) \ - "$@" \ - || die "configure failed" - - # A little hack to fix parallel builds ... they break when - # generating sources so if we generate the sources first (in - # non-parallel), we can then build the rest of the package - # in parallel. This is not really a perf hit since the source - # generation is quite small. -vapier - emake -j1 sources || die "make sources failed" - emake || die "make failed" -} - -src_install() { - # install unicode version first so that the non-unicode - # files overwrite the unicode versions - if use unicode ; then - cd "${WORKDIR}"/widec - sed -i '2iexit 0' man/edit_man.sh - make DESTDIR="${D}" install || die "make widec install failed" - fi - cd "${WORKDIR}"/narrowc - make DESTDIR="${D}" install || die "make narrowc install failed" - - # Move static and extraneous ncurses libraries out of /lib - dodir /usr/$(get_libdir) - cd "${D}"/$(get_libdir) - mv libform* libmenu* libpanel* *.a "${D}"/usr/$(get_libdir)/ - gen_usr_ldscript lib{,n}curses.so - use unicode && gen_usr_ldscript lib{,n}cursesw.so - - # We need the basic terminfo files in /etc, bug #37026 - einfo "Installing basic terminfo files in /etc..." - for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} \ - xterm xterm-color xterm-xfree86 - 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/$(get_libdir)/terminfo - - echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses - doenvd "${T}"/50ncurses - - if use build ; then - cd "${D}" - rm -rf usr/share/man - cd usr/share/terminfo - cp -pPR l/linux n/nxterm v/vt100 "${T}" - rm -rf * - mkdir l x v - cp -pPR "${T}"/linux l - cp -pPR "${T}"/nxterm x/xterm - cp -pPR "${T}"/vt100 v - else - use minimal && rm -r "${D}"/usr/share/terminfo - cd "${S}" - dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc - use doc && dohtml -r doc/html/ - fi -} - -pkg_preinst() { - use unicode || preserve_old_lib /$(get_libdir)/libncursesw.so.5 -} - -pkg_postinst() { - use unicode || preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5 -} diff --git a/sys-libs/ncurses/ncurses-5.5-r3.ebuild b/sys-libs/ncurses/ncurses-5.5-r3.ebuild deleted file mode 100644 index 4c552c870623..000000000000 --- a/sys-libs/ncurses/ncurses-5.5-r3.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.5-r3.ebuild,v 1.15 2007/04/30 08:59:14 grobian Exp $ - -inherit eutils flag-o-matic toolchain-funcs - -MY_PV=${PV:0:3} -PV_SNAP=${PV:4} -MY_P=${PN}-${MY_PV} -DESCRIPTION="console display library" -HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/" -SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz" - -LICENSE="MIT" -SLOT="5" -KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" -IUSE="bootstrap build debug doc gpm minimal nocxx trace unicode" - -DEPEND="gpm? ( sys-libs/gpm )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${MY_P} - -src_unpack() { - unpack ${A} - cd "${S}" - [[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh - - epatch "${FILESDIR}"/${P}-gfbsd.patch - epatch "${FILESDIR}"/${P}-terminfo-gnome.patch -} - -src_compile() { - tc-export BUILD_CC - - # Protect the user from themselves #115036 - unset TERMINFO - - # 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. - local myconf="" - ( use build || use bootstrap || use nocxx ) \ - && myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" - - # First we build the regular ncurses ... - mkdir "${WORKDIR}"/narrowc - cd "${WORKDIR}"/narrowc - do_compile ${myconf} - - # Then we build the UTF-8 version - if use unicode ; then - mkdir "${WORKDIR}"/widec - cd "${WORKDIR}"/widec - do_compile ${myconf} --enable-widec --includedir=/usr/include/ncursesw - fi -} -do_compile() { - ECONF_SOURCE=${S} - - # We need the basic terminfo files in /etc, bug #37026. We will - # add '--with-terminfo-dirs' and then populate /etc/terminfo in - # src_install() ... - # The chtype/mmask-t settings below are to retain ABI compat - # with ncurses-5.4 so dont change em ! - econf \ - --libdir="/$(get_libdir)" \ - --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \ - --disable-termcap \ - --with-shared \ - --with-rcs-ids \ - --without-ada \ - --enable-symlinks \ - --enable-const \ - --with-chtype='long' \ - --with-mmask-t='long' \ - --with-manpage-format=normal \ - $(use_with debug) \ - $(use_with gpm) \ - $(use_with trace) \ - "$@" \ - || die "configure failed" - - # A little hack to fix parallel builds ... they break when - # generating sources so if we generate the sources first (in - # non-parallel), we can then build the rest of the package - # in parallel. This is not really a perf hit since the source - # generation is quite small. -vapier - emake -j1 sources || die "make sources failed" - emake || die "make failed" -} - -src_install() { - # install unicode version first so that the non-unicode - # files overwrite the unicode versions - if use unicode ; then - cd "${WORKDIR}"/widec - make DESTDIR="${D}" install || die "make widec install failed" - fi - cd "${WORKDIR}"/narrowc - make DESTDIR="${D}" install || die "make narrowc install failed" - - # Move static and extraneous ncurses libraries out of /lib - dodir /usr/$(get_libdir) - cd "${D}"/$(get_libdir) - mv lib{form,menu,panel}.so* *.a "${D}"/usr/$(get_libdir)/ - gen_usr_ldscript lib{,n}curses.so - if use unicode ; then - mv lib{form,menu,panel}w.so* "${D}"/usr/$(get_libdir)/ - gen_usr_ldscript lib{,n}cursesw.so - fi - - # We need the basic terminfo files in /etc, bug #37026 - einfo "Installing basic terminfo files in /etc..." - for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} \ - xterm xterm-color xterm-xfree86 - 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/$(get_libdir)/terminfo - - echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses - doenvd "${T}"/50ncurses - - if use build ; then - cd "${D}" - rm -rf usr/share/man - cd usr/share/terminfo - cp -pPR l/linux n/nxterm v/vt100 "${T}" - rm -rf * - mkdir l x v - cp -pPR "${T}"/linux l - cp -pPR "${T}"/nxterm x/xterm - cp -pPR "${T}"/vt100 v - else - use minimal && rm -r "${D}"/usr/share/terminfo - cd "${S}" - dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc - use doc && dohtml -r doc/html/ - fi -} - -pkg_preinst() { - use unicode || preserve_old_lib /$(get_libdir)/libncursesw.so.5 -} - -pkg_postinst() { - use unicode || preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5 -} diff --git a/sys-libs/ncurses/ncurses-5.6-r1.ebuild b/sys-libs/ncurses/ncurses-5.6-r1.ebuild deleted file mode 100644 index 99626f682e77..000000000000 --- a/sys-libs/ncurses/ncurses-5.6-r1.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.6-r1.ebuild,v 1.10 2007/07/23 01:40:58 kumba Exp $ - -inherit eutils flag-o-matic toolchain-funcs - -MY_PV=${PV:0:3} -PV_SNAP=${PV:4} -MY_P=${PN}-${MY_PV} -DESCRIPTION="console display library" -HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/" -SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz - ftp://invisible-island.net/ncurses/${PV}/${P}-coverity.patch.gz" - -LICENSE="MIT" -SLOT="5" -KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" -IUSE="bootstrap build debug doc gpm minimal nocxx trace unicode" - -DEPEND="gpm? ( sys-libs/gpm )" - -S=${WORKDIR}/${MY_P} - -src_unpack() { - unpack ${A} - cd "${S}" - [[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh - epatch "${WORKDIR}"/${P}-coverity.patch - epatch "${FILESDIR}"/${PN}-5.6-gfbsd.patch -} - -src_compile() { - tc-export BUILD_CC - - # Protect the user from themselves #115036 - unset TERMINFO - - # 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. - local myconf="" - ( use build || use bootstrap || use nocxx ) \ - && myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" - - # First we build the regular ncurses ... - mkdir "${WORKDIR}"/narrowc - cd "${WORKDIR}"/narrowc - do_compile ${myconf} - - # Then we build the UTF-8 version - if use unicode ; then - mkdir "${WORKDIR}"/widec - cd "${WORKDIR}"/widec - do_compile ${myconf} --enable-widec --includedir=/usr/include/ncursesw - fi -} -do_compile() { - ECONF_SOURCE=${S} - - # We need the basic terminfo files in /etc, bug #37026. We will - # add '--with-terminfo-dirs' and then populate /etc/terminfo in - # src_install() ... - # The chtype/mmask-t settings below are to retain ABI compat - # with ncurses-5.4 so dont change em ! - econf \ - --libdir="/$(get_libdir)" \ - --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \ - --disable-termcap \ - --with-shared \ - --with-rcs-ids \ - --enable-symlinks \ - --enable-const \ - --with-chtype='long' \ - --with-mmask-t='long' \ - --with-manpage-format=normal \ - $(use_with debug) \ - $(use_with gpm) \ - $(use_with trace) \ - "$@" \ - || die "configure failed" - - # A little hack to fix parallel builds ... they break when - # generating sources so if we generate the sources first (in - # non-parallel), we can then build the rest of the package - # in parallel. This is not really a perf hit since the source - # generation is quite small. -vapier - emake -j1 sources || die "make sources failed" - emake || die "make failed" -} - -src_install() { - # install unicode version second so that the binaries in /usr/bin - # support both wide and narrow - cd "${WORKDIR}"/narrowc - emake DESTDIR="${D}" install || die "make narrowc install failed" - if use unicode ; then - cd "${WORKDIR}"/widec - emake DESTDIR="${D}" install || die "make widec install failed" - fi - - # Move static and extraneous ncurses libraries out of /lib - dodir /usr/$(get_libdir) - cd "${D}"/$(get_libdir) - mv lib{form,menu,panel}.so* *.a "${D}"/usr/$(get_libdir)/ - gen_usr_ldscript lib{,n}curses.so - if use unicode ; then - mv lib{form,menu,panel}w.so* "${D}"/usr/$(get_libdir)/ - gen_usr_ldscript lib{,n}cursesw.so - fi - - # We need the basic terminfo files in /etc, bug #37026 - einfo "Installing basic terminfo files in /etc..." - for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} \ - xterm xterm-color xterm-xfree86 - 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/$(get_libdir)/terminfo - - echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses - doenvd "${T}"/50ncurses - - use minimal && rm -r "${D}"/usr/share/terminfo - cd "${S}" - dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc - use doc && dohtml -r doc/html/ -} - -pkg_preinst() { - use unicode || preserve_old_lib /$(get_libdir)/libncursesw.so.5 -} - -pkg_postinst() { - use unicode || preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5 -} diff --git a/sys-libs/ncurses/ncurses-5.6.ebuild b/sys-libs/ncurses/ncurses-5.6.ebuild deleted file mode 100644 index 300c28d6fdc8..000000000000 --- a/sys-libs/ncurses/ncurses-5.6.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.6.ebuild,v 1.13 2007/04/30 08:59:14 grobian Exp $ - -inherit eutils flag-o-matic toolchain-funcs - -MY_PV=${PV:0:3} -PV_SNAP=${PV:4} -MY_P=${PN}-${MY_PV} -DESCRIPTION="console display library" -HOMEPAGE="http://www.gnu.org/software/ncurses/ http://dickey.his.com/ncurses/" -SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz" - -LICENSE="MIT" -SLOT="5" -KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd" -IUSE="bootstrap build debug doc gpm minimal nocxx trace unicode" - -DEPEND="gpm? ( sys-libs/gpm )" -RDEPEND="${DEPEND}" - -S=${WORKDIR}/${MY_P} - -src_unpack() { - unpack ${A} - cd "${S}" - [[ -n ${PV_SNAP} ]] && epatch "${WORKDIR}"/${MY_P}-${PV_SNAP}-patch.sh - epatch "${FILESDIR}"/${PN}-5.6-gfbsd.patch -} - -src_compile() { - tc-export BUILD_CC - - # Protect the user from themselves #115036 - unset TERMINFO - - # 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. - local myconf="" - ( use build || use bootstrap || use nocxx ) \ - && myconf="${myconf} --without-cxx --without-cxx-binding --without-ada" - - # First we build the regular ncurses ... - mkdir "${WORKDIR}"/narrowc - cd "${WORKDIR}"/narrowc - do_compile ${myconf} - - # Then we build the UTF-8 version - if use unicode ; then - mkdir "${WORKDIR}"/widec - cd "${WORKDIR}"/widec - do_compile ${myconf} --enable-widec --includedir=/usr/include/ncursesw - fi -} -do_compile() { - ECONF_SOURCE=${S} - - # We need the basic terminfo files in /etc, bug #37026. We will - # add '--with-terminfo-dirs' and then populate /etc/terminfo in - # src_install() ... - # The chtype/mmask-t settings below are to retain ABI compat - # with ncurses-5.4 so dont change em ! - econf \ - --libdir="/$(get_libdir)" \ - --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \ - --disable-termcap \ - --with-shared \ - --with-rcs-ids \ - --without-ada \ - --enable-symlinks \ - --enable-const \ - --with-chtype='long' \ - --with-mmask-t='long' \ - --with-manpage-format=normal \ - $(use_with debug) \ - $(use_with gpm) \ - $(use_with trace) \ - "$@" \ - || die "configure failed" - - # A little hack to fix parallel builds ... they break when - # generating sources so if we generate the sources first (in - # non-parallel), we can then build the rest of the package - # in parallel. This is not really a perf hit since the source - # generation is quite small. -vapier - emake -j1 sources || die "make sources failed" - emake || die "make failed" -} - -src_install() { - # install unicode version second so that the binaries in /usr/bin - # support both wide and narrow - cd "${WORKDIR}"/narrowc - emake DESTDIR="${D}" install || die "make narrowc install failed" - if use unicode ; then - cd "${WORKDIR}"/widec - emake DESTDIR="${D}" install || die "make widec install failed" - fi - - # Move static and extraneous ncurses libraries out of /lib - dodir /usr/$(get_libdir) - cd "${D}"/$(get_libdir) - mv lib{form,menu,panel}.so* *.a "${D}"/usr/$(get_libdir)/ - gen_usr_ldscript lib{,n}curses.so - if use unicode ; then - mv lib{form,menu,panel}w.so* "${D}"/usr/$(get_libdir)/ - gen_usr_ldscript lib{,n}cursesw.so - fi - - # We need the basic terminfo files in /etc, bug #37026 - einfo "Installing basic terminfo files in /etc..." - for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} \ - xterm xterm-color xterm-xfree86 - 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/$(get_libdir)/terminfo - - echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" > "${T}"/50ncurses - doenvd "${T}"/50ncurses - - use minimal && rm -r "${D}"/usr/share/terminfo - cd "${S}" - dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc - use doc && dohtml -r doc/html/ -} - -pkg_preinst() { - use unicode || preserve_old_lib /$(get_libdir)/libncursesw.so.5 -} - -pkg_postinst() { - use unicode || preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5 -} |