# Copyright 2011-2014 Andrey Ovcharov # Distributed under the terms of the GNU General Public License v3 # $Header: $ # @ECLASS: upatch.eclass # This file is part of sys-kernel/geek-sources project. # @MAINTAINER: # Andrey Ovcharov # @AUTHOR: # Original author: Andrey Ovcharov (12 Aug 2013) # @LICENSE: http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3 # @BLURB: Eclass for building kernel with user patchset. # @DESCRIPTION: # This eclass provides functionality and default ebuild variables for building # kernel with user patches easily. # The latest version of this software can be obtained here: # https://github.com/init6/init_6/blob/master/eclass/upatch.eclass # Bugs: https://github.com/init6/init_6/issues # Wiki: https://github.com/init6/init_6/wiki/geek-sources case ${EAPI} in 5) : ;; *) die "upatch.eclass: unsupported EAPI=${EAPI:-0}" ;; esac if [[ ${___ECLASS_ONCE_UPATCH} != "recur -_+^+_- spank" ]]; then ___ECLASS_ONCE_UPATCH="recur -_+^+_- spank" inherit patch vars EXPORT_FUNCTIONS src_prepare # @FUNCTION: src_prepare # @USAGE: # @DESCRIPTION: Prepare source packages and do any necessary patching or fixes. upatch_src_prepare() { debug-print-function ${FUNCNAME} "$@" ApplyUserPatch } fi