mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
apache-2.eclass: Handle PATCHES array. Added epatch_user.
This commit is contained in:
@@ -23,7 +23,7 @@ case ${EAPI:-0} in
|
||||
:;
|
||||
;;
|
||||
6)
|
||||
die "This eclass is not yet ready for EAPI-6"
|
||||
die "This eclass is not yet ready for EAPI-6. Please help porting it!"
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -453,6 +453,20 @@ apache-2_src_prepare() {
|
||||
|
||||
epatch "${GENTOO_PATCHDIR}"/patches/*.patch
|
||||
|
||||
if [[ ${EAPI} = 5 ]] ; then
|
||||
# Handle patches from ebuild's PATCHES array if one is given
|
||||
if [[ -n "${PATCHES}" ]] ; then
|
||||
local patchestype=$(declare -p PATCHES 2>&-)
|
||||
if [[ "${patchestype}" != "declare -a PATCHES="* ]] ; then
|
||||
die "Declaring PATCHES as a variable is forbidden. Please use an array instead."
|
||||
fi
|
||||
epatch "${PATCHES[@]}"
|
||||
fi
|
||||
|
||||
# Handle user patches
|
||||
epatch_user
|
||||
fi
|
||||
|
||||
# setup the filesystem layout config
|
||||
cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \
|
||||
die "Failed preparing config.layout!"
|
||||
|
||||
Reference in New Issue
Block a user