reGen2 Linux Release Metatool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

custom-patches.ezmod 599B

123456789101112131415161718192021
  1. # Copyright 2010-2012, Asio Software Technologies
  2. # Distributed under the terms of the GNU General Public License v3
  3. EZMOD_DESCRIPTION="Applies custom patches onto generated Portage tree"
  4. EZMOD_COMPATIBILITY="ezsync"
  5. EZMOD_AUTHOR="Rafal Kupiec"
  6. EZMOD_VERSION="1.2"
  7. ezsync_precommit() {
  8. local PATCH PREFIX
  9. if [ "${CUSTOMPATCHES}" != "" ]; then
  10. printInfo "Applying custom patches..."
  11. for PATCH in ${CUSTOMPATCHES}; do
  12. applyPatch "${PORTAGESDIR}/${PORTAGE_BUILD[0]}" "${PATH}"
  13. if [ ${?} -ne 0 ]; then
  14. printError "Patch ${PATCH} does not fit!"
  15. return 1
  16. fi
  17. done
  18. fi
  19. return 0
  20. }