diff options
author | 2022-04-28 01:48:51 +0100 | |
---|---|---|
committer | 2022-04-28 01:55:14 +0100 | |
commit | 55e7e5fa8971cfd51af245c415b07913845dd2f4 (patch) | |
tree | 9ae73835ce62c02126809e303c63dc359cffaf3e /sys-libs/ncurses | |
parent | net-libs/libslirp: add 4.7.0 (diff) | |
download | gentoo-55e7e5fa8971cfd51af245c415b07913845dd2f4.tar.gz gentoo-55e7e5fa8971cfd51af245c415b07913845dd2f4.tar.bz2 gentoo-55e7e5fa8971cfd51af245c415b07913845dd2f4.zip |
sys-libs/ncurses: tidy up src_prepare
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs/ncurses')
-rw-r--r-- | sys-libs/ncurses/ncurses-6.3_p20220423-r1.ebuild | 8 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-6.3_p20220423.ebuild | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/sys-libs/ncurses/ncurses-6.3_p20220423-r1.ebuild b/sys-libs/ncurses/ncurses-6.3_p20220423-r1.ebuild index 4b058013e9b3..1d04632af4e3 100644 --- a/sys-libs/ncurses/ncurses-6.3_p20220423-r1.ebuild +++ b/sys-libs/ncurses/ncurses-6.3_p20220423-r1.ebuild @@ -101,8 +101,12 @@ PATCHES=( src_prepare() { if [[ ${PV} == *_p* ]] ; then - #eapply "${WORKDIR}"/${P/_p/-}-patch.sh - eapply "${WORKDIR}"/ + 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 diff --git a/sys-libs/ncurses/ncurses-6.3_p20220423.ebuild b/sys-libs/ncurses/ncurses-6.3_p20220423.ebuild index 7123b8237c1d..bcfee98f91ee 100644 --- a/sys-libs/ncurses/ncurses-6.3_p20220423.ebuild +++ b/sys-libs/ncurses/ncurses-6.3_p20220423.ebuild @@ -101,8 +101,12 @@ PATCHES=( src_prepare() { if [[ ${PV} == *_p* ]] ; then - #eapply "${WORKDIR}"/${P/_p/-}-patch.sh - eapply "${WORKDIR}"/ + 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 |