Created
August 19, 2025 17:57
-
-
Save tjbcg/2f7c433667eebdcc335dc690da80f929 to your computer and use it in GitHub Desktop.
Sioyek ebuild for wayland
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ../../../guru/app-text/sioyek/files/shim.sh 1970-01-01 01:00:00.000000000 +0100 | |
+++ ./files/shim.sh 2025-08-19 13:08:03.390721842 +0200 | |
@@ -0,0 +1,12 @@ | |
+#!/bin/sh | |
+# Run sioyek with the correct graphics-related environment on wayland | |
+ | |
+if [ "${XDG_SESSION_TYPE:-}" = "wayland" ]; then | |
+ export __GLX_VENDOR_LIBRARY_NAME=mesa | |
+ export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json | |
+ export MESA_LOADER_DRIVER_OVERRIDE=zink | |
+ export GALLIUM_DRIVER=zink | |
+ export LIBGL_KOPPER_DRI2=1 | |
+fi | |
+ | |
+exec /opt/sioyek/sioyek-bin "$@" | |
diff '--color=auto' -ru --new-file ../../../guru/app-text/sioyek/sioyek-9999.ebuild ./sioyek-9999.ebuild | |
--- ../../../guru/app-text/sioyek/sioyek-9999.ebuild 2024-12-08 23:55:24.732282599 +0100 | |
+++ ./sioyek-9999.ebuild 2025-08-19 13:13:32.487726380 +0200 | |
@@ -17,6 +17,7 @@ | |
else | |
inherit git-r3 | |
EGIT_REPO_URI="https://github.com/ahrm/sioyek.git" | |
+ EGIT_BRANCH="development" | |
fi | |
DESCRIPTION="Sioyek is a PDF viewer with a focus on textbooks and research papers" | |
@@ -24,6 +25,7 @@ | |
LICENSE="GPL-3" | |
SLOT="0" | |
+IUSE="wayland" | |
BDEPEND=" | |
media-libs/harfbuzz | |
@@ -31,6 +33,12 @@ | |
dev-qt/qt3d:6 | |
" | |
+RDEPEND=" | |
+ wayland? ( | |
+ media-libs/mesa[video_cards_zink] | |
+ ) | |
+" | |
+ | |
src_prepare() { | |
default | |
@@ -54,8 +62,10 @@ | |
src_install() { | |
#intall bin and shaders | |
insinto /opt/sioyek | |
- doins sioyek | |
+ newins sioyek sioyek-bin | |
+ newins "${FILESDIR}/shim.sh" sioyek | |
fperms +x /opt/sioyek/sioyek | |
+ fperms +x /opt/sioyek/sioyek-bin | |
insinto /opt/sioyek/shaders | |
doins pdf_viewer/shaders/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment