summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/quilt/quilt_0.60.bb
blob: 89c3f84f393518c7dd46c7ca7db35ab1bccc382d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require quilt-${PV}.inc
inherit gettext 
RDEPENDS_${PN} += "patch diffstat bzip2 util-linux"
SRC_URI += "file://aclocal.patch \
            file://gnu_patch_test_fix_target.patch \
           "
PR = "r1"


CACHED_CONFIGUREVARS += "ac_cv_path_BASH=${base_bindir}/bash"

PERLPATH = "${bindir}/env perl"
PERLPATH_virtclass-nativesdk = "/usr/bin/env perl"

# fix build-distro specific perl path in the target perl scripts
do_install_append() {
	for perlscript in ${D}${datadir}/quilt/scripts/remove-trailing-ws ${D}${datadir}/quilt/scripts/dependency-graph ${D}${datadir}/quilt/scripts/edmail ${D}${bindir}/guards
	do
		if [ -f $perlscript ]; then
			sed -i -e '1s,#!.*perl,#! ${PERLPATH},' $perlscript
		fi
	done
}