Added pkg_postinst to give info to user about when NOBMP is set, but USE=bmp
authorJeremy Huddleston <eradicator@gentoo.org>
Wed, 20 Oct 2004 01:45:43 +0000 (01:45 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Wed, 20 Oct 2004 01:45:43 +0000 (01:45 +0000)
eclass/xmms-plugin.eclass

index a63be7670f494746cb28885ae614d5246e37259f..85d054cd593279b5b01d1f4d622ec4eeeb4e6de1 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xmms-plugin.eclass,v 1.4 2004/10/20 01:39:51 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/xmms-plugin.eclass,v 1.5 2004/10/20 01:45:43 eradicator Exp $
 #
 # Jeremy Huddleston <eradicator@gentoo.org>
 #
@@ -227,6 +227,13 @@ xmms-plugin_src_install() {
        fi
 }
 
+xmms-plugin_pkg_postinst() {
+       if use bmp && [ "${NOBMP}" = "1" ]; then
+               ewarn "You have bmp in your USE flags, but this xmms plugin"
+               ewarn "does not support bmp, sorry."
+       fi
+}
+
 xmms2bmp_automate() {
        find . -name Makefile -o -name Makefile.in -o -name configure |
                xargs sed -i -e 's:xmms-config:beep-config:g' \
@@ -241,4 +248,4 @@ do_bmp() {
        use bmp && [ "${NOBMP}" != "1" ]
 }
 
-EXPORT_FUNCTIONS src_unpack src_compile src_install
+EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst