pkgsrc-WIP-changes archive

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

qt5-styleplugins: import to wip



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Sat Jun 11 15:07:00 2022 +0200
Changeset:	62be77c9c23e56ea05d362dc16aa1b9b898169f8

Modified Files:
	Makefile
Added Files:
	qt5-styleplugins/DESCR
	qt5-styleplugins/Makefile
	qt5-styleplugins/PLIST
	qt5-styleplugins/distinfo
	qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp
	qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp

Log Message:
qt5-styleplugins: import to wip

Provide via e-mail by the MAINTAINER (see Makefile).
Minor adjustments made by myself.

Not merging into main as upstream has been inactive since 2017.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=62be77c9c23e56ea05d362dc16aa1b9b898169f8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 qt5-styleplugins/DESCR                             |  2 ++
 qt5-styleplugins/Makefile                          | 25 ++++++++++++++++++++++
 qt5-styleplugins/PLIST                             | 13 +++++++++++
 qt5-styleplugins/distinfo                          |  7 ++++++
 .../patch-src_plugins_styles_gtk2_qgtkstyle.cpp    | 18 ++++++++++++++++
 .../patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp | 16 ++++++++++++++
 7 files changed, 82 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6910b57347..8975dca9fa 100644
--- a/Makefile
+++ b/Makefile
@@ -4984,6 +4984,7 @@ SUBDIR+=	qt4-libqtlua
 SUBDIR+=	qt5-libqtlua
 SUBDIR+=	qt5-qjson
 SUBDIR+=	qt5-qtbase-git
+SUBDIR+=	qt5-styleplugins
 SUBDIR+=	qt6
 SUBDIR+=	qt6-odbc
 SUBDIR+=	qt6-psql
diff --git a/qt5-styleplugins/DESCR b/qt5-styleplugins/DESCR
new file mode 100644
index 0000000000..f9169d12b8
--- /dev/null
+++ b/qt5-styleplugins/DESCR
@@ -0,0 +1,2 @@
+This metapackage pulls in all additional widget styles for Qt5, and
+the GTK+ 2 platform theme.
diff --git a/qt5-styleplugins/Makefile b/qt5-styleplugins/Makefile
new file mode 100644
index 0000000000..68c418344a
--- /dev/null
+++ b/qt5-styleplugins/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.3 2022/06/06 16:07:21 vms 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 --git a/qt5-styleplugins/PLIST b/qt5-styleplugins/PLIST
new file mode 100644
index 0000000000..62b148d9fb
--- /dev/null
+++ b/qt5-styleplugins/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD$
+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 --git a/qt5-styleplugins/distinfo b/qt5-styleplugins/distinfo
new file mode 100644
index 0000000000..a0bcbfd574
--- /dev/null
+++ b/qt5-styleplugins/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+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 --git a/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp b/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp
new file mode 100644
index 0000000000..338ecfdccb
--- /dev/null
+++ b/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle.cpp
@@ -0,0 +1,18 @@
+$NetBSD$
+
+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 --git a/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp b/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp
new file mode 100644
index 0000000000..62ce3a727e
--- /dev/null
+++ b/qt5-styleplugins/patches/patch-src_plugins_styles_gtk2_qgtkstyle__p.cpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+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