commit: 124815db4671c2e3534c6e32d8343945cd438f0f
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 7 07:23:26 2026 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Feb 7 07:23:59 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=124815db
app-office/lyx: add 2.5.0_rc2
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
app-office/lyx/Manifest | 2 +
app-office/lyx/lyx-2.5.0_rc2.ebuild | 186 ++++++++++++++++++++++++++++++++++++
2 files changed, 188 insertions(+)
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest
index 872d4a23b027..09c688a3a956 100644
--- a/app-office/lyx/Manifest
+++ b/app-office/lyx/Manifest
@@ -1,2 +1,4 @@
DIST lyx-2.4.4.tar.xz 18360996 BLAKE2B
fb7bd1188061b1910eba00a2869321a7175ba8955e6c7dcdf5e5f00519fa594231aff49d8cfc5c800431bdbb312b6d0555ea5759ea4f80612393d2d45167a55d
SHA512
93c674aa71f017b62a5352468362fb0d48da0264a5308bb0228c4f8bf07a443004379a08ffe9fa1cc0393accc8fb9f95ae7a2b314c9c5b7b6023dba711688216
DIST lyx-2.4.4.tar.xz.sig 310 BLAKE2B
e06143dad791bf8b2bee7b10e11e2ef08634bc06efd23891e779d7e1129c07334171836ce42b9fddba23a658d31f81fd8edab3b93e2c08391a35bf28d4680b5f
SHA512
1e81a83e2c5f1c3a446fef3afeaf6c169b50f0c747926b8d02cff1fcf25e5ae88a0494f9be399e389eebea51f5a09e2658cb31d5085d8e01358bfeda6a3bfb36
+DIST lyx-2.5.0~RC2.tar.xz 18632288 BLAKE2B
befe1688d4c98b8a46489922a64b788d55f409635cb65970770d1c2c2bd06b35ad2ba02f04bd9c6b64ceda3e2e19d6b6708a5cbf6ae9f054e4b9e2593d550461
SHA512
9c550266c8f7329be90562ae58fab0eb1faa7ace8d0b23cac826463850a730205f4427dec232d69463dd99554d02a64c7f9dd1ebd436bbc598ae0564fcdf5065
+DIST lyx-2.5.0~RC2.tar.xz.sig 310 BLAKE2B
9bfd186bab7462c21ae8295105b0587a93b3441a590fd5d072bf764e7de5b749c9c7bbc4fb268713044e69cc6cf934a9d6ed85706f4c7a1ef554a66625948da5
SHA512
c0f3e3dd8ee69c72532f5f030a730df28760127e018fc99bfd0a75b659367e9ab46bf3cc72290595a455fe73d88db295d95cc2547eed8fbba3cbbacc4f172391
diff --git a/app-office/lyx/lyx-2.5.0_rc2.ebuild
b/app-office/lyx/lyx-2.5.0_rc2.ebuild
new file mode 100644
index 000000000000..d11e7acbe41f
--- /dev/null
+++ b/app-office/lyx/lyx-2.5.0_rc2.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit desktop font optfeature python-single-r1 cmake verify-sig xdg
+
+DESCRIPTION="WYSIWYM (What You See Is What You Mean) document processor based
on LaTeX"
+HOMEPAGE="https://www.lyx.org/"
+SRC_URI="
+ http://ftp.lyx.org/pub/lyx/stable/$(ver_cut 1-2).x/${P/_rc/~RC}.tar.xz
+ http://ftp.lyx.org/pub/lyx/devel/lyx-$(ver_cut 1-2)/${P/_rc/~RC}.tar.xz
+ http://ftp.lyx.org/pub/lyx/stable/$(ver_cut
1-2).x/${P/_rc/~RC}.tar.xz.sig
+ http://ftp.lyx.org/pub/lyx/devel/lyx-$(ver_cut
1-2)/${P/_rc/~RC}.tar.xz.sig
+"
+S=${WORKDIR}/${P/_rc/~RC}
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="aspell cups dia dot enchant gnumeric html +hunspell +latex
monolithic-build nls rcs rtf svg l10n_he"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="test"
+
+RDEPEND="${PYTHON_DEPS}
+ app-text/mythes
+ dev-qt/qt5compat:6
+ dev-qt/qtbase:6[concurrent,dbus,gui,widgets]
+ dev-qt/qtsvg:6
+ sys-apps/file
+ virtual/zlib:=
+ virtual/imagemagick-tools[png,svg?]
+ x11-libs/libxcb
+ x11-misc/xdg-utils
+ aspell? ( app-text/aspell )
+ cups? ( net-print/cups )
+ dia? ( app-office/dia )
+ dot? ( media-gfx/graphviz )
+ enchant? ( app-text/enchant:2 )
+ gnumeric? ( app-office/gnumeric )
+ html? ( dev-tex/html2latex )
+ hunspell? ( app-text/hunspell:= )
+ l10n_he? (
+ dev-tex/culmus-latex
+ dev-texlive/texlive-langarabic
+ )
+ latex? (
+ app-text/dvipng
+ app-text/ghostscript-gpl
+ app-text/ps2eps
+ app-text/texlive
+ dev-texlive/texlive-fontsrecommended
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-mathscience
+ dev-texlive/texlive-pictures
+ dev-texlive/texlive-plaingeneric
+ || (
+ dev-tex/latex2html
+ dev-tex/hevea
+ dev-tex/tex4ht[java]
+ dev-tex/tth
+ )
+ )
+ rcs? ( dev-vcs/rcs )
+ rtf? (
+ app-text/unrtf
+ dev-tex/html2latex
+ dev-tex/latex2rtf
+ )
+ svg? ( || (
+ gnome-base/librsvg
+ media-gfx/inkscape
+ ) )
+"
+DEPEND="${RDEPEND}"
+# bc needed http://comments.gmane.org/gmane.editors.lyx.devel/137498 and bug
#787839
+BDEPEND="
+ app-alternatives/bc
+ virtual/pkgconfig
+ dev-qt/qttools:6[linguist]
+ nls? ( sys-devel/gettext )
+ verify-sig? ( sec-keys/openpgp-keys-lyx )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/lyx.asc"
+
+DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
+
+FONT_S="${S}/lib/fonts"
+FONT_SUFFIX="ttf"
+
+PATCHES=(
+ "${FILESDIR}"/lyx-2.4.0-fix-hunspell.patch
+ # Try first with xdg-open before hardcoded commands
+ # Patch from Debian using a similar approach to Fedora
+ "${FILESDIR}"/lyx-2.4.4-prefer-xdg-open.patch
+)
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ font_pkg_setup
+}
+
+src_prepare() {
+ sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ #bug 221921
+ export VARTEXFONTS="${T}"/fonts
+
+ local mycmakeargs=(
+ -DLYX_INSTALL=ON
+ -DLYX_USE_QT=QT6
+ -DLYX_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DLYX_CXX_FLAGS_EXTRA="${CXXFLAGS}"
+
+ -DLYX_NLS=$(usex nls)
+ -DLYX_ASPELL=$(usex aspell)
+ -DLYX_ENCHANT=$(usex enchant)
+ -DLYX_HUNSPELL=$(usex hunspell)
+
+ # external dependencies
+ -DLYX_EXTERNAL_Z=ON
+ -DLYX_EXTERNAL_ICONV=ON
+ -DLYX_EXTERNAL_HUNSPELL=ON
+ -DLYX_EXTERNAL_MYTHES=ON
+ -DLYX_PROGRAM_SUFFIX=OFF
+
+ # debug control
+ -DLYX_NO_OPTIMIZE=OFF
+ -DLYX_RELEASE=ON
+ -DLYX_DEBUG=OFF
+ -DLYX_DEBUG_GLIBC=OFF
+ -DLYX_STDLIB_DEBUG=OFF
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ newicon -s 32 "development/Win32/packaging/icons/lyx_32x32.png"
${PN}.png
+ doicon -s 48 "lib/images/lyx.png"
+ doicon -s scalable "lib/images/lyx.svg"
+
+ # fix for bug 91108
+ if use latex; then
+ dosym -r /usr/share/lyx/tex /usr/share/texmf-site/tex/latex/lyx
+ fi
+
+ # fonts needed for proper math display, see also bug #15629
+ font_src_install
+
+ python_fix_shebang "${ED}"/usr/share/${PN}
+
+ if use hunspell; then
+ dosym ../myspell /usr/share/lyx/dicts
+ dosym ../myspell /usr/share/lyx/thes
+ fi
+}
+
+pkg_postinst() {
+ font_pkg_postinst
+ xdg_pkg_postinst
+
+ # fix for bug 91108
+ if use latex ; then
+ texhash || die
+ fi
+
+ optfeature "handling more fonts" dev-texlive/texlive-fontsextra
+}
+
+pkg_postrm() {
+ font_pkg_postrm
+ xdg_pkg_postrm
+
+ if use latex ; then
+ texhash || die
+ fi
+}