summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZamarin Arthur <arthurzam@gmail.com>2019-07-21 08:45:16 +0300
committerAndreas Sturmlechner <asturm@gentoo.org>2019-07-21 13:58:35 +0200
commite7caf18c467b7bda486f6f0d7b4eecfd20b6f232 (patch)
treeaf1ff8129a2ded2592d282cf8b7d474b0dc06025 /app-text/sigil
parentapp-text/sigil: bump v0.9.16 (diff)
downloadgentoo-e7caf18c467b7bda486f6f0d7b4eecfd20b6f232.tar.gz
gentoo-e7caf18c467b7bda486f6f0d7b4eecfd20b6f232.tar.bz2
gentoo-e7caf18c467b7bda486f6f0d7b4eecfd20b6f232.zip
app-text/sigil: add system-mathjax USE flag
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Zamarin Arthur <arthurzam@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-text/sigil')
-rw-r--r--app-text/sigil/metadata.xml3
-rw-r--r--app-text/sigil/sigil-0.9.16.ebuild6
2 files changed, 7 insertions, 2 deletions
diff --git a/app-text/sigil/metadata.xml b/app-text/sigil/metadata.xml
index d0bbc366660a..745afeddf711 100644
--- a/app-text/sigil/metadata.xml
+++ b/app-text/sigil/metadata.xml
@@ -11,6 +11,9 @@
</maintainer>
<longdescription lang="en">Sigil is a multi-platform WYSIWYG ebook editor.
It is designed to edit books in ePub format.</longdescription>
+ <use>
+ <flag name="system-mathjax">Use the system-wide <pkg>dev-libs/mathjax</pkg> instead of bundled</flag>
+ </use>
<upstream>
<remote-id type="github">Sigil-Ebook/Sigil</remote-id>
<maintainer status="active">
diff --git a/app-text/sigil/sigil-0.9.16.ebuild b/app-text/sigil/sigil-0.9.16.ebuild
index 7f5b6030154f..1ee490a23ec7 100644
--- a/app-text/sigil/sigil-0.9.16.ebuild
+++ b/app-text/sigil/sigil-0.9.16.ebuild
@@ -15,6 +15,7 @@ SRC_URI="https://github.com/Sigil-Ebook/Sigil/archive/${PV}.tar.gz -> ${P}.tar.g
LICENSE="GPL-3+ Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+IUSE="system-mathjax"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
@@ -22,7 +23,6 @@ RDEPEND="
app-text/hunspell:=
dev-libs/boost:=[threads]
dev-libs/libpcre:3=[pcre16]
- dev-libs/mathjax
dev-libs/xerces-c[icu]
dev-python/chardet[${PYTHON_USEDEP}]
dev-python/cssselect[${PYTHON_USEDEP}]
@@ -40,6 +40,7 @@ RDEPEND="
>=dev-qt/qtwidgets-5.12:5
>=dev-qt/qtxmlpatterns-5.12:5
sys-libs/zlib[minizip]
+ system-mathjax? ( dev-libs/mathjax )
"
DEPEND="${RDEPEND}"
@@ -69,13 +70,14 @@ src_configure() {
python_export PYTHON_LIBPATH PYTHON_INCLUDEDIR
local mycmakeargs=(
-DINSTALL_BUNDLED_DICTS=0
- -DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax
-DUSE_SYSTEM_LIBS=1
-DSYSTEM_LIBS_REQUIRED=1
-DPYTHON_EXECUTABLE="${PYTHON}"
-DPYTHON_LIBRARY="${PYTHON_LIBPATH}"
-DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDEDIR}"
)
+ use system-mathjax && mycmakeargs+=( -DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax )
+
cmake-utils_src_configure
}