From d6e4af6ed33e2f1a7b7edd3a94a15e3901a98c56 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Mon, 18 Dec 2006 10:23:16 +0000 Subject: Make the fbsd-conf patch apply everywhere, but make it required only on FreeBSD, so that it can be tested on every package beforehand, this is the same spirit that other patches should follow; to check if the patch is already applied or not, that's a task for patch_targets. svn path=/trunk/; revision=12 --- patches/fbsd-conf/fbsd-conf.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'patches') diff --git a/patches/fbsd-conf/fbsd-conf.sh b/patches/fbsd-conf/fbsd-conf.sh index 70c489f..4e59648 100644 --- a/patches/fbsd-conf/fbsd-conf.sh +++ b/patches/fbsd-conf/fbsd-conf.sh @@ -2,12 +2,16 @@ # Distributed under the terms of the GNU General Public License v2 patch_targets() { - # only apply for FreeBSD - [[ ${CHOST} == *-freebsd* ]] || return 0 - # Find the configure scripts with a libtool that checks for freebsd # versioning format, and that were not patched with our patch already find "${WORKDIR}" -name configure -print0 | \ xargs -0 grep -Zl "version_type=freebsd-" | \ xargs -0 grep -L 'Handle Gentoo/FreeBSD as it was Linux' } + +# This patch is required only on Gentoo/FreeBSD +patch_required() { + [[ ${CHOST} == *-gentoo-freebsd* ]] || return 1 + + return 0 +} -- cgit v1.2.3-65-gdbad