Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279697 - pykdeuic4 missing from kde-base/pykde4-4.2.4-r2
Summary: pykdeuic4 missing from kde-base/pykde4-4.2.4-r2
Status: RESOLVED FIXED
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:
Blocks:
 
Reported: 2009-07-30 15:22 UTC by JTRiley
Modified: 2009-08-09 11:29 UTC (History)
1 user (show)

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


Attachments
pykde4-4.2.4-r3.ebuild that adds pykdeuic4 as a bin (pykde4-4.2.4-r3.ebuild,2.02 KB, text/plain)
2009-07-30 17:59 UTC, JTRiley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description JTRiley 2009-07-30 15:22:04 UTC
I've been playing with pykde4 lately and the other day I decided to use Qt Designer to create the ui and use pyuic4 to generate the gui. 

Then I noticed, from looking at kde's example python code, that there should be a pykdeuic4 program, similar to pyuic4, in pykde4 that handles integrating with kde4 widgets and automagically using the i18n translating system for strings.

So I decided to see if this file really belongs to that package and downloaded a deb pkg (http://packages.debian.org/squeeze/all/python-kde4-dev/filelist) of pykde4 to see if this (python) file really belongs to that package and sure enough it was there, and it worked on Gentoo! 

Long story short, there is a tools/pykdeuic4 directory in the python/pykde4 folder in kdebindings-4.2.4.tar.bz2 which contains pykdeuic4.py. This is not being extracted by the pykde4-4.2.4-r2 ebuild.

Fixing this will likely involve modifying the kde4-meta eclass as I did not see anything directly handling the kdebindings src in the ebuild. The ebuild will then need to be modified to dobin the tools/pykdeuic4/pykdeuic4.py file to /usr/bin/pykdeuic4

If I have time, I'll hack around with this but I wanted to post this bug so that anyone that comes looking will find this issue.

For now, I've copied the file manually from kdebindings-4.2.4.tar.bz2 to /usr/local/bin and that works for me.
Comment 1 JTRiley 2009-07-30 17:59:07 UTC
Created attachment 199681 [details]
pykde4-4.2.4-r3.ebuild that adds pykdeuic4 as a bin

Turns out the eclass is fine. I was global searching the portage tmp dir for pykde4uic instead of pykdeuic4 (whoops!) which is why I believed the eclass was not unpacking the full source for pykde4. 

In any event, a simple:

newbin ${S}/python/pykde4/tools/pykdeuic4/pykdeuic4.py pykdeuic4

in src_install() did the trick.

I've attached a pykde4-4.2.4-r3.ebuild that implements this and fixes this bug.

~jtriley
Comment 2 Maciej Mrozowski gentoo-dev 2009-08-04 16:50:38 UTC
This is fixed in 4.3 already, thanks for your patch, it will be applied to 4.2 in tree soon.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-09 11:29:32 UTC
Done bit differently, but done :]