summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-07 12:02:21 +0100
committerSam James <sam@gentoo.org>2022-06-13 20:38:10 +0100
commit39a5d033d59067ce95cf212358e2ed7a03a2a94b (patch)
tree8ab6b72868ff7af2ff4d45bcb29eb6306792b340 /app-shells/bash/bash-9999.ebuild
parentx11-libs/libva-intel-media-driver: Version bump to 22.4.3 (diff)
downloadgentoo-39a5d033d59067ce95cf212358e2ed7a03a2a94b.tar.gz
gentoo-39a5d033d59067ce95cf212358e2ed7a03a2a94b.tar.bz2
gentoo-39a5d033d59067ce95cf212358e2ed7a03a2a94b.zip
app-shells/bash: switch to patch tarballs
Was taking up 129K in files/ before. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-shells/bash/bash-9999.ebuild')
-rw-r--r--app-shells/bash/bash-9999.ebuild19
1 files changed, 18 insertions, 1 deletions
diff --git a/app-shells/bash/bash-9999.ebuild b/app-shells/bash/bash-9999.ebuild
index 851264513714..9582f937a142 100644
--- a/app-shells/bash/bash-9999.ebuild
+++ b/app-shells/bash/bash-9999.ebuild
@@ -10,6 +10,10 @@ EAPI=7
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/chetramey.asc
inherit flag-o-matic toolchain-funcs prefix verify-sig
+# Uncomment if we have a patchset
+#GENTOO_PATCH_DEV="sam"
+#GENTOO_PATCH_VER="${PV}"
+
# Official patchlevel
# See ftp://ftp.cwru.edu/pub/bash/bash-5.1-patches/
PLEVEL="${PV##*_p}"
@@ -57,6 +61,10 @@ else
SRC_URI+=" verify-sig? ( ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz.sig )"
fi
+if [[ -n ${GENTOO_PATCH_VER} ]] ; then
+ SRC_URI+=" https://dev.gentoo.org/~${GENTOO_PATCH_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${GENTOO_PATCH_VER}-patches.tar.xz"
+fi
+
LICENSE="GPL-3"
SLOT="0"
if is_release ; then
@@ -79,6 +87,8 @@ BDEPEND="verify-sig? ( sec-keys/openpgp-keys-chetramey )"
S="${WORKDIR}/${MY_P}"
PATCHES=(
+ #"${WORKDIR}"/${PN}-${GENTOO_PATCH_VER}/
+
# Patches from Chet sent to bashbug ml
"${FILESDIR}"/${PN}-5.0-syslog-history-extern.patch
)
@@ -101,8 +111,15 @@ src_unpack() {
if [[ ${PV} == 9999 ]] ; then
git-r3_src_unpack
else
- verify-sig_src_unpack
+ if use verify-sig ; then
+ verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.gz{,.sig}
+ fi
+
unpack ${MY_P}.tar.gz
+
+ if [[ -n ${GENTOO_PATCH_VER} ]] ; then
+ unpack ${PN}-${GENTOO_PATCH_VER}-patches.tar.xz
+ fi
fi
}