mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
gui-apps/hyprland-plugins: support building split-monitor-workspaces without wlroots[X]
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user