forked from ports/contrib
qt5-styleplugins: initial commit, v5.0.0-335dbec
This commit is contained in:
parent
2be675cfd7
commit
0df5e07a9f
21
qt5-styleplugins/.footprint
Normal file
21
qt5-styleplugins/.footprint
Normal file
@ -0,0 +1,21 @@
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/cmake/
|
||||
drwxr-xr-x root/root usr/lib/cmake/Qt5Gui/
|
||||
-rw-r--r-- root/root usr/lib/cmake/Qt5Gui/Qt5Gui_QGtk2ThemePlugin.cmake
|
||||
drwxr-xr-x root/root usr/lib/cmake/Qt5Widgets/
|
||||
-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QBB10StylePlugin.cmake
|
||||
-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QCleanlooksStylePlugin.cmake
|
||||
-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QGtk2StylePlugin.cmake
|
||||
-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QMotifStylePlugin.cmake
|
||||
-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QPlastiqueStylePlugin.cmake
|
||||
drwxr-xr-x root/root usr/lib/qt5/
|
||||
drwxr-xr-x root/root usr/lib/qt5/plugins/
|
||||
drwxr-xr-x root/root usr/lib/qt5/plugins/platformthemes/
|
||||
-rwxr-xr-x root/root usr/lib/qt5/plugins/platformthemes/libqgtk2.so
|
||||
drwxr-xr-x root/root usr/lib/qt5/plugins/styles/
|
||||
-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libbb10styleplugin.so
|
||||
-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqcleanlooksstyle.so
|
||||
-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqgtk2style.so
|
||||
-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqmotifstyle.so
|
||||
-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqplastiquestyle.so
|
6
qt5-styleplugins/.signature
Normal file
6
qt5-styleplugins/.signature
Normal file
@ -0,0 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/contrib.pub
|
||||
RWSagIOpLGJF3zBasHG4nZS9L4CiqJWzTW83xGXcAp6BWmOxtsQhDo/tUKkMMHdSI3CgdFrDDc/BccPfxp6lkf9mWZgBI9r2zAY=
|
||||
SHA256 (Pkgfile) = ac9a0990cf5d7ad5f4ddd2c699084c7414118241b8ec078c396bfcf545456ff3
|
||||
SHA256 (.footprint) = 006821161e7aa7e7dfcca7770726efb469db9a1ac5384dc2ff4e95863addd016
|
||||
SHA256 (qt5-styleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz) = 29ec24fa8df64be161ad06d0e5af3ba1a20bfe265004f5fe4ab9f5f3abf9a5ba
|
||||
SHA256 (qt5.15.patch) = 7e0c4fb1d98af974500ad31a42da0f85492326cb6ed2155b510d67c85291d7a4
|
31
qt5-styleplugins/Pkgfile
Normal file
31
qt5-styleplugins/Pkgfile
Normal file
@ -0,0 +1,31 @@
|
||||
# Description: Additional style plugins for Qt5
|
||||
# URL: https://github.com/qt/qtstyleplugins
|
||||
# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
|
||||
# Depends on: gtk libpcre2 qt5 zstd
|
||||
|
||||
name=qt5-styleplugins
|
||||
_commit=335dbece103e2cbf6c7cf819ab6672c2956b17b3
|
||||
version=5.0.0-335dbec
|
||||
release=1
|
||||
source=(https://github.com/qt/qtstyleplugins/archive/$_commit/$name-$_commit.tar.gz
|
||||
qt5.15.patch)
|
||||
|
||||
build() {
|
||||
cd qtstyleplugins-$_commit
|
||||
|
||||
patch -p1 < $SRC/qt5.15.patch
|
||||
|
||||
qmake-qt5 \
|
||||
PREFIX="/usr" \
|
||||
QMAKE_CFLAGS_RELEASE="$CFLAGS" \
|
||||
QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" \
|
||||
LIBS+="-lQt5DBus"
|
||||
|
||||
make qmake_all
|
||||
|
||||
# remove default '-pipe -O2' flag
|
||||
find . -name Makefile -exec sed -i 's/ -pipe -O2 / /g' {} \;
|
||||
|
||||
make
|
||||
make INSTALL_ROOT=$PKG install
|
||||
}
|
25
qt5-styleplugins/qt5.15.patch
Normal file
25
qt5-styleplugins/qt5.15.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff -pruN qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle.cpp qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle.cpp
|
||||
--- qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle.cpp 2017-03-11 11:23:02.000000000 +0200
|
||||
+++ qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle.cpp 2020-07-13 11:29:16.119019641 +0300
|
||||
@@ -440,7 +440,7 @@ void QGtkStyle::polish(QApplication *app
|
||||
// not supported as these should be entirely determined by
|
||||
// current Gtk settings
|
||||
if (app->desktopSettingsAware() && d->isThemeAvailable()) {
|
||||
- QApplicationPrivate::setSystemPalette(standardPalette());
|
||||
+ QApplication::setPalette(standardPalette());
|
||||
QApplicationPrivate::setSystemFont(d->getThemeFont());
|
||||
d->applyCustomPaletteHash();
|
||||
if (!d->isKDE4Session())
|
||||
Binary files qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/.qgtkstyle.cpp.un~ and qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/.qgtkstyle.cpp.un~ differ
|
||||
diff -pruN qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle_p.cpp qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle_p.cpp
|
||||
--- qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle_p.cpp 2017-03-11 11:23:02.000000000 +0200
|
||||
+++ qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle_p.cpp 2020-07-13 11:28:03.225683567 +0300
|
||||
@@ -508,7 +508,6 @@ void QGtkStyleUpdateScheduler::updateThe
|
||||
if (oldTheme != QGtkStylePrivate::getThemeName()) {
|
||||
oldTheme = QGtkStylePrivate::getThemeName();
|
||||
QPalette newPalette = qApp->style()->standardPalette();
|
||||
- QApplicationPrivate::setSystemPalette(newPalette);
|
||||
QApplication::setPalette(newPalette);
|
||||
if (!QGtkStylePrivate::instances.isEmpty()) {
|
||||
QGtkStylePrivate::instances.last()->initGtkWidgets();
|
||||
Binary files qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/.qgtkstyle_p.cpp.un~ and qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/.qgtkstyle_p.cpp.un~ differ
|
Loading…
x
Reference in New Issue
Block a user