Blame subr/pkg_configure_patch.subr

Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
#
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
pkg_configure_patch() {
Lucio Andrés Illanes Albornoz (arab, vxp) e49766
	local _patch_fname _patches_done;
Lucio Andrés Illanes Albornoz (arab, vxp) e49766
	set +o noglob;
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
	for _patch_fname in 																\
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
			${WORKDIR}/chainport-host-invariants/chainport/${PKG_NAME%_host}${PKG_VERSION:+-${PKG_VERSION}}.midipix.patch			\
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
			${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}/*.patch										\
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
			${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}.local.patch						\
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
			${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}${PKG_VERSION:+-${PKG_VERSION}}.local@${BUILD_HNAME}.patch				\
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
			${PKG_NAME_PARENT:+${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME_PARENT}/*.patch}							\
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
			${PKG_NAME_PARENT:+${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME_PARENT}${PKG_VERSION:+-${PKG_VERSION}}.local.patch}			\
Lucio Andrés Illanes Albornoz (arab, vxp) 22d45a
			${PKG_NAME_PARENT:+${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME_PARENT}${PKG_VERSION:+-${PKG_VERSION}}.local@${BUILD_HNAME}.patch}; do
Lucio Andrés Illanes Albornoz (arab, vxp) 32ad21
		if ! ex_lmatch "${_patches_done}" " " "${_patch_fname}"\
Lucio Andrés Illanes Albornoz (arab, vxp) e49766
		&& [ -r "${_patch_fname}" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
			patch -b -d "${PKG_BASE_DIR}/${PKG_SUBDIR}" -p1 < "${_patch_fname}";
Lucio Andrés Illanes Albornoz (arab, vxp) e49766
			_patches_done="${_patches_done:+${_patches_done} }${_patch_fname}";
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) e49766
	set -o noglob;
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
};
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
Lucio Andrés Illanes Albornoz (arab, vxp) 570129
# vim:filetype=sh