diff options
Diffstat (limited to 'sys-libs/readline/readline-8.1_p2-r1.ebuild')
-rw-r--r-- | sys-libs/readline/readline-8.1_p2-r1.ebuild | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/sys-libs/readline/readline-8.1_p2-r1.ebuild b/sys-libs/readline/readline-8.1_p2-r1.ebuild index f05a1ab99847..50064ec142ee 100644 --- a/sys-libs/readline/readline-8.1_p2-r1.ebuild +++ b/sys-libs/readline/readline-8.1_p2-r1.ebuild @@ -27,6 +27,7 @@ case ${PV} in *) SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz" + SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/readline-8.1-rlfe-c99.patch.xz" SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${MY_P}.tar.gz.sig )" if [[ ${PLEVEL} -gt 0 ]] ; then @@ -77,15 +78,30 @@ PATCHES=( "${FILESDIR}"/${PN}-8.0-headers.patch "${FILESDIR}"/${PN}-8.0-darwin-shlib-versioning.patch "${FILESDIR}"/${PN}-8.1-windows-signals.patch - "${FILESDIR}"/${PN}-8.1-rlfe-c99.patch + "${WORKDIR}"/${PN}-8.1-rlfe-c99.patch ) -# Needed because we don't want the patches being unpacked -# (which emits annoying and useless error messages) src_unpack() { - verify-sig_src_unpack + local patch - unpack ${MY_P}.tar.gz + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + else + if use verify-sig; then + verify-sig_verify_detached "${DISTDIR}/${MY_P}.tar.gz"{,.sig} + + for patch in "${MY_PATCHES[@]}"; do + verify-sig_verify_detached "${patch}"{,.sig} + done + fi + + unpack "${MY_P}.tar.gz" + unpack readline-8.1-rlfe-c99.patch.xz + + #if [[ ${GENTOO_PATCH_VER} ]]; then + # unpack "${PN}-${GENTOO_PATCH_VER}-patches.tar.xz" + #fi + fi } src_prepare() { |