diff options
author | Alastair Tse <liquidx@gentoo.org> | 2003-07-16 18:00:13 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2003-07-16 18:00:13 +0000 |
commit | 707beb98b00b069bea26aebba8ee0587b07850ff (patch) | |
tree | 83b26f511f2bfc21bd84ad92818c265003fd4efd /eclass/gtk-engines2.eclass | |
parent | ppc profile update (diff) | |
download | gentoo-2-707beb98b00b069bea26aebba8ee0587b07850ff.tar.gz gentoo-2-707beb98b00b069bea26aebba8ee0587b07850ff.tar.bz2 gentoo-2-707beb98b00b069bea26aebba8ee0587b07850ff.zip |
add depends for binary packages
Diffstat (limited to 'eclass/gtk-engines2.eclass')
-rw-r--r-- | eclass/gtk-engines2.eclass | 11 |
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. |