diff options
Diffstat (limited to 'dev-qt/qt4-tqt-engine')
4 files changed, 93 insertions, 0 deletions
diff --git a/dev-qt/qt4-tqt-engine/Manifest b/dev-qt/qt4-tqt-engine/Manifest new file mode 100644 index 00000000..5059b13c --- /dev/null +++ b/dev-qt/qt4-tqt-engine/Manifest @@ -0,0 +1 @@ +AUX qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth 1094 SHA256 985b992afab2ddb18850ec56c60bbff087739f1ee25ae5eb26f79b21904f7a2e SHA512 904833bfe34979953157565ce2d44bdd48b66f2292dac20eefbb8e6f5a4774738cd5b3fd0f157871cf87a7ad328fbbe9707a76f1a162616d17696128e460ad85 WHIRLPOOL df9b8e3d74b23c96f109c267c572e25225c15b28fc0c635f4f1ef1bd922aa747ab14ca61deff0ace91801a2029427dce7d0ff937b6bfdbbfa9d942f74a1ada1b diff --git a/dev-qt/qt4-tqt-engine/files/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth b/dev-qt/qt4-tqt-engine/files/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth new file mode 100644 index 00000000..1ae80b95 --- /dev/null +++ b/dev-qt/qt4-tqt-engine/files/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth @@ -0,0 +1,17 @@ +diff --git a/plugin/simplestyle.cpp b/plugin/simplestyle.cpp +index e876c45..1ea75fc 100644 +--- a/plugin/simplestyle.cpp ++++ b/plugin/simplestyle.cpp +@@ -247,12 +247,6 @@ Qt4TDEStyle::Qt4TDEStyle() : m_aboutData(NULL), m_tqApplication(NULL), m_tdeAppl + qt_filedialog_save_filename_hook = &TDEFileDialogSaveName; + qt_filedialog_existing_directory_hook = &TDEFileDialogSelectDirectory; + #endif // INTEGRATE_WITH_TDE +- +-#if QT_VERSION > 0x040800 +- // How a bug of this magnitude could go undetected in a major Qt4 release is beyond me...I guess cell phones don't generally use thin lines in their widgets!? +- // This is Yet Another Example of why TDE cannot rely on Qt4 for anything of any real importance +- printf("[WARNING] Qt4 >= Qt 4.8.0 detected; you are likely affected by these Qt4 bugs:\n[WARNING] https://bugreports.qt-project.org/browse/QTBUG-25896\n[WARNING] https://bugreports.qt-project.org/browse/QTBUG-26013\n[WARNING] There is no known workaround for this problem; your Qt4 application will display with numerous graphical glitches.\n"); +-#endif + } + + Qt4TDEStyle::~Qt4TDEStyle() diff --git a/dev-qt/qt4-tqt-engine/metadata.xml b/dev-qt/qt4-tqt-engine/metadata.xml new file mode 100644 index 00000000..6e9f5e4a --- /dev/null +++ b/dev-qt/qt4-tqt-engine/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>fatzer2@gmail.com</email> + <name>Alexander Golubev</name> + </maintainer> +</pkgmetadata> diff --git a/dev-qt/qt4-tqt-engine/qt4-tqt-engine-9999.ebuild b/dev-qt/qt4-tqt-engine/qt4-tqt-engine-9999.ebuild new file mode 100644 index 00000000..d618669f --- /dev/null +++ b/dev-qt/qt4-tqt-engine/qt4-tqt-engine-9999.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI="5" +TRINITY_MODULE_TYPE="dependencies" +TRINITY_MODULE_NAME="qt4-tqt-theme-engine" + +inherit trinity-base qt4-r2 + +DESCRIPTION="A trinity Qt4 theme engine using tqt as a backend" +HOMEPAGE="http://trinitydesktop.org/" +LICENSE="GPL-2 LGPL-2" +KEYWORDS="" +SLOT="0" +IUSE="" + +DEPEND="dev-qt/tqtinterface + >=dev-qt/qtcore-4.8.4:4 + >=dev-qt/qtgui-4.8.4:4" +RDEPEND="$DEPEND" + +need-trinity 9999 + +src_unpack() { + trinity-base_src_unpack +} + +src_prepare() { + local pro libdirs d + + trinity-base_src_prepare + + for d in $(get-trinity-libdirs); do + libdirs+=" -L$d" + done + + for d in $(get_all_libdirs); do + libdirs+=" -L/usr/tqt3/$d" + done + + for pro in ./plugin/plugin.pro ./lib/lib.pro ./examples/tqt3reference/stylewindow.pro; do + sed -i -e 's!\(^INCLUDEPATH += \)/usr/include/tqt3!\1/usr/tqt3/include!;' \ + -e 's!\(^INCLUDEPATH += \)/opt/trinity/include!\1'"$TDEDIR/include"'!;' \ + -e '/\(^LIBS += \)/s!!\1 '"$libdirs"'!' $pro || die "sed failed" + done + epatch "${FILESDIR}/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth" +} + +src_configure() { + qt4-r2_src_configure +} + +src_compile() { + qt4-r2_src_compile +} + +src_install() { + qt4-r2_src_install +} + +pkg_postinst() { + ewarn "With Qt >= 4.8.0 you are likely affected by these Qt4 bug:" + ewarn " https://bugreports.qt.io/browse/QTBUG-25896" + ewarn "To workaround this please make sure to set your Qt graphics system to \"native\"" + ewarn "rather than \"opengl\". Otherwice Qt4 applications may be displayed with numerous" + ewarn "graphical glitches." +} |