summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2003-07-16 18:00:13 +0000
committerAlastair Tse <liquidx@gentoo.org>2003-07-16 18:00:13 +0000
commit2e2fc35b97411a9efbe1e472b3f659b9e7583706 (patch)
treee3fa5656a960ed1be712f39e1d124ed120d74ca9 /eclass/gtk-engines2.eclass
parentppc profile update (diff)
downloadhistorical-2e2fc35b97411a9efbe1e472b3f659b9e7583706.tar.gz
historical-2e2fc35b97411a9efbe1e472b3f659b9e7583706.tar.bz2
historical-2e2fc35b97411a9efbe1e472b3f659b9e7583706.zip
add depends for binary packages
Diffstat (limited to 'eclass/gtk-engines2.eclass')
-rw-r--r--eclass/gtk-engines2.eclass11
1 files changed, 10 insertions, 1 deletions
diff --git a/eclass/gtk-engines2.eclass b/eclass/gtk-engines2.eclass
index ccfccf61ae7a..7cc1526c9bed 100644
--- a/eclass/gtk-engines2.eclass
+++ b/eclass/gtk-engines2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines2.eclass,v 1.2 2003/06/21 13:43:05 liquidx Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gtk-engines2.eclass,v 1.3 2003/07/16 18:00:13 liquidx Exp $
# Author: Alastair Tse <liquidx@gentoo.org>
#
@@ -61,6 +61,15 @@ if has_version ">=x11-libs/gtk+-2" || use gtk2; then
GTK2_ENGINES_DIR=/usr/lib/gtk-2.0/${GTK2_MAJOR_VER}/engines
fi
+# --- define some deps for binary packages
+if has_version "=x11-libs/gtk+-1.2*" && ! has_version ">=x11-libs/gtk+-2"; then
+ newdepend "=x11-libs/gtk+-1.2*"
+elif has_version "=x11-libs/gtk+-1.2*" && has_version ">=x11-libs/gtk+-2"; then
+ newdepend ">=x11-libs/gtk+-1.2"
+elif ! has_version "=x11-libs/gtk+-1.2*" && has_version ">=x11-libs/gtk+-2"; then
+ newdepend ">=x11-libs/gtk+-2"
+fi
+
# --- if we don't have any gtk version, we depend on USE flags to tell us
# --- which one to use. otherwise, we don't add any deps. make the ebuild
# --- tell us what DEPEND it wants.