fixup! deepin.dde-kwin: init at 5.0.0
This commit is contained in:
parent
69e90bd1a7
commit
11a0602b3d
|
@ -0,0 +1,56 @@
|
||||||
|
From c4edb65554f90a5abfc2ecbf63587b8c6ef2653d Mon Sep 17 00:00:00 2001
|
||||||
|
From: worldofpeace <worldofpeace@protonmail.ch>
|
||||||
|
Date: Tue, 22 Oct 2019 17:20:24 -0400
|
||||||
|
Subject: [PATCH] dde-kwin.pc: make paths relative
|
||||||
|
|
||||||
|
Values like libdir should be relative to the literal ${prefix}.
|
||||||
|
We also use @ONLY so we don't substitute values like ${prefix}
|
||||||
|
with CMake resulting in an unintentional replacement.
|
||||||
|
---
|
||||||
|
plugins/kwin-xcb/lib/CMakeLists.txt | 2 +-
|
||||||
|
plugins/kwin-xcb/lib/dde-kwin.pc.in | 18 +++++++++---------
|
||||||
|
2 files changed, 10 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/plugins/kwin-xcb/lib/CMakeLists.txt b/plugins/kwin-xcb/lib/CMakeLists.txt
|
||||||
|
index 0189b74..62e5553 100644
|
||||||
|
--- a/plugins/kwin-xcb/lib/CMakeLists.txt
|
||||||
|
+++ b/plugins/kwin-xcb/lib/CMakeLists.txt
|
||||||
|
@@ -61,7 +61,7 @@ install_files(
|
||||||
|
kwinutils.h
|
||||||
|
)
|
||||||
|
|
||||||
|
-configure_file(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc)
|
||||||
|
+configure_file(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
|
||||||
|
if (CMAKE_INSTALL_LIBDIR)
|
||||||
|
install_files("/${CMAKE_INSTALL_LIBDIR}/pkgconfig" FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc)
|
||||||
|
elseif (CMAKE_LIBRARY_OUTPUT_DIRECTORY)
|
||||||
|
diff --git a/plugins/kwin-xcb/lib/dde-kwin.pc.in b/plugins/kwin-xcb/lib/dde-kwin.pc.in
|
||||||
|
index 9b1d813..1179761 100644
|
||||||
|
--- a/plugins/kwin-xcb/lib/dde-kwin.pc.in
|
||||||
|
+++ b/plugins/kwin-xcb/lib/dde-kwin.pc.in
|
||||||
|
@@ -1,13 +1,13 @@
|
||||||
|
-prefix=${CMAKE_INSTALL_PREFIX}
|
||||||
|
-exec_prefix=${CMAKE_INSTALL_PREFIX}
|
||||||
|
-libdir=${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}
|
||||||
|
-includedir=${INCLUDE_OUTPUT_PATH}
|
||||||
|
+prefix=@CMAKE_INSTALL_PREFIX@
|
||||||
|
+exec_prefix=${prefix}
|
||||||
|
+libdir=${prefix}/lib
|
||||||
|
+includedir=@INCLUDE_OUTPUT_PATH@
|
||||||
|
|
||||||
|
|
||||||
|
-Name: ${PROJECT_NAME}
|
||||||
|
+Name: @PROJECT_NAME@
|
||||||
|
Description: DDE KWin plugin library
|
||||||
|
-Version: ${PROJECT_VERSION}
|
||||||
|
-Libs: -l${PROJECT_NAME}
|
||||||
|
-Libs.private: -L/usr/X11R6/lib64 -lQt5X11Extras -lKF5WindowSystem -lQt5Widgets -lQt5Gui -lKF5ConfigCore -lKF5CoreAddons -lQt5Core -lGL -lpthread
|
||||||
|
-Cflags: -I${INCLUDE_OUTPUT_PATH}
|
||||||
|
+Version: @PROJECT_VERSION@
|
||||||
|
+Libs: -l$@PROJECT_NAME@
|
||||||
|
+Libs.private: -L/usr/X11R6/lib64 -lQt5X11Extras -lKF5WindowSystem -lQt5Widgets -lQt5Gui -lKF5ConfigCore -lKF5CoreAddons -lQt5Core -lGL -lpthread
|
||||||
|
+Cflags: -I@INCLUDE_OUTPUT_PATH@
|
||||||
|
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
|
@ -72,6 +72,8 @@ mkDerivation rec {
|
||||||
qt5integration
|
qt5integration
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Need to add kwayland around:
|
||||||
|
# * https://github.com/linuxdeepin/dde-kwin/blob/5226bb984c844129f9fa589da56e77decb7b39a1/plugins/kwineffects/blur/CMakeLists.txt#L14
|
||||||
NIX_CFLAGS_COMPILE = "-I${kwayland.dev}/include/KF5";
|
NIX_CFLAGS_COMPILE = "-I${kwayland.dev}/include/KF5";
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
@ -79,7 +81,8 @@ mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./plugin-paths.patch
|
./0001-dde-kwin.pc-make-paths-relative.patch
|
||||||
|
./fix-paths.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -94,7 +97,7 @@ mkDerivation rec {
|
||||||
|
|
||||||
fixPath $out /etc/xdg configures/CMakeLists.txt deepin-wm-dbus/deepinwmfaker.cpp
|
fixPath $out /etc/xdg configures/CMakeLists.txt deepin-wm-dbus/deepinwmfaker.cpp
|
||||||
|
|
||||||
# Need environmental patch
|
# TODO: Need environmental patch
|
||||||
fixPath /run/current-system/sw /usr/lib plugins/kwin-xcb/plugin/main.cpp
|
fixPath /run/current-system/sw /usr/lib plugins/kwin-xcb/plugin/main.cpp
|
||||||
|
|
||||||
substituteInPlace configures/kwin-wm-multitaskingview.desktop \
|
substituteInPlace configures/kwin-wm-multitaskingview.desktop \
|
||||||
|
@ -102,20 +105,33 @@ mkDerivation rec {
|
||||||
|
|
||||||
fixPath ${dde-session-ui} /usr/lib/deepin-daemon/dde-warning-dialog deepin-wm-dbus/deepinwmfaker.cpp
|
fixPath ${dde-session-ui} /usr/lib/deepin-daemon/dde-warning-dialog deepin-wm-dbus/deepinwmfaker.cpp
|
||||||
|
|
||||||
|
# Correct qt plugin installation path to be within dde-kwin prefix.
|
||||||
substituteInPlace CMakeLists.txt \
|
substituteInPlace CMakeLists.txt \
|
||||||
--subst-var-by plugin_path "$out/$qtPluginPrefix"
|
--subst-var-by plugin_path "$out/$qtPluginPrefix"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postInstall = ''
|
||||||
|
# Correct invalid path in .pc
|
||||||
|
substituteInPlace $out/lib/pkgconfig/dde-kwin.pc \
|
||||||
|
--replace "-L/usr/X11R6/lib64" ""
|
||||||
|
|
||||||
chmod +x $out/bin/kwin_no_scale
|
chmod +x $out/bin/kwin_no_scale
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
"''${qtWrapperArgs[@]}"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "KWin configures on DDE";
|
description = "KWin configuration for Deepin Desktop Environment";
|
||||||
homepage = "https://github.com/linuxdeepin/dde-kwin";
|
homepage = "https://github.com/linuxdeepin/dde-kwin";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
|
Loading…
Reference in New Issue