diff options
Diffstat (limited to 'app-text/sigil')
-rw-r--r-- | app-text/sigil/Manifest | 2 | ||||
-rw-r--r-- | app-text/sigil/sigil-2.1.0-r1.ebuild | 104 |
2 files changed, 106 insertions, 0 deletions
diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest index 7ba8849d4103..0f69b0f7d7d5 100644 --- a/app-text/sigil/Manifest +++ b/app-text/sigil/Manifest @@ -1,4 +1,6 @@ DIST Sigil_User_Guide_2022.05.17.epub 8894634 BLAKE2B 8a7c5b5add54d87dfe791a0dbbc0c6cd37ae2eb2ff77f46ae36643785fb714d9fbc0fe470d024f7112be2933ca4fb57a4bfdfd340083be15fffca69296640ea9 SHA512 bac3f55d28d02f53c8fdac51333194e0f27c6669876360a6d0244b1e2683dae0e7046977fab6e75dba7170c8aca3a7539f3d6cddab3ddc3e45985930c455968a DIST sigil-2.0.2.tar.gz 26683849 BLAKE2B 4e72f63553569339710b7dd19992d9498c068235cf90189df2957ed8cec9963e5b53d2ba96313734e911d55e665ac95317b334274ed118874d8e499971f2e85a SHA512 b6fa7ff7e9fa568f93c61755f531e51cb26e149118da7873dafccacb1495346276389780435270237ed3d60e9c56fc153de9548859563039ea3070d347a1f6ca +DIST sigil-2.1.0.tar.gz 26918715 BLAKE2B d31aeea2ef0de2ecdedd50329bdf306e53aca0d4615cc97efa45013670b1f47af6a6152da4fdee20bf3a02c99f9b1337f07347170d50f28ddf48a52a089a5fc0 SHA512 542d6fc71b0353e3b5440d40e4c9f205c5205fb3e409935015b8f3689f8dcc74d8a96035963a740791f3a8acd63b2e0d81afe9be7716098e0727be6daf6c8ceb EBUILD sigil-2.0.2-r1.ebuild 2626 BLAKE2B 895ee5a216cf2880d18d8549c964ca1b0144a9fd60e3bfa3b506cd26bd679d34db9739d8d8e16070cbd714a3bed9584e3e4593f303564a8eb6c99c3bdd3f2dad SHA512 519599ab18c9da25a609ccc0f8e623dd678aa00d3f376057dd68a543cae104061e8f93651ee274c93edb5ead595a992212caaa72c6276da95aca1ceca94fdb42 +EBUILD sigil-2.1.0-r1.ebuild 2644 BLAKE2B ac85023d5c2de2d576339619a1076c36994ea359c2a311c99389285e8038ff10eb1e1ea5d0f658f9d1cf9a57a0822f1571ca3ff401fa6f84c73453b6247a592c SHA512 807ef86c6329687ff5fe3ba58fdcc1cfe9493028e139e7f68333e97d237f81c6e6ed297ecc8812554d947b5f7390724f6d4e370f5e7d9b91ed65e593cceac699 MISC metadata.xml 706 BLAKE2B 394811d292869d61297ed01ce36223cd0eb33b6ea21db9cfe6e87911d7f30801977f8b66663085a289bf9f6870fd64d72c1d706c7b9516d2e09585783772a4dc SHA512 a98d16ad1760d359f9ab915d472747fe3f1dc229f41b10980f1ccd3436091f8dec0ee800fed7e531413eb77826a7873ce3e2e3bf8c2d478b4d1ec1ccc16e5b68 diff --git a/app-text/sigil/sigil-2.1.0-r1.ebuild b/app-text/sigil/sigil-2.1.0-r1.ebuild new file mode 100644 index 000000000000..f170833fa9e5 --- /dev/null +++ b/app-text/sigil/sigil-2.1.0-r1.ebuild @@ -0,0 +1,104 @@ +# 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/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 +} |