1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
5 |
5 |
|
6 |
6 |
PYTHON_COMPAT=( python3_{9..11} )
|
7 |
7 |
|
8 |
8 |
MY_P="${P/_}"
|
9 |
|
inherit desktop font python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
|
9 |
inherit desktop font optfeature python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
10 |
10 |
|
11 |
|
DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc"
|
|
11 |
DESCRIPTION="WYSIWYM (What You See Is What You Mean) document processor based on LaTeX"
|
12 |
12 |
HOMEPAGE="https://www.lyx.org/"
|
13 |
|
SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/${MY_P}.tar.xz
|
14 |
|
ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.3/${MY_P}/${MY_P}.tar.xz"
|
|
13 |
SRC_URI="http://ftp.lyx.org/pub/lyx/stable/$(ver_cut 1-2).x/${MY_P}-1.tar.xz"
|
15 |
14 |
|
16 |
|
LICENSE="GPL-2"
|
|
15 |
LICENSE="GPL-2+"
|
17 |
16 |
SLOT="0"
|
18 |
17 |
KEYWORDS="amd64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
|
19 |
18 |
IUSE="aspell cups debug dia dot enchant gnumeric html +hunspell +latex monolithic-build nls rcs rtf svg l10n_he"
|
... | ... | |
33 |
32 |
dev-qt/qtsvg:5
|
34 |
33 |
dev-qt/qtwidgets:5
|
35 |
34 |
dev-qt/qtx11extras:5
|
36 |
|
dev-texlive/texlive-fontsextra
|
37 |
35 |
sys-apps/file
|
38 |
36 |
sys-libs/zlib
|
39 |
37 |
virtual/imagemagick-tools[png,svg?]
|
... | ... | |
90 |
88 |
# Patch from Debian using a similar approach to Fedora
|
91 |
89 |
"${FILESDIR}"/${PN}-prefer-xdg-open.patch
|
92 |
90 |
|
93 |
|
"${FILESDIR}"/${P}-python.patch
|
94 |
|
"${FILESDIR}"/${P}-gcc12.patch
|
|
91 |
# Already part of 2.4.x (from Fedora)
|
|
92 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1965118
|
|
93 |
"${FILESDIR}"/${PN}-2.3.6.1-python.patch
|
95 |
94 |
)
|
96 |
95 |
|
97 |
96 |
pkg_setup() {
|
... | ... | |
155 |
154 |
fi
|
156 |
155 |
}
|
157 |
156 |
|
|
157 |
pkg_preinst() {
|
|
158 |
# Workaround https://bugs.gentoo.org/907288
|
|
159 |
if has_version "<${CATEGORY}/${PN}-2.3.7"; then
|
|
160 |
ewarn "dev-texlive/texlive-fontsextra is now an optional dependency"
|
|
161 |
ewarn "If you need these fonts, you will need to manually install"
|
|
162 |
ewarn "them."
|
|
163 |
fi
|
|
164 |
}
|
|
165 |
|
158 |
166 |
pkg_postinst() {
|
159 |
167 |
font_pkg_postinst
|
160 |
168 |
xdg_icon_cache_update
|
... | ... | |
175 |
183 |
elog "and make sure the \"Right-to-left language support\" is checked"
|
176 |
184 |
elog
|
177 |
185 |
fi
|
|
186 |
|
|
187 |
optfeature "handling more fonts" dev-texlive/texlive-fontsextra
|
178 |
188 |
}
|
179 |
189 |
|
180 |
190 |
pkg_postrm() {
|