From 6b4b621f1abcf21d3bfa54b323126a3ef11eb52c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 29 Aug 2012 22:04:42 -0700 Subject: EAPI 5: User patches (no-op dummy stub for now) A real apply_user_patches implementation will be a bit more work, so for now we'll just implement the minimum amount necessary to satisfy the spec: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=a8bf7862967cce36b7f1b408934a774126da2538 --- bin/phase-helpers.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'bin/phase-helpers.sh') 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: # @DESCRIPTION: -- cgit v1.2.3-1-g7c22