Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/sigil/
Date: Sat, 02 Apr 2022 06:12:17
Message-Id: 1648879905.e4dbd4ce4a0ce71e6a93554b49f65d2a8dbaa92a.arthurzam@gentoo
1 commit: e4dbd4ce4a0ce71e6a93554b49f65d2a8dbaa92a
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 06:11:45 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 06:11:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4dbd4ce
7
8 app-text/sigil: add 1.9.2
9
10 Closes: https://bugs.gentoo.org/834289
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 app-text/sigil/Manifest | 1 +
14 app-text/sigil/sigil-1.9.2.ebuild | 75 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 76 insertions(+)
16
17 diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest
18 index 76876095e355..8373056714fc 100644
19 --- a/app-text/sigil/Manifest
20 +++ b/app-text/sigil/Manifest
21 @@ -1 +1,2 @@
22 DIST sigil-1.8.0.tar.gz 21217901 BLAKE2B 78615652859d1f61bab18b1b248d342dc6892943a2310659859ab577981c4452fbaeb567758097427453c8dfe95e42b499616a423b5c11b42238f763ac0653c8 SHA512 1a911aac996d3519f501820f8da9c810db9793063e481a6169288d402ef7e6b797308cf7ca5517162d0eb4d80f38f968627bca676b724ea5be5109c427473c95
23 +DIST sigil-1.9.2.tar.gz 23225656 BLAKE2B 410b2cf1772158aa9b0d499ba54bb7fc176c479acf7e9f48c5113a4e253becab35b6b4aeaa83da249d7c36f824cb1ee9b7a2e95e29c023b37afed9e864f94134 SHA512 fd6a71ce3b05b08651476f86a166d1ccdbecca31b19ecfa31c9d18ebe4daccfd69cf51d687686917c401f4b6e26cc6a57dbae5f9b1d8ba49fe08ccdd0bdf75d7
24
25 diff --git a/app-text/sigil/sigil-1.9.2.ebuild b/app-text/sigil/sigil-1.9.2.ebuild
26 new file mode 100644
27 index 000000000000..312a494a7dfa
28 --- /dev/null
29 +++ b/app-text/sigil/sigil-1.9.2.ebuild
30 @@ -0,0 +1,75 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +PYTHON_REQ_USE="tk"
38 +
39 +inherit xdg cmake python-single-r1
40 +
41 +DESCRIPTION="Multi-platform WYSIWYG ebook editor for ePub format"
42 +HOMEPAGE="https://sigil-ebook.com/ https://github.com/Sigil-Ebook/Sigil"
43 +SRC_URI="https://github.com/Sigil-Ebook/Sigil/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +S="${WORKDIR}/${P^}"
45 +
46 +LICENSE="GPL-3+ Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="+plugins system-mathjax"
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 +
52 +RDEPEND="
53 + ${PYTHON_DEPS}
54 + app-text/hunspell:=
55 + dev-libs/libpcre:3=[pcre16]
56 + $(python_gen_cond_dep '
57 + dev-python/css-parser[${PYTHON_USEDEP}]
58 + dev-python/lxml[${PYTHON_USEDEP}]
59 + dev-python/six[${PYTHON_USEDEP}]')
60 + dev-qt/qtconcurrent:5
61 + dev-qt/qtcore:5
62 + dev-qt/qtgui:5
63 + dev-qt/qtprintsupport:5
64 + dev-qt/qtwebengine:5[widgets]
65 + dev-qt/qtwidgets:5
66 + sys-libs/zlib[minizip]
67 + plugins? ( $(python_gen_cond_dep '
68 + dev-python/chardet[${PYTHON_USEDEP}]
69 + dev-python/cssselect[${PYTHON_USEDEP}]
70 + dev-python/dulwich[${PYTHON_USEDEP}]
71 + dev-python/html5lib[${PYTHON_USEDEP}]
72 + dev-python/pillow[${PYTHON_USEDEP}]
73 + dev-python/regex[${PYTHON_USEDEP}]') )
74 + system-mathjax? ( dev-libs/mathjax )
75 +"
76 +DEPEND="${RDEPEND}"
77 +BDEPEND="
78 + ${PYTHON_DEPS}
79 + dev-qt/linguist-tools:5
80 +"
81 +
82 +DOCS=( ChangeLog.txt README.md )
83 +
84 +src_configure() {
85 + local mycmakeargs=(
86 + -DTRY_NEWER_FINDPYTHON3=1
87 + -DPython3_INCLUDE_DIR="$(python_get_includedir)"
88 + -DPython3_LIBRARY="$(python_get_library_path)"
89 + -DPython3_EXECUTABLE="${PYTHON}"
90 +
91 + -DINSTALL_BUNDLED_DICTS=0
92 + -DSYSTEM_LIBS_REQUIRED=1
93 + -DUSE_SYSTEM_LIBS=1
94 + -DUSE_QT6=0
95 + )
96 + use system-mathjax && mycmakeargs+=( -DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax )
97 +
98 + cmake_src_configure
99 +}
100 +
101 +src_install() {
102 + cmake_src_install
103 + python_fix_shebang "${ED}"/usr/share/sigil/
104 + python_optimize "${ED}"/usr/share/sigil/
105 +}