summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-06-23 20:48:02 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-23 20:48:02 +0300
commit601ae2fafedc3e1c21c79fddabfe5c7023bbe4c6 (patch)
tree61dc45521326fa27c13df7ad2032b115dd3efab4 /app-text
parentdev-tex/biber: Stabilize 2.19 sparc, #934277 (diff)
downloadgentoo-601ae2fafedc3e1c21c79fddabfe5c7023bbe4c6.tar.gz
gentoo-601ae2fafedc3e1c21c79fddabfe5c7023bbe4c6.tar.bz2
gentoo-601ae2fafedc3e1c21c79fddabfe5c7023bbe4c6.zip
app-text/sigil: add 2.2.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/sigil/Manifest1
-rw-r--r--app-text/sigil/sigil-2.2.1.ebuild105
2 files changed, 106 insertions, 0 deletions
diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest
index 914e16869564..65b9100b9d9b 100644
--- a/app-text/sigil/Manifest
+++ b/app-text/sigil/Manifest
@@ -1,3 +1,4 @@
DIST Sigil_User_Guide_2022.05.17.epub 8894634 BLAKE2B 8a7c5b5add54d87dfe791a0dbbc0c6cd37ae2eb2ff77f46ae36643785fb714d9fbc0fe470d024f7112be2933ca4fb57a4bfdfd340083be15fffca69296640ea9 SHA512 bac3f55d28d02f53c8fdac51333194e0f27c6669876360a6d0244b1e2683dae0e7046977fab6e75dba7170c8aca3a7539f3d6cddab3ddc3e45985930c455968a
DIST sigil-2.1.0.tar.gz 26918715 BLAKE2B d31aeea2ef0de2ecdedd50329bdf306e53aca0d4615cc97efa45013670b1f47af6a6152da4fdee20bf3a02c99f9b1337f07347170d50f28ddf48a52a089a5fc0 SHA512 542d6fc71b0353e3b5440d40e4c9f205c5205fb3e409935015b8f3689f8dcc74d8a96035963a740791f3a8acd63b2e0d81afe9be7716098e0727be6daf6c8ceb
DIST sigil-2.2.0.tar.gz 26136319 BLAKE2B 520966e5bbb73c2d9ef89f5ac37cc09214b2850eec9864a6f0980b335d9cea5479c4299e27384c14f2890c1415c9ffa7e23228081c7cec318972a268cba6d431 SHA512 89de48eaffe9e5692c4714dec8b895d455a85188732002ae00e82d23392ca258790b1f725c8625be7362ab1160d734897c5ec79e936ffea887999e23fbe9df18
+DIST sigil-2.2.1.tar.gz 26131954 BLAKE2B b467d33a1e98733d7bf051cc152a5e8980af83c0992c4ca755d5dd666d5ea753b51d2642b6027a8c52e86077f3a92e999867cb774f619f729df3c51424fa3795 SHA512 a0f7e0529286e9d5020a97c6179791a1312df93cbbca4f5966dea40517eb9ab8979dd7048fe54f3cc821ef165ddf8a5bcb2ca6ffdde1b51196f6d2a7376162f0
diff --git a/app-text/sigil/sigil-2.2.1.ebuild b/app-text/sigil/sigil-2.2.1.ebuild
new file mode 100644
index 000000000000..6750cc59feb4
--- /dev/null
+++ b/app-text/sigil/sigil-2.2.1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit xdg cmake python-single-r1
+
+DOC_VERSION="2022.05.17"
+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 qt6"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+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/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}]
+ ')
+ $(python_gen_impl_dep 'tk') )
+ !qt6? (
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwebengine:5[widgets]
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ plugins? ( $(python_gen_cond_dep '
+ dev-python/PyQt5[${PYTHON_USEDEP}]
+ dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
+ ') )
+ )
+ qt6? (
+ dev-qt/qtbase:6[concurrent,cups,network,widgets,xml]
+ dev-qt/qt5compat:6
+ dev-qt/qtwebengine:6[widgets]
+ dev-qt/qtsvg:6
+ plugins? ( $(python_gen_cond_dep '
+ dev-python/PyQt6[${PYTHON_USEDEP}]
+ dev-python/PyQt6-WebEngine[${PYTHON_USEDEP}]
+ ') )
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+ !qt6? ( dev-qt/linguist-tools:5 )
+ qt6? ( 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}"
+
+ -DUSE_QT5=$(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/
+
+ if use doc; then
+ dodoc "${DISTDIR}/${DOC_FILE}"
+ docompress -x /usr/share/doc/${PF}/${DOC_FILE}
+ fi
+}