diff --git a/x11/plasma6-plasma-workspace/Makefile b/x11/plasma6-plasma-workspace/Makefile index b92d3f17947c..1872ec3569cd 100644 --- a/x11/plasma6-plasma-workspace/Makefile +++ b/x11/plasma6-plasma-workspace/Makefile @@ -1,42 +1,47 @@ PORTNAME= plasma-workspace DISTVERSION= ${KDE_PLASMA_VERSION} +PORTREVISION= 1 CATEGORIES= x11 kde kde-plasma COMMENT= KDE Plasma Workspace MAINTAINER= kde@FreeBSD.org BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols LIB_DEPENDS= libcanberra.so:audio/libcanberra \ libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libicui18n.so:devel/icu \ libKExiv2Qt6.so:graphics/libkexiv2-devel \ libpipewire-0.3.so:multimedia/pipewire \ libqalculate.so:math/libqalculate \ libudev.so:devel/libudev-devd \ libwayland-client.so:graphics/wayland \ libxcb-image.so:x11/xcb-util-image \ libxcb-util.so:x11/xcb-util \ libxkbcommon.so:x11/libxkbcommon RUN_DEPENDS= ${LOCALBASE}/bin/genv:sysutils/coreutils USES= cmake desktop-file-utils gettext gl kde:6 pkgconfig qt:6 \ tar:xz xorg USE_GL= gl opengl USE_KDE= activities activities-stats archive attica5 auth baloo5 \ bookmarks colorscheme completion config configwidgets \ coreaddons crash dbusaddons doctools filemetadata globalaccel \ guiaddons holidays i18n iconthemes idletime itemmodels \ itemviews jobwidgets kcmutils kdeclarative kio kirigami-addons \ kirigami2 kpipewire kquickcharts kscreenlocker kwin \ layer-shell-qt libkscreen libksysguard libplasma newstuff \ notifications notifyconfig package parts plasma5support prison \ runner service solid sonnet statusnotifieritem svg \ syntaxhighlighting texteditor textwidgets unitconversion \ userfeedback wallet wayland widgetsaddons windowsystem xmlgui \ ecm:build plasma-wayland-protocols:build USE_QT= 5compat base declarative phonon4 svg wayland USE_XORG= ice sm x11 xau xcb xcursor xext xfixes xft xi xrender xtst +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + ${PATCH_WRKSRC}/startkde/startplasma.cpp + .include diff --git a/x11/plasma6-plasma-workspace/files/patch-setup_xdg_environment b/x11/plasma6-plasma-workspace/files/patch-setup_xdg_environment new file mode 100644 index 000000000000..b6aba665507f --- /dev/null +++ b/x11/plasma6-plasma-workspace/files/patch-setup_xdg_environment @@ -0,0 +1,11 @@ +--- startkde/startplasma.cpp.orig 2023-11-29 10:44:01 UTC ++++ startkde/startplasma.cpp +@@ -341,7 +341,7 @@ void setupPlasmaEnvironment() + // Add kdedefaults dir to allow config defaults overriding from a writable location + QByteArray currentConfigDirs = qgetenv("XDG_CONFIG_DIRS"); + if (currentConfigDirs.isEmpty()) { +- currentConfigDirs = "/etc/xdg"; ++ currentConfigDirs = "%%LOCALBASE%%/etc/xdg:/etc/xdg"; + } + const QString extraConfigDir = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1String("/kdedefaults"); + QDir().mkpath(extraConfigDir);