From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8DF4B1580E0 for ; Mon, 02 Jun 2025 21:37:15 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 72A113430FD for ; Mon, 02 Jun 2025 21:37:15 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5DF5811047D; Mon, 02 Jun 2025 21:37:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 5343F11047D for ; Mon, 02 Jun 2025 21:37:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0D5B8343082 for ; Mon, 02 Jun 2025 21:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A335127C2 for ; Mon, 02 Jun 2025 21:37:06 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1748900019.368a3cb1f40262e365b00a6af005af2189e526a4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/texstudio/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-office/texstudio/Manifest app-office/texstudio/texstudio-4.8.7.ebuild X-VCS-Directories: app-office/texstudio/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 368a3cb1f40262e365b00a6af005af2189e526a4 X-VCS-Branch: master Date: Mon, 02 Jun 2025 21:37:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 82bcb24e-d4fc-4978-93fa-2379a99baf32 X-Archives-Hash: 64326d7ed807ea39c6839e29bf18db35 commit: 368a3cb1f40262e365b00a6af005af2189e526a4 Author: Nicolas PARLANT parhuet fr> AuthorDate: Mon Jun 2 20:30:57 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jun 2 21:33:39 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=368a3cb1 app-office/texstudio: add 4.8.7 deps : dev-libs/quazip, remove old min_version and default value for qt6 add optfeature : app-text/ghostscript-gpl (move from rdep) app-text/psutils (move from rdep) media-libs/netpbm (move from rdep) dev-tex/latexmk dev-texlive/texlive-xetex media-gfx/asymptote disable internal-adwaita-qt because it's already in tree explicitly disable tests with comments/bug use DOCS and HTML_DOCS instead of wrong paths from CMakeLists.txt Closes: https://bugs.gentoo.org/951109 Signed-off-by: Nicolas PARLANT parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/42410 Closes: https://github.com/gentoo/gentoo/pull/42410 Signed-off-by: Sam James gentoo.org> app-office/texstudio/Manifest | 1 + app-office/texstudio/texstudio-4.8.7.ebuild | 90 +++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/app-office/texstudio/Manifest b/app-office/texstudio/Manifest index 76bf6a8a4e3c..f739cef1739e 100644 --- a/app-office/texstudio/Manifest +++ b/app-office/texstudio/Manifest @@ -1 +1,2 @@ DIST texstudio-4.8.4.tar.gz 114147594 BLAKE2B 0f553bea66ef0709434ee8b3afc20db6b8ddce45f1f4a923768215d880b4428acefa54942aa99b36b2f03674de2935d8434a8689e1062e52b05e477de4b56416 SHA512 c42d475f1807feaaf86b0245d8a71ccc28172c5867224383bdc3b4e4c719577c7fbc9b2f3ddac90ad957a9bacd36ecc79accea5d0453552d3856b66129091538 +DIST texstudio-4.8.7.tar.gz 114210486 BLAKE2B 6a66efada3056e3c731cd0461c9b44ec73f41e61580ad2267757f90ad974ab33499b34ca89c59ff5698a641a72ae4d4fc797b27711d17b161c239481185d493b SHA512 bdfc59b3c08d6ff15eb00184455f4b5e2cfb353e2624c28363f525d2d31ebf7c741aa0a9ae3236a07cb910bc93db2460c3191e6c6e66b4e6da24e40396151e23 diff --git a/app-office/texstudio/texstudio-4.8.7.ebuild b/app-office/texstudio/texstudio-4.8.7.ebuild new file mode 100644 index 000000000000..6be1792336ac --- /dev/null +++ b/app-office/texstudio/texstudio-4.8.7.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 +}