diff options
author | Jonathan Callen <abcd@gentoo.org> | 2009-11-09 11:04:47 +0000 |
---|---|---|
committer | Jonathan Callen <abcd@gentoo.org> | 2009-11-09 11:04:47 +0000 |
commit | 33723fef8f44becc5a6c4da164292e138454e58f (patch) | |
tree | b9b777e7c1416249f0e0105b25948e1c90c27786 /x11-libs/qt-gui | |
parent | Unused USE flag (diff) | |
download | gentoo-2-33723fef8f44becc5a6c4da164292e138454e58f.tar.gz gentoo-2-33723fef8f44becc5a6c4da164292e138454e58f.tar.bz2 gentoo-2-33723fef8f44becc5a6c4da164292e138454e58f.zip |
Drop old versions; files
(Portage version: -svn/cvs/Linux i686)
Diffstat (limited to 'x11-libs/qt-gui')
-rw-r--r-- | x11-libs/qt-gui/ChangeLog | 10 | ||||
-rw-r--r-- | x11-libs/qt-gui/files/Designer.desktop | 20 | ||||
-rw-r--r-- | x11-libs/qt-gui/files/Linguist.desktop | 20 | ||||
-rw-r--r-- | x11-libs/qt-gui/files/qt-gui-4.4.0-scrollbars.patch | 13 | ||||
-rw-r--r-- | x11-libs/qt-gui/files/qt-gui-designer-4.4.1.patch | 12 | ||||
-rw-r--r-- | x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-linguist-crash.patch | 41 | ||||
-rw-r--r-- | x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-lrelease.patch | 23 | ||||
-rw-r--r-- | x11-libs/qt-gui/files/xinerama.patch | 15 | ||||
-rw-r--r-- | x11-libs/qt-gui/qt-gui-4.5.2-r1.ebuild | 174 | ||||
-rw-r--r-- | x11-libs/qt-gui/qt-gui-4.5.3-r1.ebuild | 176 |
10 files changed, 9 insertions, 495 deletions
diff --git a/x11-libs/qt-gui/ChangeLog b/x11-libs/qt-gui/ChangeLog index 8bd280b34e70..d45575b14e18 100644 --- a/x11-libs/qt-gui/ChangeLog +++ b/x11-libs/qt-gui/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for x11-libs/qt-gui # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/ChangeLog,v 1.76 2009/11/05 11:31:20 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/ChangeLog,v 1.77 2009/11/09 11:04:47 abcd Exp $ + + 09 Nov 2009; Jonathan Callen <abcd@gentoo.org> + -files/qt-gui-4.4.0-scrollbars.patch, -files/qt-gui-designer-4.4.1.patch, + -files/qt-x11-opensource-src-4.5.0-linguist-crash.patch, + -files/qt-x11-opensource-src-4.5.0-lrelease.patch, + -qt-gui-4.5.2-r1.ebuild, -qt-gui-4.5.3-r1.ebuild, -files/Designer.desktop, + -files/Linguist.desktop, -files/xinerama.patch: + Drop old versions; files 05 Nov 2009; Markus Meier <maekke@gentoo.org> qt-gui-4.5.3-r2.ebuild: x86 stable, bug #290922 diff --git a/x11-libs/qt-gui/files/Designer.desktop b/x11-libs/qt-gui/files/Designer.desktop deleted file mode 100644 index aaeb24f674cb..000000000000 --- a/x11-libs/qt-gui/files/Designer.desktop +++ /dev/null @@ -1,20 +0,0 @@ -[Desktop Entry] -Comment= -Comment[en_US]= -Encoding=UTF-8 -Exec=/usr/bin/designer -GenericName=Qt Designer -GenericName[en_US]=Qt Designer -Icon=designer -MimeType= -Name=Qt Designer -Name[en_US]=Qt Designer -Path= -StartupNotify=true -Terminal=false -TerminalOptions= -Type=Application -X-DCOP-ServiceType= -X-KDE-SubstituteUID=false -X-KDE-Username= -Categories=Qt;Development;GUIDesigner; diff --git a/x11-libs/qt-gui/files/Linguist.desktop b/x11-libs/qt-gui/files/Linguist.desktop deleted file mode 100644 index 2a2c3dea350f..000000000000 --- a/x11-libs/qt-gui/files/Linguist.desktop +++ /dev/null @@ -1,20 +0,0 @@ -[Desktop Entry] -Comment= -Comment[en_US]= -Encoding=UTF-8 -Exec=/usr/bin/linguist -GenericName=Linguist -GenericName[en_US]=Linguist -Icon=linguist -MimeType= -Name=Linguist -Name[en_US]=Linguist -Path= -StartupNotify=true -Terminal=false -TerminalOptions= -Type=Application -X-DCOP-ServiceType= -X-KDE-SubstituteUID=false -X-KDE-Username= -Categories=Qt;Development;GUIDesigner; diff --git a/x11-libs/qt-gui/files/qt-gui-4.4.0-scrollbars.patch b/x11-libs/qt-gui/files/qt-gui-4.4.0-scrollbars.patch deleted file mode 100644 index 0f754eb142b2..000000000000 --- a/x11-libs/qt-gui/files/qt-gui-4.4.0-scrollbars.patch +++ /dev/null @@ -1,13 +0,0 @@ -Bug 220751, Mikko Cal. - ---- src/gui/itemviews/qabstractitemview.cpp 2008-04-28 15:11:18.000000000 +0200 -+++ src/gui/itemviews/qabstractitemview.cpp 2008-04-10 01:00:58.000000000 +0200 -@@ -2980,7 +2982,7 @@ - if (q->isVisible()) { - q->doItemsLayout(); - const QModelIndex current = q->currentIndex(); -- if (current.isValid()) -+ if (current.isValid() && state == QAbstractItemView::EditingState) - q->scrollTo(current); - } else { - doDelayedItemsLayout(); diff --git a/x11-libs/qt-gui/files/qt-gui-designer-4.4.1.patch b/x11-libs/qt-gui/files/qt-gui-designer-4.4.1.patch deleted file mode 100644 index e82ab9dfb0b7..000000000000 --- a/x11-libs/qt-gui/files/qt-gui-designer-4.4.1.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- src/tools/designer/src/components/propertyeditor/propertyeditor.cpp 2008-08-14 10:25:28 -0000 -+++ src/tools/designer/src/components/propertyeditor/propertyeditor.cpp 2008-08-14 10:25:28 -0000 - -@@ -656,7 +656,7 @@ - - void PropertyEditor::updateColors() - { -- if (m_currentBrowser == m_treeBrowser) { -+ if (m_treeBrowser && m_currentBrowser == m_treeBrowser) { - QList<QtBrowserItem *> items = m_treeBrowser->topLevelItems(); - QListIterator<QtBrowserItem *> itItem(items); - while (itItem.hasNext()) { diff --git a/x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-linguist-crash.patch b/x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-linguist-crash.patch deleted file mode 100644 index aa6c2497fb0e..000000000000 --- a/x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-linguist-crash.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -up qt-x11-opensource-src-4.5.0/tools/linguist/shared/profileevaluator.cpp.orig qt-x11-opensource-src-4.5.0/tools/linguist/shared/profileevaluator.cpp ---- qt-x11-opensource-src-4.5.0/tools/linguist/shared/profileevaluator.cpp.orig 2009-03-16 12:50:03.000000000 +0100 -+++ qt-x11-opensource-src-4.5.0/tools/linguist/shared/profileevaluator.cpp 2009-03-17 00:42:51.000000000 +0100 -@@ -86,6 +86,7 @@ public: - void enterScope(bool multiLine); - void leaveScope(); - void finalizeBlock(); -+ void cleanup(); - - // implementation of AbstractProItemVisitor - bool visitBeginProBlock(ProBlock *block); -@@ -164,6 +165,15 @@ ProFileEvaluator::Private::Private(ProFi - m_contNextLine = false; - } - -+void ProFileEvaluator::Private::cleanup() -+{ -+ m_commentItem = 0; -+ m_block = 0; -+ m_proitem.clear(); -+ m_blockstack.clear(); -+ m_pendingComment.clear(); -+} -+ - bool ProFileEvaluator::Private::read(ProFile *pro) - { - QFile file(pro->fileName()); -@@ -180,11 +190,14 @@ bool ProFileEvaluator::Private::read(Pro - while (!ts.atEnd()) { - QString line = ts.readLine(); - if (!parseLine(line)) { -+ cleanup(); - q->errorMessage(format(".pro parse failure.")); - return false; - } - ++m_lineNo; - } -+ -+ cleanup(); - return true; - } diff --git a/x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-lrelease.patch b/x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-lrelease.patch deleted file mode 100644 index 284520e8595a..000000000000 --- a/x11-libs/qt-gui/files/qt-x11-opensource-src-4.5.0-lrelease.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: qt-x11-opensource-src-4.5.0/tools/linguist/lrelease/main.cpp -=================================================================== ---- qt-x11-opensource-src-4.5.0.orig/tools/linguist/lrelease/main.cpp -+++ qt-x11-opensource-src-4.5.0/tools/linguist/lrelease/main.cpp -@@ -88,6 +88,8 @@ static bool loadTsFile(Translator &tor, - bool ok = tor.load(tsFileName, cd, QLatin1String("auto")); - if (!ok) { - qWarning("lrelease error: %s\n", qPrintable(cd.error())); -+ // dont fail -+ ok = true; - } else { - if (!cd.errors().isEmpty()) - printOut(cd.error()); -@@ -102,7 +104,8 @@ static bool loadTsFile(Translator &tor, - if (!msg.comment().isEmpty()) - qWarning("\n* Comment: %s", qPrintable(msg.comment())); - } -- ok = false; -+ // dont fail -+ //ok = false; - } - } - return ok; diff --git a/x11-libs/qt-gui/files/xinerama.patch b/x11-libs/qt-gui/files/xinerama.patch deleted file mode 100644 index 5edd03395e61..000000000000 --- a/x11-libs/qt-gui/files/xinerama.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- src/gui/kernel/qapplication_x11.cpp.orig 2007-12-23 15:10:43.000000000 -0500 -+++ src/gui/kernel/qapplication_x11.cpp 2007-12-23 15:11:01.000000000 -0500 -@@ -1715,9 +1715,9 @@ - (PtrXineramaQueryScreens) xineramaLib.resolve("XineramaQueryScreens"); - } - #else -- ptrXineramaQueryScreens = XineramaQueryScreens; -- ptrXineramaIsActive = XineramaIsActive; -- ptrXineramaQueryExtension = XineramaQueryExtension; -+ X11->ptrXineramaQueryScreens = XineramaQueryScreens; -+ X11->ptrXineramaIsActive = XineramaIsActive; -+ X11->ptrXineramaQueryExtension = XineramaQueryExtension; - #endif // QT_RUNTIME_XINERAMA - #endif // QT_NO_XINERAMA - diff --git a/x11-libs/qt-gui/qt-gui-4.5.2-r1.ebuild b/x11-libs/qt-gui/qt-gui-4.5.2-r1.ebuild deleted file mode 100644 index 056fe99e72b3..000000000000 --- a/x11-libs/qt-gui/qt-gui-4.5.2-r1.ebuild +++ /dev/null @@ -1,174 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/qt-gui-4.5.2-r1.ebuild,v 1.3 2009/07/15 18:57:29 yngwin Exp $ - -EAPI="2" -inherit eutils qt4-build - -DESCRIPTION="The GUI module for the Qt toolkit" -SLOT="4" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="+accessibility cups dbus +glib gtk mng nas nis raster tiff qt3support xinerama" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2 - media-libs/jpeg - media-libs/libpng - sys-libs/zlib - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXcursor - x11-libs/libXfont - x11-libs/libSM - x11-libs/libXi - ~x11-libs/qt-core-${PV}[debug=,glib=,qt3support=] - ~x11-libs/qt-script-${PV}[debug=] - cups? ( net-print/cups ) - dbus? ( ~x11-libs/qt-dbus-${PV}[debug=] ) - gtk? ( x11-libs/gtk+:2 ) - mng? ( >=media-libs/libmng-1.0.9 ) - nas? ( >=media-libs/nas-1.5 ) - tiff? ( media-libs/tiff ) - xinerama? ( x11-libs/libXinerama )" -DEPEND="${RDEPEND} - xinerama? ( x11-proto/xineramaproto ) - x11-proto/xextproto - x11-proto/inputproto" -PDEPEND="qt3support? ( ~x11-libs/qt-qt3support-${PV}[debug=] )" - -QT4_TARGET_DIRECTORIES=" -src/gui -src/scripttools/ -tools/designer -tools/linguist -src/plugins/imageformats/gif -src/plugins/imageformats/ico -src/plugins/imageformats/jpeg -src/plugins/inputmethods" - -QT4_EXTRACT_DIRECTORIES=" -include/ -src/ -tools/shared/" - -pkg_setup() { - if use raster; then - ewarn "WARNING: You have enabled raster backend rendering engine." - ewarn "This is a new feature and may lead to composite problems" - ewarn "screen corruption and broken qt4 or kde4 applications. " - ewarn "If you encounter such problems please" - ewarn "remove 'raster' use flag and re-compile qt-gui before" - ewarn "filling a bug on gentoo bugzilla." - ebeep 5 - fi - qt4-build_pkg_setup -} - -src_unpack() { - use dbus && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} tools/qdbus/qdbusviewer" - use mng && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/mng" - use tiff && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/tiff" - use accessibility && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/accessible/widgets" - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} ${QT4_EXTRACT_DIRECTORIES}" - - qt4-build_src_unpack -} - -src_prepare() { - qt4-build_src_prepare - - # Don't build plugins this go around, because they depend on qt3support lib - sed -i -e "s:CONFIG(shared:# &:g" "${S}"/tools/designer/src/src.pro - - # fixing hardcoded fonts, bug #252312 - EPATCH_OPTS="--ignore-whitespace" - epatch "${FILESDIR}"/hardcoded_fonts.patch -} - -src_configure() { - export PATH="${S}/bin:${PATH}" - export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" - - myconf="$(qt_use accessibility) - $(qt_use cups) - $(qt_use glib) - $(qt_use mng libmng system) - $(qt_use nis) - $(qt_use tiff libtiff system) - $(qt_use dbus qdbus) - $(qt_use qt3support) - $(qt_use gtk gtkstyle) - $(qt_use xinerama)" - - use nas && myconf="${myconf} -system-nas-sound" - use raster && myconf="${myconf} -graphicssystem raster" - - myconf="${myconf} -qt-gif -system-libpng -system-libjpeg - -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc - -xrender -xrandr -xkb -xshape -sm -no-svg" - - # Explicitly don't compile these packages. - # Emerge "qt-webkit", "qt-phonon", etc for their functionality. - myconf="${myconf} -no-webkit -no-phonon -no-dbus -no-opengl" - - qt4-build_src_configure -} - -src_install() { - QCONFIG_ADD="x11sm xshape xcursor xfixes xrandr xrender xkb fontconfig - $(usev accessibility) $(usev xinerama) $(usev cups) $(usev nas) - gif png system-png system-jpeg - $(use mng && echo system-mng) - $(use tiff && echo system-tiff)" - QCONFIG_REMOVE="no-gif no-png" - QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY) - $(use cups && echo QT_CUPS) QT_FONTCONFIG QT_IMAGEFORMAT_JPEG - $(use mng && echo QT_IMAGEFORMAT_MNG) - $(use nas && echo QT_NAS) - $(use nis && echo QT_NIS) QT_IMAGEFORMAT_PNG QT_SESSIONMANAGER QT_SHAPE - $(use tiff && echo QT_IMAGEFORMAT_TIFF) QT_XCURSOR - $(use xinerama && echo QT_XINERAMA) QT_XFIXES QT_XKB QT_XRANDR QT_XRENDER" - - qt4-build_src_install - - # remove some unnecessary headers - rm -f "${D}${QTHEADERDIR}"/{Qt,QtGui}/{qmacstyle_mac.h,qwindowdefs_win.h} \ - "${D}${QTHEADERDIR}"/QtGui/QMacStyle - - # qt-creator - # some qt-creator headers are located - # under /usr/include/qt4/QtDesigner/private. - # those headers are just includes of the headers - # which are located under tools/designer/src/lib/* - # So instead of installing both, we create the private folder - # and drop tools/designer/src/lib/* headers in it. - dodir /usr/include/qt4/QtDesigner/private/ - insinto /usr/include/qt4/QtDesigner/private/ - doins "${S}"/tools/designer/src/lib/shared/* - doins "${S}"/tools/designer/src/lib/sdk/* - - # install correct designer and linguist icons, bug 241208 - doicon tools/linguist/linguist/images/icons/linguist-128-32.png \ - tools/designer/src/designer/images/designer.png \ - || die "doicon failed" - # Note: absolute image path required here! - make_desktop_entry /usr/bin/linguist Linguist \ - /usr/share/pixmaps/linguist-128-32.png \ - 'Qt;Development;GUIDesigner' \ - || die "linguist make_desktop_entry failed" - make_desktop_entry /usr/bin/designer Designer \ - /usr/share/pixmaps/designer.png \ - 'Qt;Development;GUIDesigner' \ - || die "designer make_desktop_entry failed" -} - -pkg_postinst() { - if use gtk ; then - ewarn 'If you get the following error when setting Qt to use the GTK style:' - ewarn ' "QGtkStyle cannot be used together with the GTK_Qt engine."' - ewarn 'make sure you have GTK configured to NOT use the GTK_Qt engine and' - ewarn 'export GTK2_RC_FILES="$HOME/.gtkrc-2.0" in your environment.' - fi - qt4-build_pkg_postinst -} diff --git a/x11-libs/qt-gui/qt-gui-4.5.3-r1.ebuild b/x11-libs/qt-gui/qt-gui-4.5.3-r1.ebuild deleted file mode 100644 index 8ba48e35f36d..000000000000 --- a/x11-libs/qt-gui/qt-gui-4.5.3-r1.ebuild +++ /dev/null @@ -1,176 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-gui/qt-gui-4.5.3-r1.ebuild,v 1.2 2009/10/29 11:30:54 fauli Exp $ - -EAPI="2" -inherit eutils qt4-build - -DESCRIPTION="The GUI module for the Qt toolkit" -SLOT="4" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" -IUSE="+accessibility cups dbus +glib gtk mng nas nis raster tiff qt3support xinerama" - -RDEPEND="media-libs/fontconfig - >=media-libs/freetype-2 - media-libs/jpeg - media-libs/libpng - sys-libs/zlib - x11-libs/libX11 - x11-libs/libXext - x11-libs/libXrandr - x11-libs/libXcursor - x11-libs/libXfont - x11-libs/libSM - x11-libs/libXi - ~x11-libs/qt-core-${PV}[debug=,glib=,qt3support=] - ~x11-libs/qt-script-${PV}[debug=] - cups? ( net-print/cups ) - dbus? ( ~x11-libs/qt-dbus-${PV}[debug=] ) - gtk? ( x11-libs/gtk+:2 ) - mng? ( >=media-libs/libmng-1.0.9 ) - nas? ( >=media-libs/nas-1.5 ) - tiff? ( media-libs/tiff ) - xinerama? ( x11-libs/libXinerama )" -DEPEND="${RDEPEND} - xinerama? ( x11-proto/xineramaproto ) - x11-proto/xextproto - x11-proto/inputproto" -PDEPEND="qt3support? ( ~x11-libs/qt-qt3support-${PV}[debug=] )" - -QT4_TARGET_DIRECTORIES=" -src/gui -src/scripttools/ -tools/designer -tools/linguist/linguist -src/plugins/imageformats/gif -src/plugins/imageformats/ico -src/plugins/imageformats/jpeg -src/plugins/inputmethods" - -QT4_EXTRACT_DIRECTORIES=" -include/ -src/ -tools/linguist/shared -tools/linguist/phrasebooks -tools/shared/" - -pkg_setup() { - if use raster; then - ewarn "WARNING: You have enabled raster backend rendering engine." - ewarn "This is a new feature and may lead to composite problems" - ewarn "screen corruption and broken qt4 or kde4 applications. " - ewarn "If you encounter such problems please" - ewarn "remove 'raster' use flag and re-compile qt-gui before" - ewarn "filling a bug on gentoo bugzilla." - ebeep 5 - fi - qt4-build_pkg_setup -} - -src_unpack() { - use dbus && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} tools/qdbus/qdbusviewer" - use mng && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/mng" - use tiff && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/imageformats/tiff" - use accessibility && QT4_TARGET_DIRECTORIES="${QT4_TARGET_DIRECTORIES} src/plugins/accessible/widgets" - QT4_EXTRACT_DIRECTORIES="${QT4_TARGET_DIRECTORIES} ${QT4_EXTRACT_DIRECTORIES}" - - qt4-build_src_unpack -} - -src_prepare() { - qt4-build_src_prepare - - # Don't build plugins this go around, because they depend on qt3support lib - sed -i -e "s:CONFIG(shared:# &:g" "${S}"/tools/designer/src/src.pro - - # fixing hardcoded fonts, bug #252312 - EPATCH_OPTS="--ignore-whitespace" - epatch "${FILESDIR}"/hardcoded_fonts.patch -} - -src_configure() { - export PATH="${S}/bin:${PATH}" - export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" - - myconf="$(qt_use accessibility) - $(qt_use cups) - $(qt_use glib) - $(qt_use mng libmng system) - $(qt_use nis) - $(qt_use tiff libtiff system) - $(qt_use dbus qdbus) - $(qt_use qt3support) - $(qt_use gtk gtkstyle) - $(qt_use xinerama)" - - use nas && myconf="${myconf} -system-nas-sound" - use raster && myconf="${myconf} -graphicssystem raster" - - myconf="${myconf} -qt-gif -system-libpng -system-libjpeg - -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc - -xrender -xrandr -xkb -xshape -sm -no-svg" - - # Explicitly don't compile these packages. - # Emerge "qt-webkit", "qt-phonon", etc for their functionality. - myconf="${myconf} -no-webkit -no-phonon -no-dbus -no-opengl" - - qt4-build_src_configure -} - -src_install() { - QCONFIG_ADD="x11sm xshape xcursor xfixes xrandr xrender xkb fontconfig - $(usev accessibility) $(usev xinerama) $(usev cups) $(usev nas) - gif png system-png system-jpeg - $(use mng && echo system-mng) - $(use tiff && echo system-tiff)" - QCONFIG_REMOVE="no-gif no-png" - QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY) - $(use cups && echo QT_CUPS) QT_FONTCONFIG QT_IMAGEFORMAT_JPEG - $(use mng && echo QT_IMAGEFORMAT_MNG) - $(use nas && echo QT_NAS) - $(use nis && echo QT_NIS) QT_IMAGEFORMAT_PNG QT_SESSIONMANAGER QT_SHAPE - $(use tiff && echo QT_IMAGEFORMAT_TIFF) QT_XCURSOR - $(use xinerama && echo QT_XINERAMA) QT_XFIXES QT_XKB QT_XRANDR QT_XRENDER" - - qt4-build_src_install - - # remove some unnecessary headers - rm -f "${D}${QTHEADERDIR}"/{Qt,QtGui}/{qmacstyle_mac.h,qwindowdefs_win.h} \ - "${D}${QTHEADERDIR}"/QtGui/QMacStyle - - # qt-creator - # some qt-creator headers are located - # under /usr/include/qt4/QtDesigner/private. - # those headers are just includes of the headers - # which are located under tools/designer/src/lib/* - # So instead of installing both, we create the private folder - # and drop tools/designer/src/lib/* headers in it. - dodir /usr/include/qt4/QtDesigner/private/ - insinto /usr/include/qt4/QtDesigner/private/ - doins "${S}"/tools/designer/src/lib/shared/* - doins "${S}"/tools/designer/src/lib/sdk/* - - # install correct designer and linguist icons, bug 241208 - doicon tools/linguist/linguist/images/icons/linguist-128-32.png \ - tools/designer/src/designer/images/designer.png \ - || die "doicon failed" - # Note: absolute image path required here! - make_desktop_entry /usr/bin/linguist Linguist \ - /usr/share/pixmaps/linguist-128-32.png \ - 'Qt;Development;GUIDesigner' \ - || die "linguist make_desktop_entry failed" - make_desktop_entry /usr/bin/designer Designer \ - /usr/share/pixmaps/designer.png \ - 'Qt;Development;GUIDesigner' \ - || die "designer make_desktop_entry failed" -} - -pkg_postinst() { - if use gtk ; then - ewarn 'If you get the following error when setting Qt to use the GTK style:' - ewarn ' "QGtkStyle cannot be used together with the GTK_Qt engine."' - ewarn 'make sure you have GTK configured to NOT use the GTK_Qt engine and' - ewarn 'export GTK2_RC_FILES="$HOME/.gtkrc-2.0" in your environment.' - fi - qt4-build_pkg_postinst -} |