commit: 74b04013f0a69a9d1350f491cd817237a2bfff89 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Tue Sep 23 02:09:49 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Sep 23 13:37:59 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74b04013
app-office/texstudio: Bump to 4.8.9 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43906 Signed-off-by: Sam James <sam <AT> gentoo.org> app-office/texstudio/Manifest | 1 + app-office/texstudio/texstudio-4.8.9.ebuild | 90 +++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/app-office/texstudio/Manifest b/app-office/texstudio/Manifest index c8c660186f2c..831bf620363f 100644 --- a/app-office/texstudio/Manifest +++ b/app-office/texstudio/Manifest @@ -1,3 +1,4 @@ DIST texstudio-4.8.4.tar.gz 114147594 BLAKE2B 0f553bea66ef0709434ee8b3afc20db6b8ddce45f1f4a923768215d880b4428acefa54942aa99b36b2f03674de2935d8434a8689e1062e52b05e477de4b56416 SHA512 c42d475f1807feaaf86b0245d8a71ccc28172c5867224383bdc3b4e4c719577c7fbc9b2f3ddac90ad957a9bacd36ecc79accea5d0453552d3856b66129091538 DIST texstudio-4.8.7.tar.gz 114210486 BLAKE2B 6a66efada3056e3c731cd0461c9b44ec73f41e61580ad2267757f90ad974ab33499b34ca89c59ff5698a641a72ae4d4fc797b27711d17b161c239481185d493b SHA512 bdfc59b3c08d6ff15eb00184455f4b5e2cfb353e2624c28363f525d2d31ebf7c741aa0a9ae3236a07cb910bc93db2460c3191e6c6e66b4e6da24e40396151e23 DIST texstudio-4.8.8.tar.gz 114265005 BLAKE2B 207c32c43170f7f1456e1292a78215fe131b0cf79ed185f7ef9e49b6e7f0fda59c8d059abcaa9153ef18803192e039c6adbaa28448567cff799037e62861915f SHA512 a255b1ca12e1eae3912944db21b5d6d0d7b06f9f4b6a1a051ffa858f2cc50d1880f804d94dde4eac1e874e2e5d112d53a68473ee1a5b513e60ff8743a89e65d7 +DIST texstudio-4.8.9.tar.gz 115097229 BLAKE2B 3aadc08b827279fbfad67f4e4e2cdc7e1492747e6b4f1667cf566695fda60870e44b5f3c342aaafbab0311278bd95c080cc1392e0bb6c05e3475ee132efc8f28 SHA512 b552e36bf489ac974311e06173f2779cb640d16b88f923d73ff910cc7533b7c4c3374fd7a37e56cc03de3bf8a035e71708f11e14584c880c128505169fca51f7 diff --git a/app-office/texstudio/texstudio-4.8.9.ebuild b/app-office/texstudio/texstudio-4.8.9.ebuild new file mode 100644 index 000000000000..6be1792336ac --- /dev/null +++ b/app-office/texstudio/texstudio-4.8.9.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2025 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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" + +IUSE="video" + +DEPEND=" + app-text/hunspell:= + app-text/poppler:=[qt6] + dev-libs/quazip: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] + sys-libs/zlib + x11-libs/libX11 + 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_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 +}
