diff options
author | Sam James <sam@gentoo.org> | 2022-09-09 13:38:48 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-09-09 13:39:19 +0100 |
commit | 3af14d6d35ff6cef88c5e21642f2b95d10d0bc44 (patch) | |
tree | 62d98473ea7d9d740ff7f8fb5883a0dff4813f78 /sys-libs | |
parent | sys-libs/ncurses: use hosted patchset for 6.3_p20220903 (diff) | |
download | gentoo-3af14d6d35ff6cef88c5e21642f2b95d10d0bc44.tar.gz gentoo-3af14d6d35ff6cef88c5e21642f2b95d10d0bc44.tar.bz2 gentoo-3af14d6d35ff6cef88c5e21642f2b95d10d0bc44.zip |
sys-libs/ncurses: tweak patch logic
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/ncurses/ncurses-6.3_p20220903-r1.ebuild | 11 | ||||
-rw-r--r-- | sys-libs/ncurses/ncurses-6.3_p20220903.ebuild | 13 |
2 files changed, 17 insertions, 7 deletions
diff --git a/sys-libs/ncurses/ncurses-6.3_p20220903-r1.ebuild b/sys-libs/ncurses/ncurses-6.3_p20220903-r1.ebuild index c8f854c99411..9985db97618b 100644 --- a/sys-libs/ncurses/ncurses-6.3_p20220903-r1.ebuild +++ b/sys-libs/ncurses/ncurses-6.3_p20220903-r1.ebuild @@ -14,6 +14,11 @@ 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 )" +GENTOO_PATCH_DEV=sam +GENTOO_PATCH_PV=6.3_p20220903 +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 @@ -103,7 +108,7 @@ if [[ ${PV} == *_p* ]] ; then unset my_patch_index fi - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-6.3_p20220903-patches.tar.xz" + SRC_URI+=" https://dev.gentoo.org/~${GENTOO_PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${GENTOO_PATCH_NAME}.tar.xz" fi LICENSE="MIT" @@ -134,7 +139,7 @@ PATCHES=( # # For the same reasons, please include the original configure.in changes, # NOT just the generated results! - "${WORKDIR}"/${PN}-6.3_p20220903-patches + "${WORKDIR}"/${GENTOO_PATCH_NAME} ) src_unpack() { @@ -145,7 +150,7 @@ src_unpack() { if [[ ${file} == ${MY_P}.tar.gz ]] ; then verify-sig_verify_detached "${DISTDIR}"/${file} "${DISTDIR}"/${file}.sig else - [[ ${file} == @(patches.tar.xz|*.asc|*.sig) ]] && continue + [[ ${file} == @(*${GENTOO_PATCH_NAME}.tar.xz|*.asc|*.sig) ]] && continue verify-sig_verify_detached "${DISTDIR}"/${file} "${DISTDIR}"/${file}.asc fi diff --git a/sys-libs/ncurses/ncurses-6.3_p20220903.ebuild b/sys-libs/ncurses/ncurses-6.3_p20220903.ebuild index 389f5c864ed5..eb7e04b8ff07 100644 --- a/sys-libs/ncurses/ncurses-6.3_p20220903.ebuild +++ b/sys-libs/ncurses/ncurses-6.3_p20220903.ebuild @@ -14,6 +14,11 @@ 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 )" +GENTOO_PATCH_DEV=sam +GENTOO_PATCH_PV=6.3_p20220903 +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 @@ -103,13 +108,13 @@ if [[ ${PV} == *_p* ]] ; then unset my_patch_index fi - SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-6.3_p20220903-patches.tar.xz" + 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" +#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 )" @@ -134,7 +139,7 @@ PATCHES=( # # For the same reasons, please include the original configure.in changes, # NOT just the generated results! - "${WORKDIR}"/${PN}-6.3_p20220903-patches + "${WORKDIR}"/${GENTOO_PATCH_NAME} ) src_unpack() { @@ -145,7 +150,7 @@ src_unpack() { if [[ ${file} == ${MY_P}.tar.gz ]] ; then verify-sig_verify_detached "${DISTDIR}"/${file} "${DISTDIR}"/${file}.sig else - [[ ${file} == @(patches.tar.xz|*.asc|*.sig) ]] && continue + [[ ${file} == @(*${GENTOO_PATCH_NAME}.tar.xz|*.asc|*.sig) ]] && continue verify-sig_verify_detached "${DISTDIR}"/${file} "${DISTDIR}"/${file}.asc fi |