diff options
Diffstat (limited to 'bin/phase-helpers.sh')
-rw-r--r-- | bin/phase-helpers.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh index 3f02c0701..3230870c2 100644 --- a/bin/phase-helpers.sh +++ b/bin/phase-helpers.sh @@ -598,6 +598,21 @@ _eapi4_src_install() { fi } +_eapi5_src_prepare() { + apply_user_patches +} + +apply_user_patches() { + die "apply_user_patches is not supported with EAPI ${EAPI}" +} + +_eapi5_apply_user_patches() { + # This is a no-op that is just enough to fullfill the spec. + [[ -f ${PORTAGE_BUILDDIR}/.apply_user_patches ]] && return 1 + > "${PORTAGE_BUILDDIR}/.apply_user_patches" || die + return 1 +} + # @FUNCTION: has_version # @USAGE: <DEPEND ATOM> # @DESCRIPTION: |