commit: b17d14a32bf062b594b39ecdf16d558d57ec76ce Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Mon Feb 23 09:58:17 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Feb 23 16:53:58 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b17d14a3
app-office/texstudio: add 4.9.2 add optional qtermwidget now available for Qt6 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://codeberg.org/gentoo/gentoo/pulls/124 Merges: https://codeberg.org/gentoo/gentoo/pulls/124 Signed-off-by: Sam James <sam <AT> gentoo.org> app-office/texstudio/Manifest | 1 + app-office/texstudio/metadata.xml | 1 + app-office/texstudio/texstudio-4.9.2.ebuild | 95 +++++++++++++++++++++++++++++ profiles/arch/arm/package.use.mask | 4 ++ profiles/arch/ppc/package.use.mask | 4 ++ 5 files changed, 105 insertions(+) diff --git a/app-office/texstudio/Manifest b/app-office/texstudio/Manifest index e9912676a5eb..5fd49b8a3789 100644 --- a/app-office/texstudio/Manifest +++ b/app-office/texstudio/Manifest @@ -1,3 +1,4 @@ DIST texstudio-4.8.9.tar.gz 115097229 BLAKE2B 3aadc08b827279fbfad67f4e4e2cdc7e1492747e6b4f1667cf566695fda60870e44b5f3c342aaafbab0311278bd95c080cc1392e0bb6c05e3475ee132efc8f28 SHA512 b552e36bf489ac974311e06173f2779cb640d16b88f923d73ff910cc7533b7c4c3374fd7a37e56cc03de3bf8a035e71708f11e14584c880c128505169fca51f7 DIST texstudio-4.9.0.tar.gz 115744141 BLAKE2B 8ce584ac8c1eb37252f42a2dce24dc93c06f76e7876de792c722875e0720344873352939f7239922c19b99b4a0b85dd26f97b95a2eba22a411824fb868551bc8 SHA512 06226e767d007137e08378a4f4a73c508c34db47eb20bb333152d044096dc3e5aecba44bef02ee1168ce35699af22bf5a8d4ffe1777df35015c967f2c011aa3e DIST texstudio-4.9.1.tar.gz 115826418 BLAKE2B b79037e4cb17d540db11155c2a49f76a9037fb4b8f2eb64ba12a65cf47b60c11af07309c179b945f8765f376762b3bbbd7dcffd11b0c62327a5f7219be6142d2 SHA512 e6a9dec6eaa2330ddc693153125df80690204c9441d02fc9f8122b58c2329e89110cd0daacd1b00dfa0aca6faf1a71d0b154435a47985e439cbb1ac9550410e1 +DIST texstudio-4.9.2.tar.gz 115969502 BLAKE2B 3f0a4713ecfcb0814dddc4725a9bfcea1f0f40bbdfc52385b29bcc3ea01dea0c288db1ef6294c8b8e78ca523732c3ce600e98b1287bab09822977eca8e21da3b SHA512 a76dffe2abdb08e8875819ba22bf24a82a96af0616451b6fc2a870b32828e3029754c623eb3459934244ed2af7f47369ac7fdcfb0787c077508b73534c355cf7 diff --git a/app-office/texstudio/metadata.xml b/app-office/texstudio/metadata.xml index a92a8d4aef12..b1c19dd1d2e0 100644 --- a/app-office/texstudio/metadata.xml +++ b/app-office/texstudio/metadata.xml @@ -6,6 +6,7 @@ <name>Gentoo TeX Project</name> </maintainer> <use> + <flag name="qtermwidget">Enable terminal pane using <pkg>x11-libs/qtermwidget</pkg></flag> <flag name="video">Enable video player in pdf files</flag> </use> <upstream> diff --git a/app-office/texstudio/texstudio-4.9.2.ebuild b/app-office/texstudio/texstudio-4.9.2.ebuild new file mode 100644 index 000000000000..575162210442 --- /dev/null +++ b/app-office/texstudio/texstudio-4.9.2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake desktop optfeature xdg + +DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)" +HOMEPAGE="https://www.texstudio.org https://github.com/texstudio-org/texstudio" +SRC_URI="https://github.com/texstudio-org/texstudio/archive/${PV}.tar.gz -> ${P}.tar.gz" + +# MIT: To Title Case +# LGPL-2: Crystal Project +# CC-BY-SA-3.0: Oxygen icon theme +# CC0-1.0: Colibre icon theme +LICENSE="GPL-3 MIT LGPL-2 CC-BY-SA-3.0 CC0-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="qtermwidget video" + +DEPEND=" + app-text/hunspell:= + app-text/poppler:=[qt6] + >=dev-libs/quazip-1.3-r2:0=[qt6(+)] + dev-qt/qt5compat:6 + dev-qt/qtbase:6[concurrent,gui,network,widgets,xml] + dev-qt/qtdeclarative:6 + dev-qt/qtsvg:6 + dev-qt/qttools:6[widgets] + virtual/zlib:= + x11-libs/libX11 + qtermwidget? ( >=x11-libs/qtermwidget-2.0.0:= ) + video? ( dev-qt/qtmultimedia:6 ) +" +RDEPEND=" + ${DEPEND} + virtual/latex-base +" +BDEPEND=" + dev-qt/qttools:6[linguist] + virtual/pkgconfig +" + +src_prepare() { + local dir + for dir in src/quazip src/hunspell utilities/poppler-data; do + rm -r "${dir}" || die "Failed to delete ${dir}" + done + + # https://bugs.gentoo.org/940747 + sed -i 's/Qt5 //' CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DQT_VERSION_MAJOR=6 + # already exists in ::gentoo, useful only for win + -DTEXSTUDIO_BUILD_ADWAITA=NO + -DTEXSTUDIO_ENABLE_MEDIAPLAYER=$(usex video) + # it requires debug and make changes in the UI + # see #940928 + -DTEXSTUDIO_ENABLE_TESTS=NO + $(cmake_use_find_package qtermwidget QTermWidget) + ) + cmake_src_configure +} + +src_install() { + # manually set docdir to use a subdir for html + # and avoid the path /usr/share/doc/texstudio + local DOCS+=( utilities/{AUTHORS,COPYING,manual/source/CHANGELOG.md} ) + local HTML_DOCS+=( utilities/*.{html,css} utilities/manual/build/html/. ) + cmake_src_install + + # remove the wrong path + rm -r "${ED}"/usr/share/doc/texstudio || die + + local i + for i in 16x16 22x22 32x32 48x48 64x64 128x128; do + newicon -s ${i} utilities/${PN}${i}.png ${PN}.png + done +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "conversion tools" app-text/ghostscript-gpl + optfeature "PostScript tools" app-text/psutils + optfeature "graphic tools" media-libs/netpbm + optfeature "automation" dev-tex/latexmk + optfeature "XeLaTex engine" dev-texlive/texlive-xetex + optfeature "the vector graphics language (.asy)" media-gfx/asymptote +} diff --git a/profiles/arch/arm/package.use.mask b/profiles/arch/arm/package.use.mask index bfaef6165a4f..f2114c930bfc 100644 --- a/profiles/arch/arm/package.use.mask +++ b/profiles/arch/arm/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Nicolas PARLANT <[email protected]> (2026-02-23) +# x11-libs/qtermwidget is not keyworded here +app-office/texstudio qtermwidget + # Jaco Kroon <[email protected]> (2026-02-06) # Requires sys-auth/libyubikey net-dialup/freeradius yubikey diff --git a/profiles/arch/ppc/package.use.mask b/profiles/arch/ppc/package.use.mask index ab9490ebed00..77412e738a21 100644 --- a/profiles/arch/ppc/package.use.mask +++ b/profiles/arch/ppc/package.use.mask @@ -1,6 +1,10 @@ # Copyright 2023-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Nicolas PARLANT <[email protected]> (2026-02-23) +# x11-libs/qtermwidget is not keyworded here +app-office/texstudio qtermwidget + # Jaco Kroon <[email protected]> (2026-02-06) # Requires sys-auth/libyubikey net-dialup/freeradius yubikey
