commit:     79f380f5d01e5e782fef262175deebac8205ae49
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 30 19:44:10 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Dec 30 20:02:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79f380f5

sys-libs/ncurses: drop versions

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-libs/ncurses/Manifest                          |   1 -
 sys-libs/ncurses/files/ncurses-5.7-nongnu.patch    |  11 -
 .../ncurses/files/ncurses-6.0-pkg-config.patch     |  14 -
 .../files/ncurses-6.0-rxvt-unicode-9.15.patch      | 191 ---------
 sys-libs/ncurses/files/ncurses-6.0-ticlib.patch    |  15 -
 .../ncurses-6.2_p20210123-cppflags-cross.patch     |  35 --
 sys-libs/ncurses/ncurses-6.3_p20220423.ebuild      | 405 ------------------
 sys-libs/ncurses/ncurses-6.3_p20220924-r10.ebuild  | 476 ---------------------
 sys-libs/ncurses/ncurses-6.3_p20220924-r2.ebuild   | 474 --------------------
 9 files changed, 1622 deletions(-)

diff --git a/sys-libs/ncurses/Manifest b/sys-libs/ncurses/Manifest
index ddb5151fe377..26c0085100be 100644
--- a/sys-libs/ncurses/Manifest
+++ b/sys-libs/ncurses/Manifest
@@ -120,5 +120,4 @@ DIST ncurses-6.3-20221203.patch.gz 42388 BLAKE2B 
183adbb378793faef9b7e1aafe0a1ac
 DIST ncurses-6.3-20221203.patch.gz.asc 729 BLAKE2B 
a663141e389946fb6967c61c0b6b8fbafdb98f6ff2513bf382a5210e8d403b4bb5c277d1b102c893c1f33d98805cf5f0da0012c68dbabbb516364ba793975930
 SHA512 
70b8ef161d2d98a752fa37d3854954aea13b909830b8da9d54ed79aa3148570651b4b30d2baef1e5c4e2f47e9287e758187443508cf359f0f8392f3edcfd9d09
 DIST ncurses-6.3.tar.gz 3583550 BLAKE2B 
b2c174ac48d587b4d3aa054f04e4ec8bffd8a657a4aff5f090104965c741901e600712c8f8e5e98f3b8a26bc558996a1e14a746f113854832853b855e9d406c3
 SHA512 
5373f228cba6b7869210384a607a2d7faecfcbfef6dbfcd7c513f4e84fbd8bcad53ac7db2e7e84b95582248c1039dcfc7c4db205a618f7da22a166db482f0105
 DIST ncurses-6.3.tar.gz.sig 438 BLAKE2B 
d7f9852292110fe7a048a9e38611ea06564b5142cb4cbeb8d99bba752d5df8eeffa3b57e5ca315c14024520bc008b30650e99669c995dca05a798399a0c85d39
 SHA512 
b9a2a25e0b1854c272bf89c610c81fc0ba061f0296eca5c0079a79cfe310e44eb16c46eb5a0dd018f1ca9114d569c9d5087a2b8e60b0344f1eb97f7c5addafc6
-DIST ncurses-6.3_p20220924-patches.tar.xz 63272 BLAKE2B 
94b617ba8e949bd7b78047bb1a99acb9f5e0e456d4aebfe3d81b405c491071be7aaeb90df68d144c80a7da6a02a916ba3b2c553ecaf7a8a74214860743b7b783
 SHA512 
7e55e96b94184a84a752a2b482d13c3aaccb41ade79d14569aad00534c03a80f2dbafc5460838b8d51271089c02c5f0da1a73e5a70bc0619217124ae1c647e20
 DIST ncurses-6.3_p20221203-patches.tar.xz 66988 BLAKE2B 
ea01eee64b0468fbd5b1a540103f88deff1669533d7b5187440a07ef969249fa664cf770ea8b0cce14b8d93fef9c4fc783c26df13699e205abebacb278d61766
 SHA512 
2cdadfbd9aed0f33a58150ba71a1a79a23f1590f82dc57a79fe7892bf9a1d86d4604d4c5224f11fdc7c133bcc8d8b60b075e1a493e8cb63743259f0b8d2b66f4

diff --git a/sys-libs/ncurses/files/ncurses-5.7-nongnu.patch 
b/sys-libs/ncurses/files/ncurses-5.7-nongnu.patch
deleted file mode 100644
index 3f4a40520009..000000000000
--- a/sys-libs/ncurses/files/ncurses-5.7-nongnu.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- ncurses-5.7/ncurses/curses.priv.h
-+++ ncurses-5.7/ncurses/curses.priv.h
-@@ -1452,6 +1452,8 @@ extern NCURSES_EXPORT(void) _nc_expanded
- 
- /* charable.c */
- #if USE_WIDEC_SUPPORT
-+#include <wchar.h>
-+
- extern NCURSES_EXPORT(bool) _nc_is_charable(wchar_t);
- extern NCURSES_EXPORT(int) _nc_to_char(wint_t);
- extern NCURSES_EXPORT(wint_t) _nc_to_widechar(int);

diff --git a/sys-libs/ncurses/files/ncurses-6.0-pkg-config.patch 
b/sys-libs/ncurses/files/ncurses-6.0-pkg-config.patch
deleted file mode 100644
index 6808319b9533..000000000000
--- a/sys-libs/ncurses/files/ncurses-6.0-pkg-config.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-disable the $PATH search for the PKG_CONFIG tool.  it isn't needed and just
-gets in the way when setting to a value that might not yet exist.
-
---- ncurses-6.0/configure
-+++ ncurses-6.0/configure
-@@ -3533,7 +3533,7 @@
- esac
- 
- test -z "$PKG_CONFIG" && PKG_CONFIG=none
--if test "$PKG_CONFIG" != none ; then
-+if false ; then
- 
- if test "x$prefix" != xNONE; then
-       cf_path_syntax="$prefix"

