diff options
author | Zamarin Arthur <arthurzam@gmail.com> | 2020-06-16 20:49:23 +0300 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-06-16 20:59:36 +0200 |
commit | ebd2cc940f853c1d6aa9e0b20ef8970b75e51253 (patch) | |
tree | c8928d03aabbaa430a31134b645457ff29bdc13c /app-text/sigil/sigil-1.2.1-r1.ebuild | |
parent | app-text/sigil: remove old versions (diff) | |
download | gentoo-ebd2cc940f853c1d6aa9e0b20ef8970b75e51253.tar.gz gentoo-ebd2cc940f853c1d6aa9e0b20ef8970b75e51253.tar.bz2 gentoo-ebd2cc940f853c1d6aa9e0b20ef8970b75e51253.zip |
app-text/sigil: fix compatibility with qtwebengine-5.15.0
use upstream patch which fixes compatibility problems with qtwebengine-5.15.0
Closes: https://bugs.gentoo.org/728240
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Zamarin Arthur <arthurzam@gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-text/sigil/sigil-1.2.1-r1.ebuild')
-rw-r--r-- | app-text/sigil/sigil-1.2.1-r1.ebuild | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/app-text/sigil/sigil-1.2.1-r1.ebuild b/app-text/sigil/sigil-1.2.1-r1.ebuild new file mode 100644 index 000000000000..e7b02c1eea76 --- /dev/null +++ b/app-text/sigil/sigil-1.2.1-r1.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE="tk" + +inherit cmake python-single-r1 xdg-utils + +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" + +LICENSE="GPL-3+ Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+plugins system-mathjax" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + app-text/hunspell:= + dev-libs/libpcre:3=[pcre16] + $(python_gen_cond_dep \ + 'dev-python/css-parser[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]') + >=dev-qt/qtconcurrent-5.12:5 + >=dev-qt/qtcore-5.12:5 + >=dev-qt/qtgui-5.12:5 + >=dev-qt/qtprintsupport-5.12:5 + >=dev-qt/qtwebengine-5.12:5[widgets] + >=dev-qt/qtwidgets-5.12:5 + sys-libs/zlib[minizip] + plugins? ( $(python_gen_cond_dep \ + 'dev-python/chardet[${PYTHON_USEDEP}] + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/cssutils[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}]') ) + system-mathjax? ( dev-libs/mathjax ) +" +DEPEND="${RDEPEND}" + +BDEPEND=" + dev-qt/linguist-tools:5 + virtual/pkgconfig +" + +S="${WORKDIR}/Sigil-${PV}" + +DOCS=( ChangeLog.txt README.md ) + +PATCHES=( "${FILESDIR}/${P}-qt5.15-fix.patch" ) + +src_configure() { + local mycmakeargs=( + -DINSTALL_BUNDLED_DICTS=0 + -DUSE_SYSTEM_LIBS=1 + -DSYSTEM_LIBS_REQUIRED=1 + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_LIBRARY="$(python_get_library_path)" + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" + ) + use system-mathjax && mycmakeargs+=( -DMATHJAX_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/ +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} |