Make use of built_with_use() (from eutils eclass) to fail if imlib2 is not compiled...
authorMichele Noberasco <s4t4n@gentoo.org>
Thu, 10 Nov 2005 10:08:33 +0000 (10:08 +0000)
committerMichele Noberasco <s4t4n@gentoo.org>
Thu, 10 Nov 2005 10:08:33 +0000 (10:08 +0000)
Package-Manager: portage-2.0.51.22-r3

x11-plugins/wmhdplop/ChangeLog
x11-plugins/wmhdplop/Manifest
x11-plugins/wmhdplop/wmhdplop-0.9.7.ebuild

index a2ce6f226cf8a4cd1172ff36f253dc02ac44bdae..27c483346dc91a57fd92fe90341e322ae8738302 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for x11-plugins/wmhdplop
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmhdplop/ChangeLog,v 1.7 2005/11/08 08:55:51 s4t4n Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmhdplop/ChangeLog,v 1.8 2005/11/10 10:08:33 s4t4n Exp $
+
+  10 Nov 2005; Michele Noberasco <s4t4n@gentoo.org> wmhdplop-0.9.7.ebuild:
+  Make use of built_with_use() (from eutils eclass) to fail if imlib2
+  is not compiled with 'X' USE flag enabled.
 
   08 Nov 2005; Michele Noberasco <s4t4n@gentoo.org> wmhdplop-0.9.7.ebuild:
   Warn the user if 'X' USE flag is not set, as this package needs imlib2
index 033fc8b1adf8fd9f5abfea92682fa01d36db89ae..913b32b12f9c22354f9c0a53b3583d4098d86a49 100644 (file)
@@ -1,5 +1,5 @@
-MD5 53f08a69f1aa6696d1717e1b250a5f13 wmhdplop-0.9.7.ebuild 1328
-MD5 5231cdc49dc28427d9814a72ae1fb05d ChangeLog 1120
+MD5 d299a1e7e66dda11ba9de3a6b183ca40 wmhdplop-0.9.7.ebuild 1345
+MD5 30b525e83915e738c53133e56ded8e10 ChangeLog 1311
 MD5 62ba71d3b2fa785a4cbd5d47fdbd0eb6 metadata.xml 165
 MD5 0a55dceead9ad7a2f7205718807cc4df files/digest-wmhdplop-0.9.7 66
 MD5 2745de508ae424a95df9b4ec8cbd8a1a files/wmhdplop-cflags.patch 313
index b6062d3a92b5dc13da7e92ae068d1c2bff25da24..2808da2086adae3a698bb69d0adac6b73b6776e9 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/x11-plugins/wmhdplop/wmhdplop-0.9.7.ebuild,v 1.3 2005/11/08 08:55:51 s4t4n Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/wmhdplop/wmhdplop-0.9.7.ebuild,v 1.4 2005/11/10 10:08:33 s4t4n Exp $
 
 inherit eutils
 
@@ -26,12 +26,12 @@ src_unpack()
        # Honour Gentoo CFLAGS, but retain some the package author chose himself
        epatch ${FILESDIR}/${PN}-cflags.patch
 
-       if ! use X; then
+       if ! built_with_use imlib2 X; then
                echo
-               ewarn "This package depends on media-libs/imlib2, which needs"
-               ewarn "to be compiled with 'X' USE flag enabled..."
+               eerror "This package depends on media-libs/imlib2, which needs"
+               eerror "to be compiled with 'X' USE flag enabled..."
                echo
-               epause
+               die
        fi
 }