From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1430555-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id B443C158094
	for <garchives@archives.gentoo.org>; Fri, 26 Aug 2022 06:36:52 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C3CBDE0874;
	Fri, 26 Aug 2022 06:36:51 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 36A5FE0874
	for <gentoo-commits@lists.gentoo.org>; Fri, 26 Aug 2022 06:36:51 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 0D3DB340ECB
	for <gentoo-commits@lists.gentoo.org>; Fri, 26 Aug 2022 06:36:50 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CB9959E
	for <gentoo-commits@lists.gentoo.org>; Fri, 26 Aug 2022 06:36:48 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1661495739.60e01c45dba20077dc31fd1bf490806bdb87cd61.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/ncurses/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-libs/ncurses/Manifest sys-libs/ncurses/ncurses-6.3_p20220820-r1.ebuild sys-libs/ncurses/ncurses-6.3_p20220820.ebuild
X-VCS-Directories: sys-libs/ncurses/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 60e01c45dba20077dc31fd1bf490806bdb87cd61
X-VCS-Branch: master
Date: Fri, 26 Aug 2022 06:36:48 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: c210bcfb-fc9f-44fe-8909-a35081b8fe6d
X-Archives-Hash: 0c602a3cde155426430ce640c57cf7ba

commit:     60e01c45dba20077dc31fd1bf490806bdb87cd61
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 26 06:35:11 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 26 06:35:39 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60e01c45

sys-libs/ncurses: add 6.3_p20220820

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/ncurses/Manifest                        |  36 ++
 sys-libs/ncurses/ncurses-6.3_p20220820-r1.ebuild | 426 +++++++++++++++++++++++
 sys-libs/ncurses/ncurses-6.3_p20220820.ebuild    | 424 ++++++++++++++++++++++
 3 files changed, 886 insertions(+)

diff --git a/sys-libs/ncurses/Manifest b/sys-libs/ncurses/Manifest
index 3631d0295529..5bb87254f0a1 100644
--- a/sys-libs/ncurses/Manifest
+++ b/sys-libs/ncurses/Manifest
@@ -54,5 +54,41 @@ DIST ncurses-6.3-20220416.patch.gz 67896 BLAKE2B c95a993f51beb87bb9891bd0eee0872
 DIST ncurses-6.3-20220416.patch.gz.asc 729 BLAKE2B 52ab1bfcac4b5d7b3733c399509ba4c0a6b9531c02a05846d39344488ba3a9196326a8126db225845a3ff1ca3fdd609fa1d9264583e7e57e28d2f4e3b58b4389 SHA512 c5a60d2ef9996c02264e6656a966f4be910a3acbee777a4ff2a5131efd156bdf1d32418a39d6e3c07fcbb59c75554d4cc1e7e9f84f5b59f69e7e4c17fafc749f
 DIST ncurses-6.3-20220423.patch.gz 3394 BLAKE2B ac93810f1e826fc82de72a85effe5479576af14fa86e0dd08b8823b6f4652922f79242e9c867b1c864f0049c9e6d9864d6efc9282ab1e734dc316cac05655f4c SHA512 5dc87f70793d8319c5ee2f07c7f9432b1128e05f3aa2841a74deeaf294e46859f4198483dc783bb80e5e98f81f05cfef148df75a5abc5acfa69a9d6ad3abb702
 DIST ncurses-6.3-20220423.patch.gz.asc 729 BLAKE2B 7225d28f7e61ae584183e98d8c93c7d470e96984aea4e462333f115c329a8c187927196447b8368949986d4b8c96086f5839fde5b442936e76ac797685ee109b SHA512 b0eecbdad448f193fb255bec2fa458d3fea972c181891882d8dc1e09cc325ecda38e98f2d410993f768f513f3a48b9be4b36dbb2919d82a778496b8ef2051565
+DIST ncurses-6.3-20220430.patch.gz 8987 BLAKE2B bd9d2b39670718277dd71b22fab41b311ef3732b4c3ccf77c796dafd24f7e0ae3a7a759340fa734425728b32ae6b4719b77862d64155fff906a9be01eda14b69 SHA512 7bab780d96404c7e368363ce8a41d5fa1668df9daed62753112541a1ee1da04ef6f3d8d3c06a7442b704c477bbff1b4544f419e532ec7bbfbddd630f66f138ce
+DIST ncurses-6.3-20220430.patch.gz.asc 729 BLAKE2B 8308cf7483087d516756e8a16dd29e5137efc35bce1cb73454b022302dfb77da92357aa0a716dccd0be83534a92467837d199deb1f7765da57323dd1cf95ed92 SHA512 c022fdae0880d56bee1fcd9076e64619bbdf09737484f89fab4c7c5d2c4b4fad236e42cc30c9557463cfd05a9c1d7b87bf3a5aa2904a79ba5a071463f3ac422d
+DIST ncurses-6.3-20220501.patch.gz 1920 BLAKE2B d4b3b23219d43bbaeb42fbe44034f5f0cfd2c24527ab8690f882f42dbd9855d4686a49734d3b2e5f1c6692847149bd6b62fd9ad9d3dd283156ea39441334fc65 SHA512 43b91e96aa067960aee3c42f65bd0ef91ad78360f30a25cb0637f96ad69d40ccf943c888d982521c6d1851fe4590692ecf6cdb4467757a33e901f53ea2e6eac0
+DIST ncurses-6.3-20220501.patch.gz.asc 729 BLAKE2B d32d3ecb5c6f91943179799eccfd536d7a57739dcac62dd7ae9bbf1b4a0491aa4aff7ae147e9e9353ad37bba89475f0d0a408cfa41b3812a48c42055240f1a6c SHA512 177951901957534f78cd2d71045ff8d9457fee426aea830739ece24d69689605c9f2b99be0fbb6d9ca34d6f5894a7bfb594faa2e7a69a87def44695988548375
+DIST ncurses-6.3-20220507.patch.gz 7625 BLAKE2B a7598b9b5b2f6d871e7eb8b11de39964954222a2837377e656e9d1f83002ef47478bf7776b54fc63a085de265f9be1b60d0b039ec77c5c3eb01107ff9158ecad SHA512 f688c38a809f60734efbf5bd07645faa4716c9b263d5edb284ae9a2f2cde5284b8698dd5a3988f433b969e9d26e74451f5c996ada2d7aa7760177d7f9c104f19
+DIST ncurses-6.3-20220507.patch.gz.asc 729 BLAKE2B 5653edd427ead8dc6540b45860380a8066bb3b8ba3015b0858e57c8696defdd99e6d19aa1a6ec269ddfea7a97630a901c4e29680a847070503d4659f9d533dd0 SHA512 f66ae09c989a229d7a8faf9bef7764de08f9a9cd9ffb8b35bfc7421cc8b942428bfdb8918c6f038d3f5e1697d1cdf49a02218b05175515b4e0bf29ed139c3199
+DIST ncurses-6.3-20220514.patch.gz 3612 BLAKE2B 73b151ba2e7bbac38067035bfb742d26f7d0e745ef176b7de56e00d930da3bf630030acede3fa6c63fbad41819e7b90f14848a1ea0d2a07473228dbd32ef7f4d SHA512 b69ac7b2469d7b97404a0dd5d57f6a06c88e139b0bf69627d8e1b65373b513544dfd1583d2fc95ed40ec131f49c90667b65ca2c513eccf785ddcc3b470b1dc17
+DIST ncurses-6.3-20220514.patch.gz.asc 729 BLAKE2B 6e2acb6ee12785aea5a3d881d6cbbfde0579ea4975d6a2b5a412e1fd8a6fa63df88c20013535e38da7f9fd8b2eddbade80da7a9d80a1e72229d89a042678836a SHA512 3cdd8d9ba80ceb3ac359265a8d8479ed9827c7abaa13562069dc2ed819b933b07a00bbf1a280551d30fc97e8d45bddcf0999d282521541244499873892618b94
+DIST ncurses-6.3-20220521.patch.gz 7405 BLAKE2B 788601d52671421c26fc4a6b4c8a5bcdd807a7d88c6636e24a11c70a32f35a7c50bd6f7166f9cc12e30134c49220070c432b3fa72004eb52e15912528d0d7aaf SHA512 58dd6f51e1d9bdb394cc8e86c8f14b953a0749cbd05ae4b114da482dc5c93878ae6fff6f8993194d9ff94461c6e9e38803418812f38d087729d42dff69c738fb
+DIST ncurses-6.3-20220521.patch.gz.asc 729 BLAKE2B 34daeb98a3cf36a0c6a471e617f07496fa173d1b57158d9052ebf94e11c65c61b26a8c884c83104cd4e9c62abdc0abf44ecc680c19751bec7c1d2bdd40fe4018 SHA512 a6d1a14032fab5de28df2efedcbc065a07d9c7da1eafa0efd380df42b479c7e9e3a73381fe7d1243e5abad82d3d01dad645b7876fcc16e723aea8d2c6542fb75
+DIST ncurses-6.3-20220529.patch.gz 5923 BLAKE2B 88f9b87a426b1384b62234b59b6b4655f6af0a1b0100e17c971e419d2ed1ec3a197b3a44b2b82d6550a62323f71efd0a0774df26bc653a7543f3646d88679470 SHA512 9f8c0b91f98c72e0892e9369e0f95aa56699b27d28d68febf746bac07fab75883461f363cdc6da0bf4c5b340287ba4e4c076b00c89550821990bba059f56d5f4
+DIST ncurses-6.3-20220529.patch.gz.asc 729 BLAKE2B af52d71d2b04b11404d5ff468869b7f633c367d10a9a7f43ca198b98fe255b032af837efafafd13dc8aebbfb5f919b453a7850c7d2dcc8b2f5375bbe3e0ee9e9 SHA512 d7aec9551acde75089a097b848125c5f4501751e58c800e40dd5b7234240c039b10de97ad2a70404f9b178a94ee4a3b8484a94fb6aca4599122c6a527161572e
+DIST ncurses-6.3-20220604.patch.gz 8200 BLAKE2B ee331e4467071d3f6655df009966f18aae2a25dca3d24272cedf54d7ee50cd2600cee71a835c11983b168b1dabe1193731cffcbab2773b650dd768f6dd8840c4 SHA512 2d0e2139ee9a43de6b4a10df5c44bcf1fed9919c3e254b9ca0d16fb37b0858e14cc10acbb0027522b0cb64f058d61b3aad3b8178fb6d634a4da57f30ed505e95
+DIST ncurses-6.3-20220604.patch.gz.asc 729 BLAKE2B b9a9b0d90b6f4a19a9aa9e006b6cf9dad0e927c02605af63c6c67a7025f9090a4b76fbb3e758f11e9a0c2e557ed65851ddbd7c831486c851e1d469d7dd16da8a SHA512 acd57c8b27fce2b04bdadcbf2ff82e34aafcdb72b9b2d3a913abf56467f78ce601c70aae93e4959269656adf5562799ba4d9e4aeb6965f4e57fc37577ffb64bf
+DIST ncurses-6.3-20220612.patch.gz 3474 BLAKE2B 67c4820457291e5f325119220631debef475fdf95d66c283616898cb454b281a73e5dee8404c1730b5ca10bc3521a2243f26dadce8c02f082ce1d0fa30c50189 SHA512 ccf89a98a095c6c498170b831cfeff24d1329d7f5007be82463699595e1c6dc01e0b458d456a5b8bda4e8faceced1a4d8f1c1bca7def54a3c6c6c2a2c43e36c6
+DIST ncurses-6.3-20220612.patch.gz.asc 729 BLAKE2B ba1dedfa9a4e83bc85716cb89507e73f44750f14bbe41fb439f764b71477d1dd4df600b4111f465aa80bf37adbea75359442eee48e70e90b8715d0f13bbe13ed SHA512 c8260b56019a3c44c7708b9b41e043871eb06a6e8847d085acbf0a901c39f025b51b41f6ade8863b3fa2460c66cc52571880420d454168e742479bbf7769c5c4
+DIST ncurses-6.3-20220618.patch.gz 5376 BLAKE2B b4ecfc699c0ad8d5f17f5883aee6a7b700495f8db151e68518ae567fc22afbc738796b99ddcd03c0e0f44036fca459d742a2069e794ab476b1183c970ec4c573 SHA512 1efada728e34ca7d4bf1e73bceea18e2334a27ff09872eadcc63988a9d6e6f1fdc5eab717d114805cc5610ec9b35ca00e54931d6503afd5543d035108c788148
+DIST ncurses-6.3-20220618.patch.gz.asc 729 BLAKE2B 9f3b6f6a077b20baa03bec84db9119061777aaa307613b2e22092c743772cc920a3621ac1b0216285f6ebd74737fc09221b8f8103d69dfbf334c5f53e6428054 SHA512 10efd950619625bc673ea88db1bc22d09ddf92910ba204e8bebd029f48f098ec8a35351f368881fcf890d8862fccc3d31b8ba73d1b32acc71722e777f4a3a3c4
+DIST ncurses-6.3-20220625.patch.gz 9730 BLAKE2B ac99b401c51b71df71dab8075d0ea29016a4b159e24773704598bdede7d91ad051633869a9bb0a42ad701995895f5acb711731c0954573c29bca0c9efd70bdf7 SHA512 dc707393050116c0351b132d4b20e9782e2e9920c31ffa101518714431a7a424b05ad2cc23bfc977ff96d4cb6199ab6e98e4204803370c0d557ee65cf84ef870
+DIST ncurses-6.3-20220625.patch.gz.asc 729 BLAKE2B 67790febe058f9e910ac69472ca91370dccdbdd986665f2f864cce50aa4350f77894b3aec3fd3a080d546a201f17d942e311bbee057ba6979ab7c56e1e2270dd SHA512 c4ed979bc34293ebe6e5b1dab099c8ab5f7d1d6dfdfe877e02b6182756b754706a827ac30a41c163582ca9d79a086df9c9ad6f09a55884dd04752adf37c4064c
+DIST ncurses-6.3-20220703.patch.gz 15771 BLAKE2B 8d0b406aee1b432e4a0cedbd68dd86d30d3116c303b72d7e6e4636e870b05f942ae8d8538a0f9118412350718683cbc014f98d5fc22914a14e2eeae740ad89f8 SHA512 68f4e7822077405ee29470a95aa66d284d2defd0e2ccdca12d58e417999b964657ae4170b54977430d859b840998042efe0f36ca41aab007062c53b409b2d467
+DIST ncurses-6.3-20220703.patch.gz.asc 729 BLAKE2B fb052729d5259ed6a7381566c400060a08af6caf6753cbfe82a6c5c2cfac1eaa82b59b6c533aad5ed06a6d527ef31f7ce46c49365386e1735bb5027f2f00d98f SHA512 ae9b8cc007f3b017a021430181ee92ef0dcbed1603c84b21148d0950b823a0cc50ec3ee2cc97880c24080bf8feb5a6152d104bffe39333466ee98cd07333e66d
+DIST ncurses-6.3-20220709.patch.gz 3567 BLAKE2B 97a8106bb64c3f32ca0984dfdbb8cb0b3e5822e726cd08826989cf09cf13ae0afe97b84b728620aef2bdf40f5ca54fd8e81fa354602cb80e98f73861f081408c SHA512 b35516f07614533c40559e3ce2346e51ed93f5c0f127ef076a96d4aa4bbb717f6456765d37034e8479a981194216cd0cd6c45e266715e46a155eb496653cc56c
+DIST ncurses-6.3-20220709.patch.gz.asc 729 BLAKE2B b2d4aa3c15c315a0f09fff8bb9c74595f28aac242fc8eba4bbff53c2d63fe5ca5e0e1356fb88c31df565ceff08065b2da29a961173a7f86c16ad849ba9212616 SHA512 faec18d2a7cf179e1c11dcd76406a790ae254da543ceb666bef2fa3d6a9d03c11ffec0c45495b40691567337895153ebffd6d7b3b30294d0ee707966b99bfdd3
+DIST ncurses-6.3-20220716.patch.gz 26266 BLAKE2B da5b2e610fd32a50694971ed3cd91d4e919d9ae1c7a7077269e8ffadda2717447eef41ff7c7bee42f5ab2363600a417306f40f8429ffeae318c9888e6dd66c38 SHA512 b591df49a00ac3ab717b01c53f7bae47b9aedf30dfeea549ab5a7bf9d366ad653c6d7d0a610ed70e3f3b3ebb18f7d1867ac95f0fb740aecf0343fe1639898230
+DIST ncurses-6.3-20220716.patch.gz.asc 729 BLAKE2B cb6da7708351abaf08ae815c46a994ff81c9b15e6ba7de3e98fe238b274ccfee4bbc31e5707b0cde0b018eaa8d708ae3d10d006eca81a33ca8480f55faec64bf SHA512 4b9da2b760ebc6d3731dc8e5974128ab88b9a170bc3d609b4656c420cdf3f2da6ae4952a9fb6700e926d6a90080caba6ec439fe79d5a9e33d8add31dc1a0b25f
+DIST ncurses-6.3-20220724.patch.gz 9302 BLAKE2B 4d54e2fb503f946608c8c6dcc53129a61a8d210a1db03a87f12e2acc3d8a423bba792929e1f845ffca2eb5041f27d399b685c697c53f65ddc340d9177675ed08 SHA512 eeb5e82bce1199ea4c968b5e8102ca84f1f9a88d5ea7707caf4b24ca51c76aaea0c721b8fb8c373e9e595e7621e320d63a2ed5f387aec777c119c3b87dbba06a
+DIST ncurses-6.3-20220724.patch.gz.asc 729 BLAKE2B 580e4c14f62defbe21e77936cc7f797c3fe42b78c8a451ebaa9c426c25d770d1ddf66447abdb3c703defb46bd436e4342c649b46999337cf11a80e57ddeae48d SHA512 e6c515dda6a9404247693f5f99efa2ab3297042e44a94da99d4e5d1e1b42c0966a874850c5f3e429e0466ca6ed910879a65f7e22dd5210bb3549f8c5a039e3ca
+DIST ncurses-6.3-20220729.patch.gz 85147 BLAKE2B b094798cc56db06e0d13bbffd073eff080822244039984b339a18cb2337d979b6b75acaf61b1392ad3818e1e5234ea274491b15ac2686064c8ad5ddb6453d885 SHA512 d8a515a46277de407cc7f58523fd99ec8d6cb9688740cad7ea743bd3610b62b5cb0fd4d8570bf1a83f7dd0f8887381aea9e4bdde084637f4cbe58ee206a2db4f
+DIST ncurses-6.3-20220729.patch.gz.asc 729 BLAKE2B 8d04bd485ad53f6c2cd18dd1966ddc76d6f1e6f43f9a30635732a49b249a3162d192159f90540ed8102fada9bc3d204f4209ba1a403bcfd7dacbc08cb93994f4 SHA512 927a97416043ce7be208549b7c4f61bae48328e6c04136c45555f95836f7ab538c2e8b850d0c7dee3e0b279597f1f6621fccda8fac7aef7ddb59d764e3052d60
+DIST ncurses-6.3-20220806.patch.gz 2491 BLAKE2B 7cae7ba5cec0e52a2f24088dc33191eb12ded64eddb753879b1edc49e81276f5d2aa205da851a21e6884d72b70e683a711b13faf69444fe06da03170cbf23653 SHA512 adc1a7e4c106e12cbac9bda467d8ec3d7dccbed2c67ec74faa32cf8cbbf5897e4c041ac02e94ecd8266de46aae9ce4060dceea224265a9c5532160ca9a494151
+DIST ncurses-6.3-20220806.patch.gz.asc 729 BLAKE2B fb8ce4c6bd63e0abd611c90c967efe749140fd811ea9ee91cda63343f1c9545ea8814e606742d00fedda2a461141d2dccec778a0ccece6e0213db1d7b636a0ff SHA512 215efa0da6980ded3f5b4d980cfed6268a6b5c157d4ce76e46cbce3055ac875bcbab5e605d4426e0c221316f5922b9e92b105af08686d4f798f88d400adeff3a
+DIST ncurses-6.3-20220813.patch.gz 11762 BLAKE2B e8a269aef28639deccf5db2fc2e649361dac134210bbba6b4e4e9fbbacae2900aa6cbbe00cead74a1f18ff0f00e2c54be607b17fb1e0cacfc0be95af5761dcf3 SHA512 57f5801bfe19922f67b3d65af60b5b9f3177955f26e08978594cc88681a1a3a465ee754548574b206ca607bd4c04f71cfd1c195ed396ea30d94f56ce580274e2
+DIST ncurses-6.3-20220813.patch.gz.asc 729 BLAKE2B e964291deb463dbce2dace974e2d7d6dffa8656d6b3f1b3f5651e0df8bae0bbb3edfcfdd02ef016bd0d452610bd329230ebc0bf5dd0d747fa88608a4f18ee73f SHA512 ff8e14a50165d0281b4a48d96a211e9c613d95ad20d78e261e1febbb17a9b8415351a38f594ce1c06707fada76b9a15ccbc5ba532cd4074e8a89d6571ade7918
+DIST ncurses-6.3-20220820.patch.gz 32018 BLAKE2B 14a29ee43c4d8df82a9f939ef4e028a482a8695feb89fdf6ec234410e3c1db105a4610f71f04c94acb322ff7d474196e4cb472ea5bbfdb7ce57e57c9a07c9139 SHA512 bdc458134e9c0c50c6e8aeeb44f05292f838d147186f2be5f8c872a43b376a66482ad7dec7aaa8a3facecd2c404ed5309cc744a6173b0570c6bfb0db40385619
+DIST ncurses-6.3-20220820.patch.gz.asc 729 BLAKE2B 93179103d5465b5ddff8513a383099bbf07993a1286a164b69d213c176cc39144fc8afb407fbbb2596d975bd7017b677f75609fe8ddaa3415f46cc73c5bdcbe3 SHA512 5e589d29903a2c6c1e85dfb64d7267e3528d65e49a7c4851318139142524bed4824dd787f980b2fbe8327f0b804ecea1ca94bbb6c7615fee9d993ea6d1568773
 DIST ncurses-6.3.tar.gz 3583550 BLAKE2B b2c174ac48d587b4d3aa054f04e4ec8bffd8a657a4aff5f090104965c741901e600712c8f8e5e98f3b8a26bc558996a1e14a746f113854832853b855e9d406c3 SHA512 5373f228cba6b7869210384a607a2d7faecfcbfef6dbfcd7c513f4e84fbd8bcad53ac7db2e7e84b95582248c1039dcfc7c4db205a618f7da22a166db482f0105
 DIST ncurses-6.3.tar.gz.sig 438 BLAKE2B d7f9852292110fe7a048a9e38611ea06564b5142cb4cbeb8d99bba752d5df8eeffa3b57e5ca315c14024520bc008b30650e99669c995dca05a798399a0c85d39 SHA512 b9a2a25e0b1854c272bf89c610c81fc0ba061f0296eca5c0079a79cfe310e44eb16c46eb5a0dd018f1ca9114d569c9d5087a2b8e60b0344f1eb97f7c5addafc6

