summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2006-07-19 19:19:00 +0000
committerJoerg Bornkessel <hd_brummy@gentoo.org>2006-07-19 19:19:00 +0000
commite07251a94137f9979a095fe2a86d5556344c3fe3 (patch)
tree51255f14ee6169ba4cc18d9f7e508cfa172bea35 /eclass/vdr-plugin.eclass
parentStable on hppa. (diff)
downloadhistorical-e07251a94137f9979a095fe2a86d5556344c3fe3.tar.gz
historical-e07251a94137f9979a095fe2a86d5556344c3fe3.tar.bz2
historical-e07251a94137f9979a095fe2a86d5556344c3fe3.zip
add function to apply local patches
Diffstat (limited to 'eclass/vdr-plugin.eclass')
-rw-r--r--eclass/vdr-plugin.eclass26
1 files changed, 24 insertions, 2 deletions
diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass
index a4def2266e6b..56a299bd5c38 100644
--- a/eclass/vdr-plugin.eclass
+++ b/eclass/vdr-plugin.eclass
@@ -1,9 +1,10 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.26 2006/07/08 15:28:15 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.27 2006/07/19 19:19:00 hd_brummy Exp $
#
# Author:
# Matthias Schwarzott <zzam@gentoo.org>
+# Joerg Bornkessel <hd_brummy@gentoo.org>
# vdr-plugin.eclass
#
@@ -45,6 +46,18 @@
# It could be used for special startup actions for this plugins, or to create the
# plugin command line options from a nicer version of a conf.d file.
+# HowTo use own local patches; Example
+#
+# Add to your /etc/make.conf:
+# VDR_LOCAL_PATCHES_DIR="/usr/local/patch"
+#
+# Add two DIR's in your local patch dir, ${PN}/${PV},
+# e.g for vdr-burn-0.1.0 should be:
+# /usr/local/patch/vdr-burn/0.1.0/
+#
+# all patches which ending on diff or patch in this DIR will automatically applied
+#
+
inherit base multilib eutils flag-o-matic
IUSE="debug"
@@ -113,7 +126,7 @@ vdr-plugin_pkg_setup() {
}
vdr-plugin_src_unpack() {
- [ -z "$1" ] && vdr-plugin_src_unpack unpack patchmakefile
+ [ -z "$1" ] && vdr-plugin_src_unpack unpack patchmakefile add_local_patch
while [ "$1" ]; do
@@ -169,6 +182,15 @@ vdr-plugin_src_unpack() {
-e '/@.*\$(STRIP)/d'
eend $?
;;
+ add_local_patch)
+ if test -d "${VDR_LOCAL_PATCHES_DIR}/${PN}"; then
+ echo
+ einfo "Applying local patches"
+ for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${PN}/${PV}/*.{diff,patch}; do
+ test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}"
+ done
+ fi
+ ;;
esac
shift