pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/x11/qt5-styleplugins
Module Name: pkgsrc
Committed By: pin
Date: Sun Jul 3 20:43:53 UTC 2022
Added Files:
pkgsrc/x11/qt5-styleplugins: DESCR Makefile PLIST distinfo
pkgsrc/x11/qt5-styleplugins/patches:
patch-src_plugins_styles_gtk2_qgtkstyle.cpp
patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp
Log Message:
x11/qt5-styleplugins: import package
Packaged in wip by Paolo Vincenzo Olivo.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/x11/qt5-styleplugins/DESCR \
pkgsrc/x11/qt5-styleplugins/Makefile pkgsrc/x11/qt5-styleplugins/PLIST \
pkgsrc/x11/qt5-styleplugins/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp \
pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/x11/qt5-styleplugins/DESCR
diff -u /dev/null pkgsrc/x11/qt5-styleplugins/DESCR:1.1
--- /dev/null Sun Jul 3 20:43:53 2022
+++ pkgsrc/x11/qt5-styleplugins/DESCR Sun Jul 3 20:43:53 2022
@@ -0,0 +1,2 @@
+This metapackage pulls in all additional widget styles for Qt5, and
+the GTK+ 2 platform theme.
Index: pkgsrc/x11/qt5-styleplugins/Makefile
diff -u /dev/null pkgsrc/x11/qt5-styleplugins/Makefile:1.1
--- /dev/null Sun Jul 3 20:43:53 2022
+++ pkgsrc/x11/qt5-styleplugins/Makefile Sun Jul 3 20:43:53 2022
@@ -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"
Index: pkgsrc/x11/qt5-styleplugins/PLIST
diff -u /dev/null pkgsrc/x11/qt5-styleplugins/PLIST:1.1
--- /dev/null Sun Jul 3 20:43:53 2022
+++ pkgsrc/x11/qt5-styleplugins/PLIST Sun Jul 3 20:43:53 2022
@@ -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
Index: pkgsrc/x11/qt5-styleplugins/distinfo
diff -u /dev/null pkgsrc/x11/qt5-styleplugins/distinfo:1.1
--- /dev/null Sun Jul 3 20:43:53 2022
+++ pkgsrc/x11/qt5-styleplugins/distinfo Sun Jul 3 20:43:53 2022
@@ -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
Index: pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp
diff -u /dev/null pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp:1.1
--- /dev/null Sun Jul 3 20:43:53 2022
+++ pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp Sun Jul 3 20:43:53 2022
@@ -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())
Index: pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp
diff -u /dev/null pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp:1.1
--- /dev/null Sun Jul 3 20:43:53 2022
+++ pkgsrc/x11/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp Sun Jul 3 20:43:53 2022
@@ -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