Gentoo Archives: gentoo-dev

From: Caleb Tennis <caleb@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] RFC: qt.eclass
Date: Thu, 30 Jun 2005 17:58:33
Message-Id: 200506301254.03709.caleb@gentoo.org
1 (I'd like to hear your thoughts and comments on the matter below before I
2 start the process of changing ebuilds to comply.)
3
4 With Qt4 entering portage, we are going to start running into a dependency
5 problem with ebuilds that do:
6
7 DEPEND=">=x11-libs/qt-3.2"
8
9 Because Qt4 satisfies this depend even though it's not compatible. Enter my
10 proposed qt.eclass (which also replaces kde-functions.eclass for people who
11 are using it strictly for Qt).
12
13 Now you can:
14
15 inherit qt
16
17 DEPEND="$(qt_min_version 3.0)"
18 or
19 DEPEND="qt? ( $(qt_min_version 3.1.2-r2) )"
20
21 And the eclass will expand out all Qt3 ebuilds which satisfy the statement.
22
23 If you don't need anything this fancy (that is, if the ebuild will work with
24 any Qt3 version), then the eclass isn't necessary; just change the ebuild to:
25
26 DEPEND="x11-libs/qt-3*"
27
28 As an added bonus, you get an exported pkg_setup function which will handle
29 some of the same checks that were handled via kde-functions.
30
31 Thanks,
32 Caleb
33 --
34 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] RFC: qt.eclass Donnie Berkholz <spyderous@g.o>
Re: [gentoo-dev] RFC: qt.eclass Gregorio Guidi <greg_g@g.o>