summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-12-18 11:05:25 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-12-18 11:05:25 +0000
commit0783707a38819db4b0172ca8fecf77bb574028c2 (patch)
tree1129f1a3713c36e35ce78548d1e3347159b8bd62 /patches/kde-autotools-discover
parentUse --null parameter instead of -Z as -Z is overloaded in FBSD's own grep com... (diff)
downloadautoepatch-0783707a38819db4b0172ca8fecf77bb574028c2.tar.gz
autoepatch-0783707a38819db4b0172ca8fecf77bb574028c2.tar.bz2
autoepatch-0783707a38819db4b0172ca8fecf77bb574028c2.zip
Allow a patchset to specify a function to execute on the target instead of an actual patch, this way it can be used also to fix behaviours that would require a lot of patching (used already in KDE).
svn path=/trunk/; revision=15
Diffstat (limited to 'patches/kde-autotools-discover')
-rw-r--r--patches/kde-autotools-discover/kde-autotools-discover.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/kde-autotools-discover/kde-autotools-discover.sh b/patches/kde-autotools-discover/kde-autotools-discover.sh
new file mode 100644
index 0000000..a01bd61
--- /dev/null
+++ b/patches/kde-autotools-discover/kde-autotools-discover.sh
@@ -0,0 +1,30 @@
+# Copyright 2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+patch_targets() {
+ fgrep -rl --include 'detect-autoconf.sh' 'checkAutoconf' "${WORKDIR}"
+}
+
+# Never required, but always suggested
+patch_required() {
+ return 1
+}
+
+patch_trigger_action() {
+ [[ -f "$1" ]] || return 1
+
+ ebegin "Replacing detect-autoconf.sh with a dumber one"
+
+ cat - > "$1" <<EOF
+#!/bin/sh
+export AUTOCONF="autoconf"
+export AUTOHEADER="autoheader"
+export AUTOM4TE="autom4te"
+export AUTOMAKE="automake"
+export ACLOCAL="aclocal"
+export WHICH="which"
+EOF
+ eend $?
+
+ return 0
+}