diff options
Diffstat (limited to 'app-text/sigil')
-rw-r--r-- | app-text/sigil/Manifest | 2 | ||||
-rw-r--r-- | app-text/sigil/metadata.xml | 1 | ||||
-rw-r--r-- | app-text/sigil/sigil-2.3.0.ebuild | 86 |
3 files changed, 89 insertions, 0 deletions
diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest index b71d23776478..05b7e414b68f 100644 --- a/app-text/sigil/Manifest +++ b/app-text/sigil/Manifest @@ -1,2 +1,4 @@ DIST Sigil_User_Guide_2022.05.17.epub 8894634 BLAKE2B 8a7c5b5add54d87dfe791a0dbbc0c6cd37ae2eb2ff77f46ae36643785fb714d9fbc0fe470d024f7112be2933ca4fb57a4bfdfd340083be15fffca69296640ea9 SHA512 bac3f55d28d02f53c8fdac51333194e0f27c6669876360a6d0244b1e2683dae0e7046977fab6e75dba7170c8aca3a7539f3d6cddab3ddc3e45985930c455968a +DIST Sigil_User_Guide_2024.08.15.epub 12641984 BLAKE2B feaa8a4f6b64786d5cbf494a61c8726a5dd3e169ca8902348e2fee9f890ab7496b5ad018d49d6cecd65cb3d3d4a9b4a6bda019ac52c324fa92fad3e7b5dbc680 SHA512 10199c037a57f4b9ed913a8c726a58e376dcd34300a98cdd4cf934fd3a2f9a26d2f92bd85131af7ee1084824d7b082f7becdec9b0731a62f9cde712bfada5a09 DIST sigil-2.2.1.tar.gz 26131954 BLAKE2B b467d33a1e98733d7bf051cc152a5e8980af83c0992c4ca755d5dd666d5ea753b51d2642b6027a8c52e86077f3a92e999867cb774f619f729df3c51424fa3795 SHA512 a0f7e0529286e9d5020a97c6179791a1312df93cbbca4f5966dea40517eb9ab8979dd7048fe54f3cc821ef165ddf8a5bcb2ca6ffdde1b51196f6d2a7376162f0 +DIST sigil-2.3.0.tar.gz 17480782 BLAKE2B abcb5eac75ec56e9bc83a50175e6e9dc8a494aec0a8aca1585503a5a5727557bef9039d1b457f8e03ef00a8baf1bcb9fae29a6f720483ee30fa3bace777e7066 SHA512 1a12022f7af26e4713083c0c84b07c4ebe2825667391f8d47cd5984e69547daad58fe3bdf7a40c3b4f1aa4c4037a548c011833a9dd8754c1c914555548a0ca8f diff --git a/app-text/sigil/metadata.xml b/app-text/sigil/metadata.xml index 4daa9a331609..16a802d7daa4 100644 --- a/app-text/sigil/metadata.xml +++ b/app-text/sigil/metadata.xml @@ -7,6 +7,7 @@ </maintainer> <use> <flag name="plugins">Installed needed Python packages for using Sigil plugins</flag> + <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> diff --git a/app-text/sigil/sigil-2.3.0.ebuild b/app-text/sigil/sigil-2.3.0.ebuild new file mode 100644 index 000000000000..cb9aa8b5f970 --- /dev/null +++ b/app-text/sigil/sigil-2.3.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit xdg cmake python-single-r1 + +DOC_VERSION="2024.08.15" +DOC_FILE="Sigil_User_Guide_${DOC_VERSION}.epub" + +DESCRIPTION="Multi-platform WYSIWYG ebook editor for ePub format" +HOMEPAGE="https://sigil-ebook.com/ https://github.com/Sigil-Ebook/Sigil" +SRC_URI="https://github.com/Sigil-Ebook/Sigil/archive/${PV}.tar.gz -> ${P}.tar.gz + doc? ( https://github.com/Sigil-Ebook/sigil-user-guide/releases/download/${DOC_VERSION}/${DOC_FILE} )" +S=${WORKDIR}/${P^} + +LICENSE="GPL-3+ Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc +plugins +system-mathjax" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + app-text/hunspell:= + dev-libs/libpcre2:=[pcre16] + dev-qt/qtbase:6[concurrent,cups,network,widgets,xml] + dev-qt/qtwebengine:6[widgets] + dev-qt/qtsvg:6 + sys-libs/zlib[minizip] + $(python_gen_cond_dep ' + dev-python/css-parser[${PYTHON_USEDEP}] + dev-python/dulwich[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + ') + plugins? ( + $(python_gen_cond_dep ' + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + dev-python/PyQt6[${PYTHON_USEDEP}] + dev-python/PyQt6-WebEngine[${PYTHON_USEDEP}] + ') + $(python_gen_impl_dep 'tk') + ) + system-mathjax? ( >=dev-libs/mathjax-3 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig + dev-qt/qttools:6[linguist] +" + +DOCS=( ChangeLog.txt README.md ) + +src_configure() { + local mycmakeargs=( + -DTRY_NEWER_FINDPYTHON3=1 + -DPython3_INCLUDE_DIR="$(python_get_includedir)" + -DPython3_LIBRARY="$(python_get_library_path)" + -DPython3_EXECUTABLE="${PYTHON}" + + -DINSTALL_BUNDLED_DICTS=0 + -DSYSTEM_LIBS_REQUIRED=1 + -DUSE_SYSTEM_LIBS=1 + ) + use system-mathjax && mycmakeargs+=( -DMATHJAX3_DIR="${EPREFIX}"/usr/share/mathjax ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + python_fix_shebang "${ED}"/usr/share/sigil/ + python_optimize "${ED}"/usr/share/sigil/ + + if use doc; then + dodoc "${DISTDIR}/${DOC_FILE}" + docompress -x /usr/share/doc/${PF}/${DOC_FILE} + fi +} |