commit:     40dd28ade54ab98409cd88a82e0e7a18206f8072
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  5 12:59:52 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Oct  5 13:15:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40dd28ad

app-office/texstudio: re-add IUSE=video making qtmultimedia dep optional

Thanks to hsk17 for pointing this out.

Closes: https://bugs.gentoo.org/940901
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-office/texstudio/metadata.xml                                    | 2 +-
 .../{texstudio-4.8.4-r1.ebuild => texstudio-4.8.4-r2.ebuild}         | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/app-office/texstudio/metadata.xml 
b/app-office/texstudio/metadata.xml
index 6d59b3acc8f2..a92a8d4aef12 100644
--- a/app-office/texstudio/metadata.xml
+++ b/app-office/texstudio/metadata.xml
@@ -6,7 +6,7 @@
                <name>Gentoo TeX Project</name>
        </maintainer>
        <use>
-               <flag name="video">Use phonon for video embedding</flag>
+               <flag name="video">Enable video player in pdf files</flag>
        </use>
        <upstream>
                <remote-id type="github">texstudio-org/texstudio</remote-id>

diff --git a/app-office/texstudio/texstudio-4.8.4-r1.ebuild 
b/app-office/texstudio/texstudio-4.8.4-r2.ebuild
similarity index 92%
rename from app-office/texstudio/texstudio-4.8.4-r1.ebuild
rename to app-office/texstudio/texstudio-4.8.4-r2.ebuild
index 43bd8a076684..cc3750320cfb 100644
--- a/app-office/texstudio/texstudio-4.8.4-r1.ebuild
+++ b/app-office/texstudio/texstudio-4.8.4-r2.ebuild
@@ -15,6 +15,8 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 
+IUSE="video"
+
 DEPEND="
        app-text/hunspell:=
        app-text/poppler:=[qt6]
@@ -22,11 +24,11 @@ DEPEND="
        dev-qt/qt5compat:6
        dev-qt/qtbase:6[concurrent,gui,network,widgets,xml]
        dev-qt/qtdeclarative:6
-       dev-qt/qtmultimedia:6
        dev-qt/qtsvg:6
        dev-qt/qttools:6[widgets]
        sys-libs/zlib
        x11-libs/libX11
+       video? ( dev-qt/qtmultimedia:6 )
 "
 RDEPEND="
        ${DEPEND}
@@ -56,6 +58,7 @@ src_configure() {
        local mycmakeargs=(
                -DQT_VERSION_MAJOR=6
        )
+       use video && mycmakeargs+=( -DTEXSTUDIO_ENABLE_MEDIAPLAYER=ON )
        cmake_src_configure
 }
 

Reply via email to