summaryrefslogtreecommitdiff
blob: a01bd61cfc6b0606406d10fd468c5ffd68ce6c2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
}