diff options
author | Sergey Torokhov <torokhov-s-a@yandex.ru> | 2023-08-25 17:19:07 +0300 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2023-09-10 10:19:29 +0200 |
commit | b7bd94d19ca5da5493bbd11ca46bc70637a30286 (patch) | |
tree | b3f1c352862ef3955356c6bd0f2be7010afbc819 /app-office/onlyoffice-bin | |
parent | gnome-extra/gnome-shell-extension-bing-wallpaper: Fix soup deps (diff) | |
download | gentoo-b7bd94d19ca5da5493bbd11ca46bc70637a30286.tar.gz gentoo-b7bd94d19ca5da5493bbd11ca46bc70637a30286.tar.bz2 gentoo-b7bd94d19ca5da5493bbd11ca46bc70637a30286.zip |
app-office/onlyoffice-bin: Fix launch the Onlyoffice on ALSA systems
Add IUSE="pulseaudio" to control install and launch the
app-office/onlyoffice-bin on ALSA systems the way similar
it's was done for www-client/firefoix-bin using USE="-pulseaudio"
Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'app-office/onlyoffice-bin')
-rw-r--r-- | app-office/onlyoffice-bin/onlyoffice-bin-7.4.1-r1.ebuild (renamed from app-office/onlyoffice-bin/onlyoffice-bin-7.4.1.ebuild) | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/app-office/onlyoffice-bin/onlyoffice-bin-7.4.1.ebuild b/app-office/onlyoffice-bin/onlyoffice-bin-7.4.1-r1.ebuild index e88bb3d1c410..b7a024eb6d59 100644 --- a/app-office/onlyoffice-bin/onlyoffice-bin-7.4.1.ebuild +++ b/app-office/onlyoffice-bin/onlyoffice-bin-7.4.1-r1.ebuild @@ -38,7 +38,6 @@ RDEPEND=" media-libs/gstreamer:1.0 media-libs/harfbuzz media-libs/libglvnd - media-libs/libpulse net-print/cups sys-apps/dbus x11-libs/cairo @@ -60,12 +59,24 @@ RDEPEND=" x11-libs/libXScrnSaver x11-libs/libXtst x11-libs/pango + || ( + media-libs/libpulse + media-sound/apulse + ) " S="${WORKDIR}" QA_PREBUILT="*" +src_prepare() { + default + + # Allow launching the ONLYOFFICE on ALSA systems via media-sound/apuls + sed -i -e 's|\(export LD_LIBRARY_PATH=$DIR$LDLPATH\)|\1:'"${EPREFIX}"'/usr/'$(get_libdir)'/apulse|' \ + "${S}"/usr/bin/onlyoffice-desktopeditors || die +} + src_install() { domenu usr/share/applications/onlyoffice-desktopeditors.desktop for size in {16,24,32,48,64,128,256}; do |