summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-10-19 17:19:08 -0400
committerZac Medico <zmedico@gentoo.org>2023-11-08 08:26:37 -0800
commit80e58a44068d3c23c4918c550bf4bc68ad81742b (patch)
tree0a864af8d7213f5cd796fcbca5514340fc19d6da /app-text
parentapp-text/calibre: use "edo" for proper build logs (diff)
downloadgentoo-80e58a44068d3c23c4918c550bf4bc68ad81742b.tar.gz
gentoo-80e58a44068d3c23c4918c550bf4bc68ad81742b.tar.bz2
gentoo-80e58a44068d3c23c4918c550bf4bc68ad81742b.zip
app-text/calibre: add support for the system mathjax
This devendors a bundled copy of dev-libs/mathjax-3, creates symlinks to the system copy, and regenerates the deployed assets. Requires new package that has fewer keywords, so drop ours to match. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/calibre/calibre-6.29.0.ebuild10
-rw-r--r--app-text/calibre/metadata.xml1
2 files changed, 9 insertions, 2 deletions
diff --git a/app-text/calibre/calibre-6.29.0.ebuild b/app-text/calibre/calibre-6.29.0.ebuild
index 22431a8f977d..81452b86bbb4 100644
--- a/app-text/calibre/calibre-6.29.0.ebuild
+++ b/app-text/calibre/calibre-6.29.0.ebuild
@@ -35,9 +35,9 @@ LICENSE="
OFL-1.1
PSF-2
"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="~amd64"
SLOT="0"
-IUSE="+font-subsetting ios speech test +udisks"
+IUSE="+font-subsetting ios speech +system-mathjax test +udisks"
RESTRICT="!test? ( test )"
@@ -96,6 +96,7 @@ COMMON_DEPEND="${PYTHON_DEPS}
>=app-pda/libimobiledevice-1.2.0
)
speech? ( $(python_gen_cond_dep 'app-accessibility/speech-dispatcher[python,${PYTHON_USEDEP}]') )
+ system-mathjax? ( >=dev-libs/mathjax-3 )
udisks? ( virtual/libudev )"
RDEPEND="${COMMON_DEPEND}
udisks? ( sys-fs/udisks:2 )"
@@ -107,6 +108,7 @@ BDEPEND="$(python_gen_cond_dep '
>=dev-python/sip-5[${PYTHON_USEDEP}]
')
virtual/pkgconfig
+ system-mathjax? ( dev-lang/rapydscript-ng )
verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )
"
@@ -169,6 +171,10 @@ src_compile() {
edo ${EPYTHON} setup.py liberation_fonts \
--path-to-liberation_fonts "${EPREFIX}"/usr/share/fonts/liberation-fonts \
--system-liberation_fonts
+ if use system-mathjax; then
+ edo ${EPYTHON} setup.py mathjax --path-to-mathjax "${EPREFIX}"/usr/share/mathjax --system-mathjax
+ edo ${EPYTHON} setup.py rapydscript
+ fi
}
src_test() {
diff --git a/app-text/calibre/metadata.xml b/app-text/calibre/metadata.xml
index 1b2e2f427bd3..469a9e3455c2 100644
--- a/app-text/calibre/metadata.xml
+++ b/app-text/calibre/metadata.xml
@@ -15,5 +15,6 @@
<use>
<flag name="font-subsetting">Enable font subsetting support</flag>
<flag name="speech">Enable text-to-speech support</flag>
+ <flag name="system-mathjax">Use a system copy of mathjax</flag>
</use>
</pkgmetadata>