1 |
On Saturday 02 July 2005 22:41, Gregorio Guidi wrote: |
2 |
> First, a new eclass for Qt4 ebuilds should really be called qt4.eclass, |
3 |
> with another one, qt3.eclass, to be used to port the current Qt3-based |
4 |
> ebuilds. Dealing with more than one major version in a single eclass is a |
5 |
> pain; this is mostly true for the kde eclasses, but still applies to Qt. |
6 |
> In fact, we need to introduce a new clean eclass for KDE4-based |
7 |
> applications, so starting from scratch with a kde4.eclass and a qt4.eclass |
8 |
> makes a lot of sense. |
9 |
[...] |
10 |
> An application based on Qt4 should look just like this: |
11 |
> |
12 |
> inherit qt4 |
13 |
> |
14 |
> HOMEPAGE=... |
15 |
> SRC_URI=... |
16 |
> ... |
17 |
[...] |
18 |
> This proposal is meant for Qt, but it should be read as a proposal for both |
19 |
> Qt and KDE: we can have a kde4.eclass and a kde4-info.eclass that work in |
20 |
> the same way. |
21 |
|
22 |
I know you know this, but for other readers, this is exactly the design of the |
23 |
current kde.eclass+kde-functions.eclass :-) At least it was until they |
24 |
gathered up a huge amount of special cases and backward support. Today a |
25 |
typical kde ebuild still looks as simple as that, but sometimes you need to |
26 |
know how to work around some sensitive points (like the recent bug where the |
27 |
eclass fails to disable the broken visibility support...), and for kde-base |
28 |
you also need to know deprange() and some other tricks. |
29 |
|
30 |
Although the notation PATCHES="$FILESDIR/foo.diff" didn't catch on well enough |
31 |
for some reason. Other than me, most people seem to prefer to override |
32 |
src_unpack just to call epatch... |
33 |
|
34 |
So if we ever get a chance to cleanup the existing kde3 eclasses they'll look |
35 |
just like that, and might even share some code with the new kde4 eclasses |
36 |
(which should be separate due to kde4's completely new build system). (Mmm |
37 |
GLEP 33...) |
38 |
|
39 |
-- |
40 |
Dan Armak |
41 |
Gentoo Linux developer (KDE) |
42 |
Public GPG key: http://dev.gentoo.org/~danarmak/danarmak-gpg-public.key |
43 |
Fingerprint: DD70 DBF9 E3D4 6CB9 2FDD 0069 508D 9143 8D5F 8951 |