I've modified SoQt ebuild to compile with Qt 4 if qt4 use flag is enabled. Sorry if I used unacceptable techniques to achieve that but it's my first ebuild.
Created attachment 138445 [details] SoQt ebuild with Qt 4 support.
See qt4.eclass please and make some use of it. :)
(In reply to comment #2) > See qt4.eclass please and make some use of it. :) > There is only one applicable macro qt4_min_version but I didn't find any occurence of it in portage so I don't know how to use it in DEPENDS variable and the diff would be: -inherit eutils flag-o-matic +inherit eutils qt4 flag-o-matic
Created attachment 186121 [details] SoQt-1.4.1-r1.ebuild This should be far better. *) Switched to EAPI 2. *) More precise dependencies. *) Don't use append-ldflags to pass library link instructions, use CONFIG_QTLIBS instead. *) Force 'emake -j1' because parallel building fails.
Created attachment 186122 [details, diff] Patch against current Portage ebuild
Last patch added to the tree, it seems to work for me.