diff -urpN a/app-text/calibre/calibre-0.7.24.ebuild b/app-text/calibre/calibre-0.7.24.ebuild --- a/app-text/calibre/calibre-0.7.24.ebuild 2010-10-21 12:08:09.000000000 +0100 +++ b/app-text/calibre/calibre-0.7.24.ebuild 2010-10-26 13:19:05.000000000 +0100 @@ -66,6 +66,9 @@ src_prepare() { -i setup/install.py || die "sed'ing in the IMAGE path failed" distutils_src_prepare + + # PyQt4-4.8 compatibility - bug #342751 + epatch "${FILESDIR}/${PN}-0.7.24-PyQt4-4.8-fix.patch" } src_install() { diff -urpN a/app-text/calibre/files/calibre-0.7.24-PyQt4-4.8-fix.patch b/app-text/calibre/files/calibre-0.7.24-PyQt4-4.8-fix.patch --- a/app-text/calibre/files/calibre-0.7.24-PyQt4-4.8-fix.patch 1970-01-01 01:00:00.000000000 +0100 +++ b/app-text/calibre/files/calibre-0.7.24-PyQt4-4.8-fix.patch 2010-10-26 13:06:59.000000000 +0100 @@ -0,0 +1,339 @@ +=== modified file 'src/calibre/gui2/lrf_renderer/main.ui' +--- src/calibre/gui2/lrf_renderer/main.ui 2010-09-04 18:03:44 +0000 ++++ src/calibre/gui2/lrf_renderer/main.ui 2010-10-24 16:16:16 +0000 +@@ -1,7 +1,8 @@ +- ++ ++ + MainWindow +- +- ++ ++ + + 0 + 0 +@@ -9,75 +10,51 @@ + 701 + + +- +- ++ ++ + 0 + 0 + + +- ++ + LRF Viewer + +- +- ++ ++ + :/images/viewer.png:/images/viewer.png + +- +- +- +- 0 +- 39 +- 601 +- 662 +- +- +- +- ++ ++ ++ + 0 + + +- +- ++ ++ + 0 + +- +- +- +- 0 +- 0 +- 601 +- 662 +- +- +- +- ++ ++ ++ + 0 + +- +- +- ++ ++ ++ + true + + + + + +- +- +- +- 0 +- 0 +- 601 +- 701 +- +- +- ++ ++ + + +- ++ + Qt::Vertical + +- ++ + + 20 + 40 +@@ -86,34 +63,34 @@ + + + +- +- ++ ++ + QFrame::StyledPanel + +- ++ + QFrame::Raised + +- ++ + +- +- ++ ++ + 0 + +- ++ + -1 + + + + +- +- ++ ++ + + 11 + 75 + true + + +- ++ + Parsing LRF file + + +@@ -123,10 +100,10 @@ + + + +- ++ + Qt::Vertical + +- ++ + + 20 + 40 +@@ -140,93 +117,85 @@ + + + +- +- +- +- 0 +- 0 +- 601 +- 39 +- +- +- ++ ++ + LRF Viewer toolbar + +- ++ + Qt::AllToolBarAreas + +- +- TopToolBarArea +- +- +- true +- +- +- +- +- +- +- +- +- +- ++ ++ Qt::TopToolBarArea ++ ++ ++ false ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + +- +- +- ++ ++ ++ + :/images/next.png:/images/next.png + +- ++ + Next Page + + +- +- +- ++ ++ ++ + :/images/previous.png:/images/previous.png + +- ++ + Previous Page + + +- +- +- ++ ++ ++ + :/images/back.png:/images/back.png + +- ++ + Back + + +- +- +- ++ ++ ++ + :/images/forward.png:/images/forward.png + +- ++ + Forward + + +- +- ++ ++ + Next match + + +- +- +- ++ ++ ++ + :/images/document_open.png:/images/document_open.png + +- ++ + Open ebook + + +- +- +- ++ ++ ++ + :/images/config.png:/images/config.png + +- ++ + Configure + + +@@ -239,7 +208,7 @@ + + + +- ++ + + + + +=== modified file 'src/calibre/gui2/viewer/main.ui' +--- src/calibre/gui2/viewer/main.ui 2010-09-04 18:03:44 +0000 ++++ src/calibre/gui2/viewer/main.ui 2010-10-24 16:16:16 +0000 +@@ -108,7 +108,7 @@ + + + +- LeftToolBarArea ++ Qt::LeftToolBarArea + + + false +@@ -136,7 +136,7 @@ + + + +- TopToolBarArea ++ Qt::TopToolBarArea + + + false +