Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28757 - break off QT related functions into qt.eclass
Summary: break off QT related functions into qt.eclass
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on: 18661
Blocks:
  Show dependency tree
 
Reported: 2003-09-14 23:39 UTC by SpanKY
Modified: 2004-11-21 15:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-09-14 23:39:59 UTC
this is a request to break all the qt related functions into their own eclass ...

the reason is that there are a bunch of games (and ive seen other packages) that
would make life a lot easier when dealing with QT ...
for example, i have a few games that can use QT-2 or QT-3 ...
some of these i'm just guessing would be useful, but a few i would start using
right away ...

functions i'd like to be able to utilize:
# add requested version to DEPEND and stuff
qt-depend <version number>

# return the base qt dir ... if [version number] is not specified, default to
# whatever is in installed, or to latest version if more than 1 is installed
qt-basedir [version number]

# similar to above
qt-includedir [version number]

# get qt cflags
qt-cflags [version number]
qt-cxxflags [version number]
Comment 1 Dan Armak (RETIRED) gentoo-dev 2004-11-20 09:02:34 UTC
You can do all this already with kde-functions.eclass. It doesn't include any global-section code, so the kde-related functions there are harmless.

# add requested version to DEPEND and stuff
inherit kde-functions; need-qt $VER

# return the base qt dir ... if [version number] is not specified, default to
# whatever is in installed, or to latest version if more than 1 is installed
inherit kde-functions; set-qtdir $VER; now $QTDIR is set. Ugly, yes, and if you really want one we can add a wrapper

# similar to above
as above, use $QTDIR/include

If any of the above isn't good enough, why?

# get qt cflags
If you just need to get the cflags necessary to compile a QT app, then AFAIK just using -I$QTDIR/include should always work. (You do need to add $QTDIR/bin to the beginning of PATH to make sure to use the correct moc and uic.)

Otherwise we'd need a qt pkg-config file or a qt-config utility. Opinions?
Comment 2 SpanKY gentoo-dev 2004-11-21 15:11:15 UTC
yeah, ive realized this over time but just forgot about this bug

as far as i'm concerned, kde-functions does everything i need