ezbuild/modules/custom-patches.ezmod

22 řádky
599 B
Plaintext
Surový Trvalý odkaz Normální zobrazení Historie

2012-01-17 15:09:21 +01:00
# Copyright 2010-2012, Asio Software Technologies
# Distributed under the terms of the GNU General Public License v3
EZMOD_DESCRIPTION="Applies custom patches onto generated Portage tree"
EZMOD_COMPATIBILITY="ezsync"
EZMOD_AUTHOR="Rafal Kupiec"
2012-01-17 23:26:41 +01:00
EZMOD_VERSION="1.2"
2012-01-17 15:09:21 +01:00
ezsync_precommit() {
local PATCH PREFIX
2012-01-17 23:26:41 +01:00
if [ "${CUSTOMPATCHES}" != "" ]; then
2012-01-17 15:09:21 +01:00
printInfo "Applying custom patches..."
2012-01-17 23:26:41 +01:00
for PATCH in ${CUSTOMPATCHES}; do
applyPatch "${PORTAGESDIR}/${PORTAGE_BUILD[0]}" "${PATH}"
if [ ${?} -ne 0 ]; then
printError "Patch ${PATCH} does not fit!"
return 1
fi
2012-01-17 15:09:21 +01:00
done
fi
return 0
}