Added code to warn about a missing call to vdr-plugin_pkg_setup.
authorMatthias Schwarzott <zzam@gentoo.org>
Thu, 7 Sep 2006 18:34:00 +0000 (18:34 +0000)
committerMatthias Schwarzott <zzam@gentoo.org>
Thu, 7 Sep 2006 18:34:00 +0000 (18:34 +0000)
eclass/vdr-plugin.eclass

index a990cec3c43bc0ec4f78c7ac74c3d0081108272a..c7ab431a34194d5505a5aa7b8a4c56215650252e 100644 (file)
@@ -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 <zzam@gentoo.org>
@@ -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