From a2ff661670c6f8b373f4e4757b826f969af0285e Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Thu, 7 Sep 2006 18:34:00 +0000 Subject: [PATCH] Added code to warn about a missing call to vdr-plugin_pkg_setup. --- eclass/vdr-plugin.eclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index a990cec3c43b..c7ab431a3419 100644 --- a/eclass/vdr-plugin.eclass +++ b/eclass/vdr-plugin.eclass @@ -1,6 +1,6 @@ # 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.29 2006/08/29 10:33:19 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.30 2006/09/07 18:34:00 zzam Exp $ # # Author: # Matthias Schwarzott @@ -126,6 +126,13 @@ vdr-plugin_pkg_setup() { } vdr-plugin_src_unpack() { + if [[ -z ${VDR_INCLUDE_DIR} ]]; then + eerror "Wrong use of vdr-plugin.eclass." + eerror "An ebuild for a vdr-plugin will not work without calling vdr-plugin_pkg_setup." + echo + eerror "Please report this at bugs.gentoo.org." + die "vdr-plugin_pkg_setup not called!" + fi [ -z "$1" ] && vdr-plugin_src_unpack unpack add_local_patch patchmakefile while [ "$1" ]; do -- 2.26.2