pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/qt5-styleplugins x11/qt5-styleplugins: import package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb063e287f35
branches:  trunk
changeset: 381297:fb063e287f35
user:      pin <pin%pkgsrc.org@localhost>
date:      Sun Jul 03 20:43:53 2022 +0000

description:
x11/qt5-styleplugins: import package

Packaged in wip by Paolo Vincenzo Olivo.

diffstat:

 x11/qt5-styleplugins/DESCR                                                  |   2 +
 x11/qt5-styleplugins/Makefile                                               |  25 ++++++++++
 x11/qt5-styleplugins/PLIST                                                  |  13 +++++
 x11/qt5-styleplugins/distinfo                                               |   7 ++
 x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp    |  18 +++++++
 x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp |  16 ++++++
 6 files changed, 81 insertions(+), 0 deletions(-)

diffs (105 lines):

diff -r acac24bec138 -r fb063e287f35 x11/qt5-styleplugins/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-styleplugins/DESCR        Sun Jul 03 20:43:53 2022 +0000
@@ -0,0 +1,2 @@
+This metapackage pulls in all additional widget styles for Qt5, and
+the GTK+ 2 platform theme.
diff -r acac24bec138 -r fb063e287f35 x11/qt5-styleplugins/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-styleplugins/Makefile     Sun Jul 03 20:43:53 2022 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2022/07/03 20:43:53 pin Exp $
+
+DISTNAME=      qt5-styleplugins-5.0.0.20170112
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=qt/}
+GITHUB_PROJECT=        qtstyleplugins
+GITHUB_TAG=    335dbece103e2cbf6c7cf819ab6672c2956b17b3
+
+MAINTAINER=    vms%retrobsd.ddns.net@localhost
+HOMEPAGE=      https://github.com/qt/qtstyleplugins
+COMMENT=       Qt 5 extra widget styles
+LICENSE=       gnu-lgpl-v2.1
+
+USE_LANGUAGES=         c c++11
+
+INSTALL_MAKE_FLAGS+=   INSTALL_ROOT=${DESTDIR}
+
+do-configure:
+       cd ${WRKSRC} && \
+        ${SETENV} ${CONFIGURE_ENV} \
+        ${QTDIR}/bin/qmake -o Makefile PREFIX=${PREFIX}
+
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r acac24bec138 -r fb063e287f35 x11/qt5-styleplugins/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-styleplugins/PLIST        Sun Jul 03 20:43:53 2022 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2022/07/03 20:43:53 pin Exp $
+qt5/lib/cmake/Qt5Gui/Qt5Gui_QGtk2ThemePlugin.cmake
+qt5/lib/cmake/Qt5Widgets/Qt5Widgets_QBB10StylePlugin.cmake
+qt5/lib/cmake/Qt5Widgets/Qt5Widgets_QCleanlooksStylePlugin.cmake
+qt5/lib/cmake/Qt5Widgets/Qt5Widgets_QGtk2StylePlugin.cmake
+qt5/lib/cmake/Qt5Widgets/Qt5Widgets_QMotifStylePlugin.cmake
+qt5/lib/cmake/Qt5Widgets/Qt5Widgets_QPlastiqueStylePlugin.cmake
+qt5/plugins/platformthemes/libqgtk2.so
+qt5/plugins/styles/libbb10styleplugin.so
+qt5/plugins/styles/libqcleanlooksstyle.so
+qt5/plugins/styles/libqgtk2style.so
+qt5/plugins/styles/libqmotifstyle.so
+qt5/plugins/styles/libqplastiquestyle.so
diff -r acac24bec138 -r fb063e287f35 x11/qt5-styleplugins/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-styleplugins/distinfo     Sun Jul 03 20:43:53 2022 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2022/07/03 20:43:53 pin Exp $
+
+BLAKE2s (qt5-styleplugins-5.0.0.20170112-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz) = f45c7df502f1a5563ed7f8c5239419ac6df01abea89ece1c41553dd3a5e2b3aa
+SHA512 (qt5-styleplugins-5.0.0.20170112-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz) = 
e8c2d0e9c6b0a47cab04ffd2e9384606638905b63a7c1580f9b629bbcc84ebff19743363ffee3dbd31c3de1dcda684211ad3052932b5aa0081e529afd9cbb14d
+Size (qt5-styleplugins-5.0.0.20170112-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz) = 306394 bytes
+SHA1 (patch-src_plugins_styles_gtk2_qgtkstyle.cpp) = db574c10db3b74865e4dc9ff3e14892be6bc6e70
+SHA1 (patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp) = c02eed9b15c09960bda946debe5026719880c84e
diff -r acac24bec138 -r fb063e287f35 x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp  Sun Jul 03 20:43:53 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_plugins_styles_gtk2_qgtkstyle.cpp,v 1.1 2022/07/03 20:43:53 pin Exp $
+
+Fix setting background palette
+
+--- src/plugins/styles/gtk2/qgtkstyle.cpp.orig 2017-03-11 09:23:02.000000000 +0000
++++ src/plugins/styles/gtk2/qgtkstyle.cpp
+@@ -440,7 +440,11 @@ void QGtkStyle::polish(QApplication *app
+     // not supported as these should be entirely determined by
+     // current Gtk settings
+     if (app->desktopSettingsAware() && d->isThemeAvailable()) {
++    #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
+         QApplicationPrivate::setSystemPalette(standardPalette());
++    #else
++        QApplication::setPalette(standardPalette());
++    #endif
+         QApplicationPrivate::setSystemFont(d->getThemeFont());
+         d->applyCustomPaletteHash();
+         if (!d->isKDE4Session())
diff -r acac24bec138 -r fb063e287f35 x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp       Sun Jul 03 20:43:53 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp,v 1.1 2022/07/03 20:43:53 pin Exp $
+
+Fix build against Qt 5.15
+
+--- src/plugins/styles/gtk2/qgtkstyle_p.cpp.orig       2017-03-11 09:23:02.000000000 +0000
++++ src/plugins/styles/gtk2/qgtkstyle_p.cpp
+@@ -508,7 +508,9 @@ void QGtkStyleUpdateScheduler::updateThe
+       if (oldTheme != QGtkStylePrivate::getThemeName()) {
+           oldTheme = QGtkStylePrivate::getThemeName();
+           QPalette newPalette = qApp->style()->standardPalette();
++      #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
+           QApplicationPrivate::setSystemPalette(newPalette);
++      #endif
+           QApplication::setPalette(newPalette);
+           if (!QGtkStylePrivate::instances.isEmpty()) {
+               QGtkStylePrivate::instances.last()->initGtkWidgets();



Home | Main Index | Thread Index | Old Index