summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/ploticus/ploticus-2.33.ebuild')
-rw-r--r--media-libs/ploticus/ploticus-2.33.ebuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/media-libs/ploticus/ploticus-2.33.ebuild b/media-libs/ploticus/ploticus-2.33.ebuild
index 0e6f127b042e..a5c22983272a 100644
--- a/media-libs/ploticus/ploticus-2.33.ebuild
+++ b/media-libs/ploticus/ploticus-2.33.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/ploticus/ploticus-2.33.ebuild,v 1.1 2006/07/16 02:09:32 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/ploticus/ploticus-2.33.ebuild,v 1.2 2007/02/17 09:18:14 dragonheart Exp $
inherit eutils toolchain-funcs
@@ -20,6 +20,14 @@ DEPEND="media-libs/libpng
truetype? ( =media-libs/freetype-2* )
X? ( || ( x11-libs/libX11 virtual/x11 ) )"
+pkg_setup() {
+ if use gd;
+ then
+ if ! built_with_use media-libs/gd jpeg || ! built_with_use media-libs/gd png; then
+ die "media-libs/gd needs to be build with USE=\"png jpeg\""
+ fi
+ fi
+}
src_unpack() {
unpack ${A}
# Fixes a problem with NOX11.