# 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 <zzam@gentoo.org>
}
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