diff --git a/sys-libs/ncurses/files/ncurses-6.0-rxvt-unicode-9.15.patch 
b/sys-libs/ncurses/files/ncurses-6.0-rxvt-unicode-9.15.patch
deleted file mode 100644
index af3df941d699..000000000000
--- a/sys-libs/ncurses/files/ncurses-6.0-rxvt-unicode-9.15.patch
+++ /dev/null
@@ -1,191 +0,0 @@
-Add rxvt-unicode terminfo, required by rxvt-unicode to function properly.
-
-Providing this in ncurses makes it widely available, much better than having to
-install rxvt-unicode everywhere.
-
-http://bugs.gentoo.org/show_bug.cgi?id=192083
-
-This patch uses the updated rxvt-unicode-9.15 terminfo
-which includes 256 color support and fixes Gentoo bug 383871
-
-http://bugs.gentoo.org/show_bug.cgi?id=383871
-
---- ncurses-6.0/misc/terminfo.src
-+++ ncurses-6.0/misc/terminfo.src
-@@ -5214,6 +5214,176 @@
- rxvt-16color|rxvt with 16 colors like aixterm,
-       ncv#32, use=ibm+16color, use=rxvt,
- 
-+# From: Thomas Dickey <[email protected]> 04 Oct 1997
-+# Updated: Özgür Kesim <[email protected]> 02 Nov 1997
-+# Updated: Marc Lehmann <[email protected]>, 17 Feb 2005
-+# Updated: Marc Lehmann <[email protected]>, 04 Nov 2008: change init/reset 
sequences
-+rxvt-unicode|rxvt-unicode terminal (X Window System),
-+      am,
-+      bce,
-+      eo,
-+      km,
-+      msgr,
-+      xenl,
-+      hs,
-+      cols#80,
-+      it#8,
-+      lines#24,
-+      acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~-A.B+C\,D0EhFiG,
-+      bel=^G,
-+      blink=\E[5m,
-+      bold=\E[1m,
-+      civis=\E[?25l,
-+      clear=\E[H\E[2J,
-+      cnorm=\E[?25h,
-+      cr=^M,
-+      csr=\E[%i%p1%d;%p2%dr,
-+      cub=\E[%p1%dD,
-+      cub1=^H,
-+      cud=\E[%p1%dB,
-+      cud1=^J,
-+      cuf=\E[%p1%dC,
-+      cuf1=\E[C,
-+      cup=\E[%i%p1%d;%p2%dH,
-+      cuu=\E[%p1%dA,
-+      cuu1=\E[A,
-+      cvvis=\E[?25h,
-+      dch=\E[%p1%dP,
-+      dch1=\E[P,
-+      dl=\E[%p1%dM,
-+      dl1=\E[M,
-+      ed=\E[J,
-+      el=\E[K,
-+      el1=\E[1K,
-+      flash=\E[?5h$<20/>\E[?5l,
-+      home=\E[H,
-+      hpa=\E[%i%p1%dG,
-+      ht=^I,
-+      hts=\EH,
-+      ich=\E[%p1%d@,
-+      ich1=\E[@,
-+      il=\E[%p1%dL,
-+      il1=\E[L,
-+      ind=^J,
-+      is1=\E[\041p,
-+      is2=\E[r\E[m\E[2J\E[?7;25h\E[?1;3;4;5;6;9;66;1000;1001;1049l\E[4l,
-+      kDC=\E[3$,
-+      kIC=\E[2$,
-+      kEND=\E[8$,
-+      kHOM=\E[7$,
-+      kLFT=\E[d,
-+      kNXT=\E[6$,
-+      kPRV=\E[5$,
-+      kRIT=\E[c,
-+      kbs=\177,
-+      ka1=\EOw,
-+      ka3=\EOy,
-+      kb2=\EOu,
-+      kc1=\EOq,
-+      kc3=\EOs,
-+      kcbt=\E[Z,
-+      kcub1=\E[D,
-+      kcud1=\E[B,
-+      kcuf1=\E[C,
-+      kcuu1=\E[A,
-+      kdch1=\E[3~,
-+      kel=\E[8\^,
-+      kend=\E[8~,
-+      kent=\EOM,
-+      kf1=\E[11~,
-+      kf10=\E[21~,
-+      kf11=\E[23~,
-+      kf12=\E[24~,
-+      kf13=\E[25~,
-+      kf14=\E[26~,
-+      kf15=\E[28~,
-+      kf16=\E[29~,
-+      kf17=\E[31~,
-+      kf18=\E[32~,
-+      kf19=\E[33~,
-+      kf2=\E[12~,
-+      kf20=\E[34~,
-+      kf3=\E[13~,
-+      kf4=\E[14~,
-+      kf5=\E[15~,
-+      kf6=\E[17~,
-+      kf7=\E[18~,
-+      kf8=\E[19~,
-+      kf9=\E[20~,
-+      kfnd=\E[1~,
-+      khome=\E[7~,
-+      kich1=\E[2~,
-+      kmous=\E[M,
-+      knp=\E[6~,
-+      kpp=\E[5~,
-+      kslt=\E[4~,
-+      rc=\E8,
-+      rev=\E[7m,
-+      ri=\EM,
-+      rmso=\E[27m,
-+      rmul=\E[24m,
-+      rs1=\Ec,
-+      rs2=\E[r\E[m\E[?7;25h\E[?1;3;4;5;6;9;66;1000;1001;1049l\E[4l,
-+      sgr0=\E[m\E(B,
-+      enacs=,
-+      smacs=\E(0,
-+      rmacs=\E(B,
-+      smso=\E[7m,
-+      smul=\E[4m,
-+      tbc=\E[3g,
-+      vpa=\E[%i%p1%dd,
-+      colors#88,
-+      pairs#7744,
-+      btns#5,
-+      lm#0,
-+      ccc,
-+      npc,
-+      mc5i,
-+      ncv#0,
-+      mir,
-+      xon,
-+      bw,
-+      ech=\E[%p1%dX,
-+      mc0=\E[i,
-+      mc4=\E[4i,
-+      mc5=\E[5i,
-+      sitm=\E[3m,
-+      ritm=\E[23m,
-+      smam=\E[?7h,
-+      rmam=\E[?7l,
-+      smir=\E[4h,
-+      rmir=\E[4l,
-+      smcup=\E[?1049h,
-+      rmcup=\E[r\E[?1049l,
-+      smkx=\E=,
-+      rmkx=\E>,
-+      indn=\E[%p1%dS,
-+      rin=\E[%p1%dT,
-+      
sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
-+      op=\E[39;49m,
-+      setaf=\E[38;5;%p1%dm,
-+      setab=\E[48;5;%p1%dm,
-+      
setf=%?%p1%{7}%>%t\E[38;5;%p1%dm%e\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m%;,
-+      
setb=%?%p1%{7}%>%t\E[48;5;%p1%dm%e\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m%;,
-+      
initc=\E]4;%p1%d;rgb\:%p2%{65535}%*%{1000}%/%4.4X/%p3%{65535}%*%{1000}%/%4.4X/%p4%{65535}%*%{1000}%/%4.4X\E\\,
-+      sc=\E7,
-+      s0ds=\E(B,
-+      s1ds=\E(0,
-+      s2ds=\E*B,
-+      s3ds=\E+B,
-+      u6=\E[%i%d;%dR,
-+      u7=\E[6n,
-+      u8=\E[?1;2c,
-+      u9=\E[c,
-+      tsl=\E]2;,
-+      fsl=\007,
-+      dsl=\E]2;\007,
-+
-+rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window System),
-+      colors#256,
-+      pairs#32767,
-+      use=rxvt-unicode,
-+
- #### MRXVT
- # mrxvt 0.5.4
- #

diff --git a/sys-libs/ncurses/files/ncurses-6.0-ticlib.patch 
b/sys-libs/ncurses/files/ncurses-6.0-ticlib.patch
deleted file mode 100644
index 188e6adff8c7..000000000000
--- a/sys-libs/ncurses/files/ncurses-6.0-ticlib.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-always include ticlib even when progs are disabled
-
-https://bugs.gentoo.org/557360
-
---- a/configure
-+++ b/configure
-@@ -21312,7 +21312,7 @@ echo "$as_me:21311: checking for library subsets" >&5
- echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
- LIB_SUBSETS=
- 
--if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test 
"$with_termcap" != no; then
-+if true; then
-       LIB_SUBSETS="${LIB_SUBSETS}ticlib"
-       if test "$with_ticlib" != no ; then
-               LIB_SUBSETS="${LIB_SUBSETS} "

diff --git a/sys-libs/ncurses/files/ncurses-6.2_p20210123-cppflags-cross.patch 
b/sys-libs/ncurses/files/ncurses-6.2_p20210123-cppflags-cross.patch
deleted file mode 100644
index 1087bf5c9cb7..000000000000
--- a/sys-libs/ncurses/files/ncurses-6.2_p20210123-cppflags-cross.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-https://bugs.gentoo.org/601426
-https://lists.gnu.org/archive/html/bug-ncurses/2015-02/msg00012.html
-
-From: John Vogel
-Subject: [PATCH] c++ binding missed when cross compiling
-Date: Mon, 16 Feb 2015 01:01:48 -0500
-
-The configure script hard codes the include dir to the prefix'ed include dir,
-when checking if c++ compiler works. This breaks the compiler's built-in search
-path. I've included two patches. The first works on the configure.in file, 
which
-requires your autoconf stuff to test and I'm not ready to meddle with at the
-moment. The other works directly on the configure file. I've tested the second
-one; it should mirror what the first patch tries to achieve and works for me.
-
---- a/configure
-+++ b/configure
-@@ -3459,10 +3459,6 @@
-               echo "$as_me:3459: checking if $CXX works" >&5
- echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
- 
--              save_CPPFLAGS="$CPPFLAGS"
--              eval cf_includedir=${includedir}
--              CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
--
- cat >"conftest.$ac_ext" <<_ACEOF
- #line 3467 "configure"
- #include "confdefs.h"
-@@ -3499,7 +3495,6 @@
- cf_cxx_works=no
- fi
- rm -f "conftest.$ac_objext" "conftest.$ac_ext"
--              CPPFLAGS="$save_CPPFLAGS"
- 
-               echo "$as_me:3504: result: $cf_cxx_works" >&5
- echo "${ECHO_T}$cf_cxx_works" >&6

diff --git a/sys-libs/ncurses/ncurses-6.3_p20220423.ebuild 
b/sys-libs/ncurses/ncurses-6.3_p20220423.ebuild
deleted file mode 100644
index 223791bd1371..000000000000
--- a/sys-libs/ncurses/ncurses-6.3_p20220423.ebuild
+++ /dev/null
@@ -1,405 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/thomasdickey.asc
-inherit flag-o-matic toolchain-funcs multilib multilib-minimal preserve-libs 
usr-ldscript verify-sig
-
-MY_PV="${PV:0:3}"
-MY_P="${PN}-${MY_PV}"
-DESCRIPTION="Console display library"
-HOMEPAGE="https://www.gnu.org/software/ncurses/ 
https://invisible-island.net/ncurses/";
-SRC_URI="mirror://gnu/ncurses/${MY_P}.tar.gz
-       https://invisible-island.net/archives/${PN}/${MY_P}.tar.gz
-       verify-sig? ( mirror://gnu/ncurses/${MY_P}.tar.gz.sig )"
-
-if [[ ${PV} == *_p* ]] ; then
-       # Sometimes, after releases, there's no megapatch available yet.
-       #
-       # From upstream README at e.g. 
https://invisible-island.net/archives/ncurses/6.3/:
-       #
-       #       "At times (generally to mark a relatively stable point), I 
create a rollup
-       #       patch, which consists of all changes from the release through 
the current date."
-       #
-       # Also, from 
https://lists.gnu.org/archive/html/bug-ncurses/2019-08/msg00039.html,
-       # the patches are considered to be acceptable to use after some 
testing. They
-       # are both for development but also bug fixes.
-       #
-       # This array should contain a list of all the snapshots since the last
-       # release if there's no megapatch available yet.
-       PATCH_DATES=(
-               20211026
-               20211030
-               20211106
-               20211113
-               20211115
-               20211120
-               20211127
-               20211204
-               20211211
-               20211219
-               20211225
-               20220101
-               20220115
-               20220122
-               20220129
-               20220205
-               20220212
-               20220219
-               20220226
-               20220305
-               20220312
-               20220319
-               20220326
-               20220402
-               20220409
-               20220416
-
-               # Latest patch is just _pN = $(ver_cut 4)
-               $(ver_cut 4)
-       )
-
-       if [[ -z ${PATCH_DATES[@]} ]] ; then
-               SRC_URI+=" 
https://invisible-island.net/archives/${PN}/${PV/_p*}/${P/_p/-}.patch.sh.gz";
-               SRC_URI+=" verify-sig? ( 
https://invisible-island.net/archives/${PN}/${PV/_p*}/${P/_p/-}.patch.sh.gz.asc";
-       else
-               patch_url=
-               my_patch_index=
-               for ((my_patch_index=0; my_patch_index < "${#PATCH_DATES[@]}"; 
my_patch_index++)); do
-                       patch_url="$(printf 
"https://invisible-island.net/archives/${PN}/${PV/_p*}/${MY_P}-%s"; 
${PATCH_DATES[${my_patch_index}]}.patch.gz)"
-                       SRC_URI+=" ${patch_url}"
-                       SRC_URI+=" verify-sig? ( ${patch_url}.asc )"
-               done
-               unset patch_url
-               unset my_patch_index
-       fi
-fi
-
-LICENSE="MIT"
-# The subslot reflects the SONAME.
-SLOT="0/6"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="ada +cxx debug doc gpm minimal profile +stack-realign static-libs test 
tinfo trace"
-RESTRICT="!test? ( test )"
-
-DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )"
-# Block the older ncurses that installed all files w/SLOT=5, bug #557472
-RDEPEND="${DEPEND}
-       !<=sys-libs/ncurses-5.9-r4:5
-       !<sys-libs/slang-2.3.2_pre23
-       !<x11-terms/rxvt-unicode-9.06-r3
-       !<x11-terms/st-0.6-r1"
-BDEPEND="verify-sig? ( sec-keys/openpgp-keys-thomasdickey )"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
-       "${FILESDIR}/${PN}-5.7-nongnu.patch"
-       "${FILESDIR}/${PN}-6.0-rxvt-unicode-9.15.patch" # bug #192083, bug 
#383871
-       "${FILESDIR}/${PN}-6.0-pkg-config.patch"
-       "${FILESDIR}/${PN}-6.0-ticlib.patch" # bug #557360
-       "${FILESDIR}/${PN}-6.2_p20210123-cppflags-cross.patch" # bug #601426
-)
-
-src_prepare() {
-       if [[ ${PV} == *_p* ]] ; then
-               if [[ -z ${PATCH_DATES[@]} ]] ; then
-                       # If we have a rollup patch, use that instead of the 
individual ones.
-                       eapply "${WORKDIR}"/${P/_p/-}-patch.sh
-               else
-                       eapply "${WORKDIR}"/
-               fi
-       fi
-
-       default
-}
-
-src_configure() {
-       # bug #115036
-       unset TERMINFO
-
-       tc-export_build_env BUILD_{CC,CPP}
-
-       # bug #214642
-       BUILD_CPPFLAGS+=" -D_GNU_SOURCE"
-
-       # Should be fixed upstream soon:
-       # https://lists.gnu.org/archive/html/bug-ncurses/2022-08/msg00024.html
-       # bug #866398
-       sed -i -e 's/ld --verbose/${LD} --verbose/' configure || die
-       sed -i -e 's/pkg-config --version/${PKG_CONFIG} --version/' 
misc/gen-pkgconfig.in || die
-
-       # Build the various variants of ncurses -- narrow, wide, and threaded. 
#510440
-       # Order matters here -- we want unicode/thread versions to come last so 
that the
-       # binaries in /usr/bin support both wide and narrow.
-       # The naming is also important as we use these directly with filenames 
and when
-       # checking configure flags.
-       NCURSES_TARGETS=(
-               ncurses
-               ncursesw
-               ncursest
-               ncursestw
-       )
-
-       # When installing ncurses, we have to use a compatible version of tic.
-       # This comes up when cross-compiling, doing multilib builds, upgrading,
-       # or installing for the first time.  Build a local copy of tic whenever
-       # the host version isn't available. bug #249363, bug #557598
-       if ! has_version -b "~sys-libs/${P}:0" ; then
-               local lbuildflags="-static"
-
-               # some toolchains don't quite support static linking
-               local dbuildflags="-Wl,-rpath,${WORKDIR}/lib"
-               case ${CHOST} in
-                       *-darwin*)  dbuildflags=     ;;
-                       *-solaris*) dbuildflags="-Wl,-R,${WORKDIR}/lib" ;;
-               esac
-               echo "int main() {}" | \
-                       $(tc-getCC) -o x -x c - ${lbuildflags} -pipe >& 
/dev/null \
-                       || lbuildflags="${dbuildflags}"
-
-               # We can't re-use the multilib BUILD_DIR because we run outside 
of it.
-               BUILD_DIR="${WORKDIR}" \
-               CC=${BUILD_CC} \
-               CHOST=${CBUILD} \
-               CFLAGS=${BUILD_CFLAGS} \
-               CXXFLAGS=${BUILD_CXXFLAGS} \
-               CPPFLAGS=${BUILD_CPPFLAGS} \
-               LDFLAGS="${BUILD_LDFLAGS} ${lbuildflags}" \
-               do_configure cross --without-shared --with-normal --with-progs
-       fi
-       multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
-       if [[ ${ABI} == x86 ]] ; then
-               # For compatibility with older binaries at slight performance 
cost.
-               # bug #616402
-               use stack-realign && append-flags -mstackrealign
-       fi
-
-       local t
-       for t in "${NCURSES_TARGETS[@]}" ; do
-               do_configure "${t}"
-       done
-}
-
-do_configure() {
-       local target=$1
-       shift
-
-       mkdir "${BUILD_DIR}/${target}" || die
-       cd "${BUILD_DIR}/${target}" || die
-
-       local conf=(
-               # We need the basic terminfo files in /etc, bug #37026.  We will
-               # add '--with-terminfo-dirs' and then populate /etc/terminfo in
-               # src_install() ...
-               
--with-terminfo-dirs="${EPREFIX}/etc/terminfo:${EPREFIX}/usr/share/terminfo"
-
-               # Enable installation of .pc files.
-               --enable-pc-files
-               # This path is used to control where the .pc files are 
installed.
-               
--with-pkg-config-libdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
-
-               # Now the rest of the various standard flags.
-               --with-shared
-               # (Originally disabled until bug #245417 is sorted out, but now
-               # just keeping it off for good, given nobody needed it until now
-               # (2022) and we're trying to phase out bdb.)
-               --without-hashed-db
-               $(use_with ada)
-               $(use_with cxx)
-               $(use_with cxx cxx-binding)
-               --with-cxx-shared
-               $(use_with debug)
-               $(use_with profile)
-               # The configure script uses ldd to parse the linked output which
-               # is flaky for cross-compiling/multilib/ldd versions/etc...
-               $(use_with gpm gpm libgpm.so.1)
-               # Required for building  on mingw-w64, and possibly other 
windows
-               # platforms, bug #639670
-               $(use_enable kernel_Winnt term-driver)
-               --disable-termcap
-               --enable-symlinks
-               --with-rcs-ids
-               --with-manpage-format=normal
-               --enable-const
-               --enable-colorfgbg
-               --enable-hard-tabs
-               --enable-echo
-               $(use_enable !ada warnings)
-               $(use_with debug assertions)
-               $(use_enable !debug leaks)
-               $(use_with debug expanded)
-               $(use_with !debug macros)
-               $(multilib_native_with progs)
-               $(use_with test tests)
-               $(use_with trace)
-               $(use_with tinfo termlib)
-               --disable-stripping
-               --disable-pkg-ldflags
-       )
-
-       if [[ ${target} == ncurses*w ]] ; then
-               conf+=( --enable-widec )
-       else
-               conf+=( --disable-widec )
-       fi
-       if [[ ${target} == ncursest* ]] ; then
-               conf+=( --with-{pthread,reentrant} )
-       else
-               conf+=( --without-{pthread,reentrant} )
-       fi
-
-       # Make sure each variant goes in a unique location.
-       if [[ ${target} == "ncurses" ]] ; then
-               # "ncurses" variant goes into "${EPREFIX}"/usr/include
-               # It is needed on Prefix because the configure script appends
-               # "ncurses" to "${prefix}/include" if "${prefix}" is not /usr.
-               conf+=( --enable-overwrite )
-       else
-               conf+=( --includedir="${EPREFIX}"/usr/include/${target} )
-       fi
-       # See comments in src_configure.
-       if [[ ${target} != "cross" ]] ; then
-               local cross_path="${WORKDIR}/cross"
-               [[ -d ${cross_path} ]] && export 
TIC_PATH="${cross_path}/progs/tic"
-       fi
-
-       ECONF_SOURCE="${S}" econf "${conf[@]}" "$@"
-}
-
-src_compile() {
-       # See comments in src_configure.
-       if ! has_version -b "~sys-libs/${P}:0" ; then
-               # We could possibly merge these two branches but opting to be
-               # conservative when merging some of the Prefix changes.
-
-               if [[ ${CHOST} == *-cygwin* ]] && ! multilib_is_native_abi ; 
then
-                       # We make 'tic$(x)' here, for Cygwin having x=".exe".
-                       BUILD_DIR="${WORKDIR}" \
-                                do_compile cross -C progs all PROGS='tic$(x)'
-               else
-                       BUILD_DIR="${WORKDIR}" \
-                                do_compile cross -C progs tic
-               fi
-       fi
-
-       multilib-minimal_src_compile
-}
-
-multilib_src_compile() {
-       local t
-       for t in "${NCURSES_TARGETS[@]}" ; do
-               do_compile "${t}"
-       done
-}
-
-do_compile() {
-       local target=$1
-       shift
-
-       cd "${BUILD_DIR}/${target}" || die
-
-       # 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.
-       emake -j1 sources
-
-       # For some reason, sources depends on pc-files which depends on
-       # compiled libraries which depends on sources which ...
-       # Manually delete the pc-files file so the install step will
-       # create the .pc files we want.
-       rm -f misc/pc-files || die
-       emake "$@"
-}
-
-multilib_src_install() {
-       local target
-       for target in "${NCURSES_TARGETS[@]}" ; do
-               emake -C "${BUILD_DIR}/${target}" DESTDIR="${D}" install
-       done
-
-       # Move main libraries into /.
-       if multilib_is_native_abi ; then
-               gen_usr_ldscript -a \
-                       "${NCURSES_TARGETS[@]}" \
-                       $(usex tinfo 'tinfow tinfo' '')
-       fi
-
-       if ! tc-is-static-only ; then
-               # Provide a link for -lcurses.
-               ln -sf libncurses$(get_libname) 
"${ED}"/usr/$(get_libdir)/libcurses$(get_libname) || die
-       fi
-
-       # Don't delete '*.dll.a', needed for linking, bug #631468
-       if ! use static-libs; then
-               find "${ED}"/usr/ -name '*.a' ! -name '*.dll.a' -delete || die
-       fi
-
-       # Build fails to create this ...
-       # -FIXME-
-       # Ugly hackaround for riscv having two parts libdir (bug #689240)
-       # Replace this hack with an official solution once we have one...
-       # -FIXME-
-       dosym $(sed 's@[^/]\+@..@g' <<< $(get_libdir))/share/terminfo \
-               /usr/$(get_libdir)/terminfo
-}
-
-multilib_src_install_all() {
-       # We need the basic terminfo files in /etc for embedded/recovery, bug 
#37026
-       einfo "Installing basic terminfo files in /etc..."
-       local terms=(
-               # Dumb/simple values that show up when using the in-kernel VT.
-               ansi console dumb linux
-               vt{52,100,102,200,220}
-               # [u]rxvt users used to be pretty common.  Probably should drop 
this
-               # since upstream is dead and people are moving away from it.
-               rxvt{,-unicode}{,-256color}
-               # xterm users are common, as is terminals re-using/spoofing it.
-               xterm xterm-{,256}color
-               # screen is common (and reused by tmux).
-               screen{,-256color}
-               screen.xterm-256color
-       )
-       local x
-       for x in "${terms[@]}"; do
-               local termfile=$(find "${ED}"/usr/share/terminfo/ -name "${x}" 
2>/dev/null)
-               local basedir=$(basename "$(dirname "${termfile}")")
-
-               if [[ -n ${termfile} ]] ; then
-                       dodir "/etc/terminfo/${basedir}"
-                       mv "${termfile}" "${ED}/etc/terminfo/${basedir}/" || die
-                       dosym "../../../../etc/terminfo/${basedir}/${x}" \
-                               "/usr/share/terminfo/${basedir}/${x}"
-               fi
-       done
-
-       echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" | newenvd - 50ncurses
-
-       use minimal && rm -r "${ED}"/usr/share/terminfo*
-       # Because ncurses5-config --terminfo returns the directory we keep it
-       # bug #245374
-       keepdir /usr/share/terminfo
-
-       cd "${S}" || die
-       dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc
-       if use doc ; then
-               docinto html
-               dodoc -r doc/html/
-       fi
-}
-
-pkg_preinst() {
-       preserve_old_lib /$(get_libdir)/libncurses.so.5
-       preserve_old_lib /$(get_libdir)/libncursesw.so.5
-}
-
-pkg_postinst() {
-       preserve_old_lib_notify /$(get_libdir)/libncurses.so.5
-       preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5
-}

diff --git a/sys-libs/ncurses/ncurses-6.3_p20220924-r10.ebuild 
b/sys-libs/ncurses/ncurses-6.3_p20220924-r10.ebuild
deleted file mode 100644
index c506847fb1a2..000000000000
--- a/sys-libs/ncurses/ncurses-6.3_p20220924-r10.ebuild
+++ /dev/null
@@ -1,476 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/thomasdickey.asc
-inherit flag-o-matic toolchain-funcs multilib-minimal preserve-libs 
usr-ldscript verify-sig
-
-MY_PV="${PV:0:3}"
-MY_P="${PN}-${MY_PV}"
-DESCRIPTION="Console display library"
-HOMEPAGE="https://www.gnu.org/software/ncurses/ 
https://invisible-island.net/ncurses/";
-# Keep invisible-mirror.net here as some users reported 403 forbidden with 
invisible-island.net
-SRC_URI="
-       mirror://gnu/ncurses/${MY_P}.tar.gz
-       https://invisible-island.net/archives/${PN}/${MY_P}.tar.gz
-       https://invisible-mirror.net/archives/${PN}/${MY_P}.tar.gz
-       verify-sig? ( mirror://gnu/ncurses/${MY_P}.tar.gz.sig )
-"
-
-GENTOO_PATCH_DEV=sam
-GENTOO_PATCH_PV=6.3_p20220924
-GENTOO_PATCH_NAME=${PN}-${GENTOO_PATCH_PV}-patches
-
-# Populated below in a loop. Do not add patches manually here.
-UPSTREAM_PATCHES=()
-
-if [[ ${PV} == *_p* ]] ; then
-       # Sometimes, after releases, there's no megapatch available yet.
-       #
-       # From upstream README at e.g. 
https://invisible-island.net/archives/ncurses/6.3/:
-       #
-       #       "At times (generally to mark a relatively stable point), I 
create a rollup
-       #       patch, which consists of all changes from the release through 
the current date."
-       #
-       # Also, from 
https://lists.gnu.org/archive/html/bug-ncurses/2019-08/msg00039.html,
-       # the patches are considered to be acceptable to use after some 
testing. They
-       # are both for development but also bug fixes.
-       #
-       # This array should contain a list of all the snapshots since the last
-       # release if there's no megapatch available yet.
-       PATCH_DATES=(
-               20211026
-               20211030
-               20211106
-               20211113
-               20211115
-               20211120
-               20211127
-               20211204
-               20211211
-               20211219
-               20211225
-               20220101
-               20220115
-               20220122
-               20220129
-               20220205
-               20220212
-               20220219
-               20220226
-               20220305
-               20220312
-               20220319
-               20220326
-               20220402
-               20220409
-               20220416
-               20220423
-               20220430
-               20220501
-               20220507
-               20220514
-               20220521
-               20220529
-               20220604
-               20220612
-               20220618
-               20220625
-               20220703
-               20220709
-               20220716
-               20220724
-               20220729
-               20220806
-               20220813
-               20220820
-               20220827
-               20220903
-               20220910
-               20220917
-
-               # Latest patch is just _pN = $(ver_cut 4)
-               $(ver_cut 4)
-       )
-
-       if [[ -z ${PATCH_DATES[@]} ]] ; then
-               SRC_URI+=" 
https://invisible-island.net/archives/${PN}/${PV/_p*}/${P/_p/-}.patch.sh.gz";
-               SRC_URI+=" verify-sig? ( 
https://invisible-island.net/archives/${PN}/${PV/_p*}/${P/_p/-}.patch.sh.gz.asc";
-
-               # If we have a rollup patch, use that instead of the individual 
ones.
-               UPSTREAM_PATCHES+=( "${WORKDIR}"/${P/_p/-}-patch.sh )
-       else
-               patch_url=
-               my_patch_index=
-
-               # We keep a bunch of mirrors here as we've had reports of 
invisible*.net
-               # being 403 forbidden for some users.
-               urls=(
-                       
"https://invisible-island.net/archives/${PN}/${PV/_p*}/${MY_P}-%s";
-                       
"https://invisible-mirror.net/archives/${PN}/${PV/_p*}/${MY_P}-%s";
-                       
"https://dev.gentoo.org/~${GENTOO_PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${MY_P}-%s";
-               )
-
-               for ((my_patch_index=0; my_patch_index < "${#PATCH_DATES[@]}"; 
my_patch_index++)); do
-                       for url in "${urls[@]}" ; do
-                               patch_url="$(printf ${urls} 
${PATCH_DATES[${my_patch_index}]}.patch.gz)"
-                               SRC_URI+=" ${patch_url}"
-                               SRC_URI+=" verify-sig? ( ${patch_url}.asc )"
-                       done
-
-                       UPSTREAM_PATCHES+=( 
"${WORKDIR}"/${MY_P}-${PATCH_DATES[${my_patch_index}]}.patch )
-               done
-
-               unset patch_url
-               unset my_patch_index
-               unset urls
-       fi
-
-       SRC_URI+=" 
https://dev.gentoo.org/~${GENTOO_PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${GENTOO_PATCH_NAME}.tar.xz";
-fi
-
-LICENSE="MIT"
-# The subslot reflects the SONAME.
-SLOT="0/6"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="ada +cxx debug doc gpm minimal profile split-usr +stack-realign 
static-libs test tinfo trace"
-RESTRICT="!test? ( test )"
-
-DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )"
-# Block the older ncurses that installed all files w/SLOT=5, bug #557472
-RDEPEND="${DEPEND}
-       !<=sys-libs/ncurses-5.9-r4:5
-       !<sys-libs/slang-2.3.2_pre23
-       !<x11-terms/rxvt-unicode-9.06-r3
-       !<x11-terms/st-0.6-r1"
-BDEPEND="verify-sig? ( sec-keys/openpgp-keys-thomasdickey )"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
-       "${UPSTREAM_PATCHES[@]}"
-
-       # When rebasing Gentoo's patchset, please use git from a clean
-       # src_unpack with upstream patches already applied. git am --reject
-       # the existing patchset and rebase as required. This makes it easier
-       # to manage future rebasing & adding new patches.
-       #
-       # For the same reasons, please include the original configure.in 
changes,
-       # NOT just the generated results!
-       "${WORKDIR}"/${GENTOO_PATCH_NAME}
-)
-
-src_unpack() {
-       # Avoid trying to verify our own patchset tarball, there's no point
-       if use verify-sig ; then
-               local file
-               for file in ${A} ; do
-                       if [[ ${file} == ${MY_P}.tar.gz ]] ; then
-                               verify-sig_verify_detached "${DISTDIR}"/${file} 
"${DISTDIR}"/${file}.sig
-                       else
-                               [[ ${file} == 
@(*${GENTOO_PATCH_NAME}.tar.xz|*.asc|*.sig) ]] && continue
-
-                               verify-sig_verify_detached "${DISTDIR}"/${file} 
"${DISTDIR}"/${file}.asc
-                       fi
-               done
-       fi
-
-       default
-}
-
-src_configure() {
-       # bug #115036
-       unset TERMINFO
-
-       tc-export_build_env BUILD_{CC,CPP}
-
-       # bug #214642
-       BUILD_CPPFLAGS+=" -D_GNU_SOURCE"
-
-       # Build the various variants of ncurses -- narrow, wide, and threaded. 
#510440
-       # Order matters here -- we want unicode/thread versions to come last so 
that the
-       # binaries in /usr/bin support both wide and narrow.
-       # The naming is also important as we use these directly with filenames 
and when
-       # checking configure flags.
-       NCURSES_TARGETS=(
-               ncurses
-               ncursesw
-               ncursest
-               ncursestw
-       )
-
-       # When installing ncurses, we have to use a compatible version of tic.
-       # This comes up when cross-compiling, doing multilib builds, upgrading,
-       # or installing for the first time.  Build a local copy of tic whenever
-       # the host version isn't available. bug #249363, bug #557598
-       if ! has_version -b "~sys-libs/${P}:0" ; then
-               local lbuildflags="-static"
-
-               # some toolchains don't quite support static linking
-               local dbuildflags="-Wl,-rpath,${WORKDIR}/lib"
-               case ${CHOST} in
-                       *-darwin*)  dbuildflags=     ;;
-                       *-solaris*) dbuildflags="-Wl,-R,${WORKDIR}/lib" ;;
-               esac
-               echo "int main() {}" | \
-                       $(tc-getCC) -o x -x c - ${lbuildflags} -pipe >& 
/dev/null \
-                       || lbuildflags="${dbuildflags}"
-
-               # We can't re-use the multilib BUILD_DIR because we run outside 
of it.
-               BUILD_DIR="${WORKDIR}" \
-               CC=${BUILD_CC} \
-               CHOST=${CBUILD} \
-               CFLAGS=${BUILD_CFLAGS} \
-               CXXFLAGS=${BUILD_CXXFLAGS} \
-               CPPFLAGS=${BUILD_CPPFLAGS} \
-               LDFLAGS="${BUILD_LDFLAGS} ${lbuildflags}" \
-               do_configure cross --without-shared --with-normal --with-progs
-       fi
-       multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
-       if [[ ${ABI} == x86 ]] ; then
-               # For compatibility with older binaries at slight performance 
cost.
-               # bug #616402
-               use stack-realign && append-flags -mstackrealign
-       fi
-
-       local t
-       for t in "${NCURSES_TARGETS[@]}" ; do
-               do_configure "${t}"
-       done
-}
-
-do_configure() {
-       local target=$1
-       shift
-
-       mkdir "${BUILD_DIR}/${target}" || die
-       cd "${BUILD_DIR}/${target}" || die
-
-       # https://lists.gnu.org/archive/html/bug-ncurses/2022-09/msg00024.html
-       export EGREP="grep -E"
-       export FGREP="grep -F"
-
-       local conf=(
-               # We need the basic terminfo files in /etc, bug #37026.  We will
-               # add '--with-terminfo-dirs' and then populate /etc/terminfo in
-               # src_install() ...
-               
--with-terminfo-dirs="${EPREFIX}/etc/terminfo:${EPREFIX}/usr/share/terminfo"
-
-               # Enable installation of .pc files.
-               --enable-pc-files
-               # This path is used to control where the .pc files are 
installed.
-               
--with-pkg-config-libdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
-
-               # Now the rest of the various standard flags.
-               --with-shared
-               # (Originally disabled until bug #245417 is sorted out, but now
-               # just keeping it off for good, given nobody needed it until now
-               # (2022) and we're trying to phase out bdb.)
-               --without-hashed-db
-               $(use_with ada)
-               $(use_with cxx)
-               $(use_with cxx cxx-binding)
-               --with-cxx-shared
-               $(use_with debug)
-               $(use_with profile)
-               # The configure script uses ldd to parse the linked output which
-               # is flaky for cross-compiling/multilib/ldd versions/etc...
-               $(use_with gpm gpm libgpm.so.1)
-               # Required for building  on mingw-w64, and possibly other 
windows
-               # platforms, bug #639670
-               $(use_enable kernel_Winnt term-driver)
-               --disable-termcap
-               --enable-symlinks
-               --with-rcs-ids
-               --with-manpage-format=normal
-               --enable-const
-               --enable-colorfgbg
-               --enable-hard-tabs
-               --enable-echo
-               $(use_enable !ada warnings)
-               $(use_with debug assertions)
-               $(use_enable !debug leaks)
-               $(use_with debug expanded)
-               $(use_with !debug macros)
-               $(multilib_native_with progs)
-               $(use_with test tests)
-               $(use_with trace)
-               $(use_with tinfo termlib)
-               --disable-stripping
-               --disable-pkg-ldflags
-       )
-
-       if [[ ${target} == ncurses*w ]] ; then
-               conf+=( --enable-widec )
-       else
-               conf+=( --disable-widec )
-       fi
-       if [[ ${target} == ncursest* ]] ; then
-               conf+=( --with-{pthread,reentrant} )
-       else
-               conf+=( --without-{pthread,reentrant} )
-       fi
-
-       # Make sure each variant goes in a unique location.
-       if [[ ${target} == "ncurses" ]] ; then
-               # "ncurses" variant goes into "${EPREFIX}"/usr/include
-               # It is needed on Prefix because the configure script appends
-               # "ncurses" to "${prefix}/include" if "${prefix}" is not /usr.
-               conf+=( --enable-overwrite )
-       else
-               conf+=( --includedir="${EPREFIX}"/usr/include/${target} )
-       fi
-       # See comments in src_configure.
-       if [[ ${target} != "cross" ]] ; then
-               local cross_path="${WORKDIR}/cross"
-               [[ -d ${cross_path} ]] && export 
TIC_PATH="${cross_path}/progs/tic"
-       fi
-
-       ECONF_SOURCE="${S}" econf "${conf[@]}" "$@"
-}
-
-src_compile() {
-       # See comments in src_configure.
-       if ! has_version -b "~sys-libs/${P}:0" ; then
-               # We could possibly merge these two branches but opting to be
-               # conservative when merging some of the Prefix changes.
-
-               if [[ ${CHOST} == *-cygwin* ]] && ! multilib_is_native_abi ; 
then
-                       # We make 'tic$(x)' here, for Cygwin having x=".exe".
-                       BUILD_DIR="${WORKDIR}" \
-                                do_compile cross -C progs all PROGS='tic$(x)'
-               else
-                       BUILD_DIR="${WORKDIR}" \
-                                do_compile cross -C progs tic
-               fi
-       fi
-
-       multilib-minimal_src_compile
-}
-
-multilib_src_compile() {
-       local t
-       for t in "${NCURSES_TARGETS[@]}" ; do
-               do_compile "${t}"
-       done
-}
-
-do_compile() {
-       local target=$1
-       shift
-
-       cd "${BUILD_DIR}/${target}" || die
-
-       # 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.
-       emake -j1 sources
-
-       # For some reason, sources depends on pc-files which depends on
-       # compiled libraries which depends on sources which ...
-       # Manually delete the pc-files file so the install step will
-       # create the .pc files we want.
-       rm -f misc/pc-files || die
-       emake "$@"
-}
-
-multilib_src_install() {
-       local target
-       for target in "${NCURSES_TARGETS[@]}" ; do
-               emake -C "${BUILD_DIR}/${target}" DESTDIR="${D}" install
-       done
-
-       # Move main libraries into /.
-       if multilib_is_native_abi ; then
-               gen_usr_ldscript -a \
-                       "${NCURSES_TARGETS[@]}" \
-                       $(usex tinfo 'tinfow tinfo' '')
-       fi
-
-       # Don't delete '*.dll.a', needed for linking, bug #631468
-       if ! use static-libs; then
-               find "${ED}"/usr/ -name '*.a' ! -name '*.dll.a' -delete || die
-       fi
-
-       # Build fails to create this ...
-       # -FIXME-
-       # Ugly hackaround for riscv having two parts libdir (bug #689240)
-       # Replace this hack with an official solution once we have one...
-       # -FIXME-
-       dosym $(sed 's@[^/]\+@..@g' <<< $(get_libdir))/share/terminfo \
-               /usr/$(get_libdir)/terminfo
-
-       # Remove obsolete libcurses symlink that is created by the build
-       # system. Technically, this could be also achieved
-       # via --disable-overwrite but it also moves headers implicitly,
-       # and we do not want to do this yet.
-       # bug #836696
-       rm "${ED}"/usr/$(get_libdir)/libcurses* || die
-}
-
-multilib_src_install_all() {
-       local terms=(
-               # Dumb/simple values that show up when using the in-kernel VT.
-               ansi console dumb linux
-               vt{52,100,102,200,220}
-               # [u]rxvt users used to be pretty common.  Probably should drop 
this
-               # since upstream is dead and people are moving away from it.
-               rxvt{,-unicode}{,-256color}
-               # xterm users are common, as is terminals re-using/spoofing it.
-               xterm xterm-{,256}color
-               # screen is common (and reused by tmux).
-               screen{,-256color}
-               screen.xterm-256color
-       )
-       if use split-usr ; then
-               local x
-               # We need the basic terminfo files in /etc for 
embedded/recovery, bug #37026
-               einfo "Installing basic terminfo files in /etc..."
-               for x in "${terms[@]}"; do
-                       local termfile=$(find "${ED}"/usr/share/terminfo/ -name 
"${x}" 2>/dev/null)
-                       local basedir=$(basename "$(dirname "${termfile}")")
-
-                       if [[ -n ${termfile} ]] ; then
-                               dodir "/etc/terminfo/${basedir}"
-                               mv "${termfile}" 
"${ED}/etc/terminfo/${basedir}/" || die
-                               dosym 
"../../../../etc/terminfo/${basedir}/${x}" \
-                                       "/usr/share/terminfo/${basedir}/${x}"
-                       fi
-               done
-
-               echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" | newenvd - 
50ncurses
-
-               use minimal && rm -r "${ED}"/usr/share/terminfo*
-               # Because ncurses5-config --terminfo returns the directory we 
keep it
-               # bug #245374
-               keepdir /usr/share/terminfo
-       elif use minimal ; then
-               # Keep only the basic terminfo files
-               find "${ED}"/usr/share/terminfo/ \
-                       \( -type f -o -type l \) ${terms[*]/#/! -name } -delete 
, \
-                       -type d -empty -delete || die
-       fi
-
-       cd "${S}" || die
-       dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc
-       if use doc ; then
-               docinto html
-               dodoc -r doc/html/
-       fi
-}
-
-pkg_preinst() {
-       preserve_old_lib /$(get_libdir)/libncurses.so.5
-       preserve_old_lib /$(get_libdir)/libncursesw.so.5
-}
-
-pkg_postinst() {
-       preserve_old_lib_notify /$(get_libdir)/libncurses.so.5
-       preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5
-}

diff --git a/sys-libs/ncurses/ncurses-6.3_p20220924-r2.ebuild 
b/sys-libs/ncurses/ncurses-6.3_p20220924-r2.ebuild
deleted file mode 100644
index 22d5938e58da..000000000000
--- a/sys-libs/ncurses/ncurses-6.3_p20220924-r2.ebuild
+++ /dev/null
@@ -1,474 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/thomasdickey.asc
-inherit flag-o-matic toolchain-funcs multilib multilib-minimal preserve-libs 
usr-ldscript verify-sig
-
-MY_PV="${PV:0:3}"
-MY_P="${PN}-${MY_PV}"
-DESCRIPTION="Console display library"
-HOMEPAGE="https://www.gnu.org/software/ncurses/ 
https://invisible-island.net/ncurses/";
-# Keep invisible-mirror.net here as some users reported 403 forbidden with 
invisible-island.net
-SRC_URI="
-       mirror://gnu/ncurses/${MY_P}.tar.gz
-       https://invisible-island.net/archives/${PN}/${MY_P}.tar.gz
-       https://invisible-mirror.net/archives/${PN}/${MY_P}.tar.gz
-       verify-sig? ( mirror://gnu/ncurses/${MY_P}.tar.gz.sig )
-"
-
-GENTOO_PATCH_DEV=sam
-GENTOO_PATCH_PV=6.3_p20220924
-GENTOO_PATCH_NAME=${PN}-${GENTOO_PATCH_PV}-patches
-
-# Populated below in a loop. Do not add patches manually here.
-UPSTREAM_PATCHES=()
-
-if [[ ${PV} == *_p* ]] ; then
-       # Sometimes, after releases, there's no megapatch available yet.
-       #
-       # From upstream README at e.g. 
https://invisible-island.net/archives/ncurses/6.3/:
-       #
-       #       "At times (generally to mark a relatively stable point), I 
create a rollup
-       #       patch, which consists of all changes from the release through 
the current date."
-       #
-       # Also, from 
https://lists.gnu.org/archive/html/bug-ncurses/2019-08/msg00039.html,
-       # the patches are considered to be acceptable to use after some 
testing. They
-       # are both for development but also bug fixes.
-       #
-       # This array should contain a list of all the snapshots since the last
-       # release if there's no megapatch available yet.
-       PATCH_DATES=(
-               20211026
-               20211030
-               20211106
-               20211113
-               20211115
-               20211120
-               20211127
-               20211204
-               20211211
-               20211219
-               20211225
-               20220101
-               20220115
-               20220122
-               20220129
-               20220205
-               20220212
-               20220219
-               20220226
-               20220305
-               20220312
-               20220319
-               20220326
-               20220402
-               20220409
-               20220416
-               20220423
-               20220430
-               20220501
-               20220507
-               20220514
-               20220521
-               20220529
-               20220604
-               20220612
-               20220618
-               20220625
-               20220703
-               20220709
-               20220716
-               20220724
-               20220729
-               20220806
-               20220813
-               20220820
-               20220827
-               20220903
-               20220910
-               20220917
-
-               # Latest patch is just _pN = $(ver_cut 4)
-               $(ver_cut 4)
-       )
-
-       if [[ -z ${PATCH_DATES[@]} ]] ; then
-               SRC_URI+=" 
https://invisible-island.net/archives/${PN}/${PV/_p*}/${P/_p/-}.patch.sh.gz";
-               SRC_URI+=" verify-sig? ( 
https://invisible-island.net/archives/${PN}/${PV/_p*}/${P/_p/-}.patch.sh.gz.asc";
-
-               # If we have a rollup patch, use that instead of the individual 
ones.
-               UPSTREAM_PATCHES+=( "${WORKDIR}"/${P/_p/-}-patch.sh )
-       else
-               patch_url=
-               my_patch_index=
-
-               # We keep a bunch of mirrors here as we've had reports of 
invisible*.net
-               # being 403 forbidden for some users.
-               urls=(
-                       
"https://invisible-island.net/archives/${PN}/${PV/_p*}/${MY_P}-%s";
-                       
"https://invisible-mirror.net/archives/${PN}/${PV/_p*}/${MY_P}-%s";
-                       
"https://dev.gentoo.org/~${GENTOO_PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${MY_P}-%s";
-               )
-
-               for ((my_patch_index=0; my_patch_index < "${#PATCH_DATES[@]}"; 
my_patch_index++)); do
-                       for url in "${urls[@]}" ; do
-                               patch_url="$(printf ${urls} 
${PATCH_DATES[${my_patch_index}]}.patch.gz)"
-                               SRC_URI+=" ${patch_url}"
-                               SRC_URI+=" verify-sig? ( ${patch_url}.asc )"
-                       done
-
-                       UPSTREAM_PATCHES+=( 
"${WORKDIR}"/${MY_P}-${PATCH_DATES[${my_patch_index}]}.patch )
-               done
-
-               unset patch_url
-               unset my_patch_index
-               unset urls
-       fi
-
-       SRC_URI+=" 
https://dev.gentoo.org/~${GENTOO_PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${GENTOO_PATCH_NAME}.tar.xz";
-fi
-
-LICENSE="MIT"
-# The subslot reflects the SONAME.
-SLOT="0/6"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="ada +cxx debug doc gpm minimal profile split-usr +stack-realign 
static-libs test tinfo trace"
-RESTRICT="!test? ( test )"
-
-DEPEND="gpm? ( sys-libs/gpm[${MULTILIB_USEDEP}] )"
-# Block the older ncurses that installed all files w/SLOT=5, bug #557472
-RDEPEND="${DEPEND}
-       !<=sys-libs/ncurses-5.9-r4:5
-       !<sys-libs/slang-2.3.2_pre23
-       !<x11-terms/rxvt-unicode-9.06-r3
-       !<x11-terms/st-0.6-r1"
-BDEPEND="verify-sig? ( sec-keys/openpgp-keys-thomasdickey )"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
-       "${UPSTREAM_PATCHES[@]}"
-
-       # When rebasing Gentoo's patchset, please use git from a clean
-       # src_unpack with upstream patches already applied. git am --reject
-       # the existing patchset and rebase as required. This makes it easier
-       # to manage future rebasing & adding new patches.
-       #
-       # For the same reasons, please include the original configure.in 
changes,
-       # NOT just the generated results!
-       "${WORKDIR}"/${GENTOO_PATCH_NAME}
-)
-
-src_unpack() {
-       # Avoid trying to verify our own patchset tarball, there's no point
-       if use verify-sig ; then
-               local file
-               for file in ${A} ; do
-                       if [[ ${file} == ${MY_P}.tar.gz ]] ; then
-                               verify-sig_verify_detached "${DISTDIR}"/${file} 
"${DISTDIR}"/${file}.sig
-                       else
-                               [[ ${file} == 
@(*${GENTOO_PATCH_NAME}.tar.xz|*.asc|*.sig) ]] && continue
-
-                               verify-sig_verify_detached "${DISTDIR}"/${file} 
"${DISTDIR}"/${file}.asc
-                       fi
-               done
-       fi
-
-       default
-}
-
-src_configure() {
-       # bug #115036
-       unset TERMINFO
-
-       tc-export_build_env BUILD_{CC,CPP}
-
-       # bug #214642
-       BUILD_CPPFLAGS+=" -D_GNU_SOURCE"
-
-       # Build the various variants of ncurses -- narrow, wide, and threaded. 
#510440
-       # Order matters here -- we want unicode/thread versions to come last so 
that the
-       # binaries in /usr/bin support both wide and narrow.
-       # The naming is also important as we use these directly with filenames 
and when
-       # checking configure flags.
-       NCURSES_TARGETS=(
-               ncurses
-               ncursesw
-               ncursest
-               ncursestw
-       )
-
-       # When installing ncurses, we have to use a compatible version of tic.
-       # This comes up when cross-compiling, doing multilib builds, upgrading,
-       # or installing for the first time.  Build a local copy of tic whenever
-       # the host version isn't available. bug #249363, bug #557598
-       if ! has_version -b "~sys-libs/${P}:0" ; then
-               local lbuildflags="-static"
-
-               # some toolchains don't quite support static linking
-               local dbuildflags="-Wl,-rpath,${WORKDIR}/lib"
-               case ${CHOST} in
-                       *-darwin*)  dbuildflags=     ;;
-                       *-solaris*) dbuildflags="-Wl,-R,${WORKDIR}/lib" ;;
-               esac
-               echo "int main() {}" | \
-                       $(tc-getCC) -o x -x c - ${lbuildflags} -pipe >& 
/dev/null \
-                       || lbuildflags="${dbuildflags}"
-
-               # We can't re-use the multilib BUILD_DIR because we run outside 
of it.
-               BUILD_DIR="${WORKDIR}" \
-               CC=${BUILD_CC} \
-               CHOST=${CBUILD} \
-               CFLAGS=${BUILD_CFLAGS} \
-               CXXFLAGS=${BUILD_CXXFLAGS} \
-               CPPFLAGS=${BUILD_CPPFLAGS} \
-               LDFLAGS="${BUILD_LDFLAGS} ${lbuildflags}" \
-               do_configure cross --without-shared --with-normal --with-progs
-       fi
-       multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
-       if [[ ${ABI} == x86 ]] ; then
-               # For compatibility with older binaries at slight performance 
cost.
-               # bug #616402
-               use stack-realign && append-flags -mstackrealign
-       fi
-
-       local t
-       for t in "${NCURSES_TARGETS[@]}" ; do
-               do_configure "${t}"
-       done
-}
-
-do_configure() {
-       local target=$1
-       shift
-
-       mkdir "${BUILD_DIR}/${target}" || die
-       cd "${BUILD_DIR}/${target}" || die
-
-       # https://lists.gnu.org/archive/html/bug-ncurses/2022-09/msg00024.html
-       export EGREP="grep -E"
-       export FGREP="grep -F"
-
-       local conf=(
-               # We need the basic terminfo files in /etc, bug #37026.  We will
-               # add '--with-terminfo-dirs' and then populate /etc/terminfo in
-               # src_install() ...
-               
--with-terminfo-dirs="${EPREFIX}/etc/terminfo:${EPREFIX}/usr/share/terminfo"
-
-               # Enable installation of .pc files.
-               --enable-pc-files
-               # This path is used to control where the .pc files are 
installed.
-               
--with-pkg-config-libdir="${EPREFIX}/usr/$(get_libdir)/pkgconfig"
-
-               # Now the rest of the various standard flags.
-               --with-shared
-               # (Originally disabled until bug #245417 is sorted out, but now
-               # just keeping it off for good, given nobody needed it until now
-               # (2022) and we're trying to phase out bdb.)
-               --without-hashed-db
-               $(use_with ada)
-               $(use_with cxx)
-               $(use_with cxx cxx-binding)
-               --with-cxx-shared
-               $(use_with debug)
-               $(use_with profile)
-               # The configure script uses ldd to parse the linked output which
-               # is flaky for cross-compiling/multilib/ldd versions/etc...
-               $(use_with gpm gpm libgpm.so.1)
-               # Required for building  on mingw-w64, and possibly other 
windows
-               # platforms, bug #639670
-               $(use_enable kernel_Winnt term-driver)
-               --disable-termcap
-               --enable-symlinks
-               --with-rcs-ids
-               --with-manpage-format=normal
-               --enable-const
-               --enable-colorfgbg
-               --enable-hard-tabs
-               --enable-echo
-               $(use_enable !ada warnings)
-               $(use_with debug assertions)
-               $(use_enable !debug leaks)
-               $(use_with debug expanded)
-               $(use_with !debug macros)
-               $(multilib_native_with progs)
-               $(use_with test tests)
-               $(use_with trace)
-               $(use_with tinfo termlib)
-               --disable-stripping
-               --disable-pkg-ldflags
-       )
-
-       if [[ ${target} == ncurses*w ]] ; then
-               conf+=( --enable-widec )
-       else
-               conf+=( --disable-widec )
-       fi
-       if [[ ${target} == ncursest* ]] ; then
-               conf+=( --with-{pthread,reentrant} )
-       else
-               conf+=( --without-{pthread,reentrant} )
-       fi
-
-       # Make sure each variant goes in a unique location.
-       if [[ ${target} == "ncurses" ]] ; then
-               # "ncurses" variant goes into "${EPREFIX}"/usr/include
-               # It is needed on Prefix because the configure script appends
-               # "ncurses" to "${prefix}/include" if "${prefix}" is not /usr.
-               conf+=( --enable-overwrite )
-       else
-               conf+=( --includedir="${EPREFIX}"/usr/include/${target} )
-       fi
-       # See comments in src_configure.
-       if [[ ${target} != "cross" ]] ; then
-               local cross_path="${WORKDIR}/cross"
-               [[ -d ${cross_path} ]] && export 
TIC_PATH="${cross_path}/progs/tic"
-       fi
-
-       ECONF_SOURCE="${S}" econf "${conf[@]}" "$@"
-}
-
-src_compile() {
-       # See comments in src_configure.
-       if ! has_version -b "~sys-libs/${P}:0" ; then
-               # We could possibly merge these two branches but opting to be
-               # conservative when merging some of the Prefix changes.
-
-               if [[ ${CHOST} == *-cygwin* ]] && ! multilib_is_native_abi ; 
then
-                       # We make 'tic$(x)' here, for Cygwin having x=".exe".
-                       BUILD_DIR="${WORKDIR}" \
-                                do_compile cross -C progs all PROGS='tic$(x)'
-               else
-                       BUILD_DIR="${WORKDIR}" \
-                                do_compile cross -C progs tic
-               fi
-       fi
-
-       multilib-minimal_src_compile
-}
-
-multilib_src_compile() {
-       local t
-       for t in "${NCURSES_TARGETS[@]}" ; do
-               do_compile "${t}"
-       done
-}
-
-do_compile() {
-       local target=$1
-       shift
-
-       cd "${BUILD_DIR}/${target}" || die
-
-       # 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.
-       emake -j1 sources
-
-       # For some reason, sources depends on pc-files which depends on
-       # compiled libraries which depends on sources which ...
-       # Manually delete the pc-files file so the install step will
-       # create the .pc files we want.
-       rm -f misc/pc-files || die
-       emake "$@"
-}
-
-multilib_src_install() {
-       local target
-       for target in "${NCURSES_TARGETS[@]}" ; do
-               emake -C "${BUILD_DIR}/${target}" DESTDIR="${D}" install
-       done
-
-       # Move main libraries into /.
-       if multilib_is_native_abi ; then
-               gen_usr_ldscript -a \
-                       "${NCURSES_TARGETS[@]}" \
-                       $(usex tinfo 'tinfow tinfo' '')
-       fi
-
-       if ! tc-is-static-only ; then
-               # Provide a link for -lcurses.
-               ln -sf libncurses$(get_libname) 
"${ED}"/usr/$(get_libdir)/libcurses$(get_libname) || die
-       fi
-
-       # Don't delete '*.dll.a', needed for linking, bug #631468
-       if ! use static-libs; then
-               find "${ED}"/usr/ -name '*.a' ! -name '*.dll.a' -delete || die
-       fi
-
-       # Build fails to create this ...
-       # -FIXME-
-       # Ugly hackaround for riscv having two parts libdir (bug #689240)
-       # Replace this hack with an official solution once we have one...
-       # -FIXME-
-       dosym $(sed 's@[^/]\+@..@g' <<< $(get_libdir))/share/terminfo \
-               /usr/$(get_libdir)/terminfo
-}
-
-multilib_src_install_all() {
-       local terms=(
-               # Dumb/simple values that show up when using the in-kernel VT.
-               ansi console dumb linux
-               vt{52,100,102,200,220}
-               # [u]rxvt users used to be pretty common.  Probably should drop 
this
-               # since upstream is dead and people are moving away from it.
-               rxvt{,-unicode}{,-256color}
-               # xterm users are common, as is terminals re-using/spoofing it.
-               xterm xterm-{,256}color
-               # screen is common (and reused by tmux).
-               screen{,-256color}
-               screen.xterm-256color
-       )
-       if use split-usr ; then
-               local x
-               # We need the basic terminfo files in /etc for 
embedded/recovery, bug #37026
-               einfo "Installing basic terminfo files in /etc..."
-               for x in "${terms[@]}"; do
-                       local termfile=$(find "${ED}"/usr/share/terminfo/ -name 
"${x}" 2>/dev/null)
-                       local basedir=$(basename "$(dirname "${termfile}")")
-
-                       if [[ -n ${termfile} ]] ; then
-                               dodir "/etc/terminfo/${basedir}"
-                               mv "${termfile}" 
"${ED}/etc/terminfo/${basedir}/" || die
-                               dosym 
"../../../../etc/terminfo/${basedir}/${x}" \
-                                       "/usr/share/terminfo/${basedir}/${x}"
-                       fi
-               done
-
-               echo "CONFIG_PROTECT_MASK=\"/etc/terminfo\"" | newenvd - 
50ncurses
-
-               use minimal && rm -r "${ED}"/usr/share/terminfo*
-               # Because ncurses5-config --terminfo returns the directory we 
keep it
-               # bug #245374
-               keepdir /usr/share/terminfo
-       elif use minimal ; then
-               # Keep only the basic terminfo files
-               find "${ED}"/usr/share/terminfo/ \
-                       \( -type f -o -type l \) ${terms[*]/#/! -name } -delete 
, \
-                       -type d -empty -delete || die
-       fi
-
-       cd "${S}" || die
-       dodoc ANNOUNCE MANIFEST NEWS README* TO-DO doc/*.doc
-       if use doc ; then
-               docinto html
-               dodoc -r doc/html/
-       fi
-}
-
-pkg_preinst() {
-       preserve_old_lib /$(get_libdir)/libncurses.so.5
-       preserve_old_lib /$(get_libdir)/libncursesw.so.5
-}
-
-pkg_postinst() {
-       preserve_old_lib_notify /$(get_libdir)/libncurses.so.5
-       preserve_old_lib_notify /$(get_libdir)/libncursesw.so.5
-}

Reply via email to