diff --git a/sys-libs/ncurses/ncurses-6.3_p20220820-r1.ebuild b/sys-libs/ncurses/ncurses-6.3_p20220820-r1.ebuild
new file mode 100644
index 000000000000..ee652af5700d
--- /dev/null
+++ b/sys-libs/ncurses/ncurses-6.3_p20220820-r1.ebuild
@@ -0,0 +1,426 @@
+# 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
+		20220423
+		20220430
+		20220501
+		20220507
+		20220514
+		20220521
+		20220529
+		20220604
+		20220612
+		20220618
+		20220625
+		20220703
+		20220709
+		20220716
+		20220724
+		20220729
+		20220806
+		20220813
+		20220820
+
+		# 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
+
+	# 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() {
+	# 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_p20220820.ebuild b/sys-libs/ncurses/ncurses-6.3_p20220820.ebuild
new file mode 100644
index 000000000000..d911bf424397
--- /dev/null
+++ b/sys-libs/ncurses/ncurses-6.3_p20220820.ebuild
@@ -0,0 +1,424 @@
+# 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
+		20220423
+		20220430
+		20220501
+		20220507
+		20220514
+		20220521
+		20220529
+		20220604
+		20220612
+		20220618
+		20220625
+		20220703
+		20220709
+		20220716
+		20220724
+		20220729
+		20220806
+		20220813
+		20220820
+
+		# 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
+}