diff --git a/gui-apps/hyprland-plugins/files/split-monitor-workspaces.patch b/gui-apps/hyprland-plugins/files/split-monitor-workspaces.patch new file mode 100644 index 0000000000..43ffc090f7 --- /dev/null +++ b/gui-apps/hyprland-plugins/files/split-monitor-workspaces.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 264f1aa..ee88b24 100644 +--- a/Makefile ++++ b/Makefile +@@ -19,7 +19,7 @@ ifndef HYPRLAND_HEADERS + endif + + $(PLUGIN_NAME).so: $(SOURCE_FILES) $(INCLUDE_FILES) +- g++ -shared -fPIC --no-gnu-unique $(SOURCE_FILES) -o $(PLUGIN_NAME).so -g -I "/usr/include/pixman-1" -I "/usr/include/libdrm" -I "${HYPRLAND_HEADERS}" -Iinclude -std=c++23 ++ g++ -shared -fPIC --no-gnu-unique $(SOURCE_FILES) -o $(PLUGIN_NAME).so -g -I "/usr/include/pixman-1" -I "/usr/include/libdrm" -I "${HYPRLAND_HEADERS}" -Iinclude -std=c++23 -DNO_XWAYLAND + + clean: + rm -f ./$(PLUGIN_NAME).so diff --git a/gui-apps/hyprland-plugins/hyprland-plugins-0.24.1.ebuild b/gui-apps/hyprland-plugins/hyprland-plugins-0.24.1.ebuild index 9c5189a1fa..c674218ece 100644 --- a/gui-apps/hyprland-plugins/hyprland-plugins-0.24.1.ebuild +++ b/gui-apps/hyprland-plugins/hyprland-plugins-0.24.1.ebuild @@ -18,18 +18,31 @@ S="${WORKDIR}/${PN}-${COMMIT}" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" -IUSE="+borders-plus-plus csgo-vulkan-fix +hyprbars split-monitor-workspaces" +IUSE="+borders-plus-plus csgo-vulkan-fix +hyprbars split-monitor-workspaces X" REQUIRED_USE="|| ( borders-plus-plus csgo-vulkan-fix hyprbars split-monitor-workspaces )" RDEPEND="gui-wm/hyprland" DEPEND="${RDEPEND}" BDEPEND=" ~gui-wm/hyprland-${PV} - split-monitor-workspaces? ( gui-libs/wlroots[X] ) + split-monitor-workspaces? ( gui-libs/wlroots[X?] ) x11-libs/libdrm x11-libs/pixman " +src_unpack() { + default + cp "${FILESDIR}/split-monitor-workspaces.patch" "${WORKDIR}/split-monitor-workspaces-${SPLITCOMMIT}" || die +} + +src_prepare() { + eapply_user + if use split-monitor-workspaces && ! use X; then + cd "${WORKDIR}/split-monitor-workspaces-${SPLITCOMMIT}" || die + eapply "${WORKDIR}/split-monitor-workspaces-${SPLITCOMMIT}" + fi +} + src_compile() { emake -C "${WORKDIR}/hyprland-source" protocols export HYPRLAND_HEADERS="${WORKDIR}/hyprland-source"