From 933332fea4954812b13b4247c3d1fb2927e37a8a Mon Sep 17 00:00:00 2001 From: Jeffrey Gardner Date: Thu, 3 Jan 2008 15:29:48 +0000 Subject: Die if imagemagick isn't emerged with USE=xml. Thanks to My Th on bug #204091. (Portage version: 2.1.4_rc14) --- sci-chemistry/chemical-mime-data/ChangeLog | 7 +++++-- .../chemical-mime-data/chemical-mime-data-0.1.94.ebuild | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/sci-chemistry/chemical-mime-data/ChangeLog b/sci-chemistry/chemical-mime-data/ChangeLog index 4352d192b86b..42f07c75f303 100644 --- a/sci-chemistry/chemical-mime-data/ChangeLog +++ b/sci-chemistry/chemical-mime-data/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sci-chemistry/chemical-mime-data -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/chemical-mime-data/ChangeLog,v 1.1 2007/12/11 04:36:01 je_fro Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/chemical-mime-data/ChangeLog,v 1.2 2008/01/03 15:29:48 je_fro Exp $ + + 03 Jan 2008; chemical-mime-data-0.1.94.ebuild: + Die if imagemagick isn't emerged with USE=xml. Thanks to My Th on bug #204091. *chemical-mime-data-0.1.94 (11 Dec 2007) diff --git a/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94.ebuild b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94.ebuild index 7df1bbfbe458..722a60fc1188 100644 --- a/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94.ebuild +++ b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94.ebuild,v 1.1 2007/12/11 04:36:01 je_fro Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94.ebuild,v 1.2 2008/01/03 15:29:48 je_fro Exp $ -inherit fdo-mime +inherit eutils fdo-mime DESCRIPTION="A collection of data files to add support for chemical MIME types." HOMEPAGE="http://chemical-mime.sourceforge.net/" @@ -23,6 +23,15 @@ DEPEND="dev-util/pkgconfig RDEPEND="" +pkg_setup() { + + if ! built_with_use 'media-gfx/imagemagick' xml; then + eerror "media-gfx/imagemagick must be built with the xml USE-flag enabled" + die "emerge media-gfx/imagemagick with the xml USE-flag enabled" + fi + +} + src_compile() { econf --disable-update-database --htmldir=/usr/share/doc/${PN}/html -- cgit v1.2.3-65-gdbad