(I'd like to hear your thoughts and comments on the matter below before I 
start the process of changing ebuilds to comply.)
With Qt4 entering portage, we are going to start running into a dependency 
problem with ebuilds that do:

DEPEND=">=x11-libs/qt-3.2"

Because Qt4 satisfies this depend even though it's not compatible.  Enter my 
proposed qt.eclass (which also replaces kde-functions.eclass for people who 
are using it strictly for Qt).

Now you can:

inherit qt

DEPEND="$(qt_min_version 3.0)"
or 
DEPEND="qt? ( $(qt_min_version 3.1.2-r2) )"

And the eclass will expand out all Qt3 ebuilds which satisfy the statement.

If you don't need anything this fancy (that is, if the ebuild will work with 
any Qt3 version), then the eclass isn't necessary; just change the ebuild to:

DEPEND="x11-libs/qt-3*" 

As an added bonus, you get an exported pkg_setup function which will handle 
some of the same checks that were handled via kde-functions.

Thanks,
Caleb
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to