diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-08-24 19:49:37 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-08-24 19:50:46 +0300 |
commit | ff7dba2b0fb4424960bac742b925e1e0284abaae (patch) | |
tree | dadbe8d0be6b5cb71358fc8bb886c7fb323974a9 /app-text/sigil | |
parent | app-admin/spectre-meltdown-checker: Stabilize 0.46 arm, #912892 (diff) | |
download | gentoo-ff7dba2b0fb4424960bac742b925e1e0284abaae.tar.gz gentoo-ff7dba2b0fb4424960bac742b925e1e0284abaae.tar.bz2 gentoo-ff7dba2b0fb4424960bac742b925e1e0284abaae.zip |
app-text/sigil: add 2.0.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-text/sigil')
-rw-r--r-- | app-text/sigil/Manifest | 1 | ||||
-rw-r--r-- | app-text/sigil/sigil-2.0.1.ebuild | 86 |
2 files changed, 87 insertions, 0 deletions
diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest index 36cafa83b8c4..f18571ca1e4d 100644 --- a/app-text/sigil/Manifest +++ b/app-text/sigil/Manifest @@ -1 +1,2 @@ DIST sigil-1.9.30.tar.gz 26602897 BLAKE2B 554af2aa4c26994c065023839ea29b190eea501cac1183d58dcf2439ebca89e0a56848aaec1d668cfb84555c6830eaf6d32efdc82b08e0c94d7b6ba95dd7ff8b SHA512 80dcaa9dcee51c36a42bcd57fc87acda94002af74602d934c7e9bfd275339d9ac200cd1f141fb9e2709ac054569bc22f1869623498ce16c636a3fab8dae4e70f +DIST sigil-2.0.1.tar.gz 26778961 BLAKE2B d2bdd3c24410285eea3e3655638f2aa2ec8b84b60b8dadda9ad2e40a404e61eebf93ecc188b0aa08967aef42e34c83c884853cdd782a7bc8c5a0d6d235058cfe SHA512 9ba8fd2e844288eae01be9e65e3fc210eeeb096e54c83ebcea5c95be9c1ce44054f19589c294e812f8bc6bb489aebdf237670121b254e9b1c55cc10622f03f81 diff --git a/app-text/sigil/sigil-2.0.1.ebuild b/app-text/sigil/sigil-2.0.1.ebuild new file mode 100644 index 000000000000..0f6e2298657c --- /dev/null +++ b/app-text/sigil/sigil-2.0.1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +PYTHON_REQ_USE="tk" + +inherit xdg cmake python-single-r1 + +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" +S="${WORKDIR}/${P^}" + +LICENSE="GPL-3+ Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+plugins +qt5 qt6" +REQUIRED_USE="${PYTHON_REQUIRED_USE} ^^ ( qt5 qt6 )" + +RDEPEND=" + ${PYTHON_DEPS} + app-text/hunspell:= + dev-libs/libpcre2:=[pcre16] + sys-libs/zlib[minizip] + $(python_gen_cond_dep ' + dev-python/css-parser[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]') + plugins? ( $(python_gen_cond_dep ' + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/dulwich[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}]' + ) ) + qt5? ( + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwebengine:5[widgets] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + ) + qt6? ( + dev-qt/qtbase:6[concurrent,cups,network,widgets,xml] + dev-qt/qt5compat:6 + dev-qt/qtwebengine:6[widgets] + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + qt5? ( dev-qt/linguist-tools:5 ) + qt6? ( dev-qt/qttools:6[linguist] ) + virtual/pkgconfig +" + +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}" + + -DUSE_QT6=$(usex qt6) + -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/ +} |