3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..11} )
|
|
6 |
PYTHON_COMPAT=( python3_{10..11} )
|
7 |
7 |
|
8 |
8 |
inherit xdg cmake python-single-r1
|
9 |
9 |
|
|
10 |
DOC_VERSION="2022.05.17"
|
|
11 |
DOC_FILE="Sigil_User_Guide_${DOC_VERSION}.epub"
|
|
12 |
|
10 |
13 |
DESCRIPTION="Multi-platform WYSIWYG ebook editor for ePub format"
|
11 |
14 |
HOMEPAGE="https://sigil-ebook.com/ https://github.com/Sigil-Ebook/Sigil"
|
12 |
|
SRC_URI="https://github.com/Sigil-Ebook/Sigil/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
15 |
SRC_URI="https://github.com/Sigil-Ebook/Sigil/archive/${PV}.tar.gz -> ${P}.tar.gz
|
|
16 |
doc? ( https://github.com/Sigil-Ebook/sigil-user-guide/releases/download/${DOC_VERSION}/${DOC_FILE} )"
|
13 |
17 |
S="${WORKDIR}/${P^}"
|
14 |
18 |
|
15 |
19 |
LICENSE="GPL-3+ Apache-2.0"
|
16 |
20 |
SLOT="0"
|
17 |
|
KEYWORDS="amd64"
|
18 |
|
IUSE="+plugins"
|
|
21 |
KEYWORDS="~amd64"
|
|
22 |
IUSE="doc +plugins qt6"
|
19 |
23 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
20 |
24 |
|
21 |
25 |
RDEPEND="
|
22 |
26 |
${PYTHON_DEPS}
|
23 |
27 |
app-text/hunspell:=
|
24 |
28 |
dev-libs/libpcre2:=[pcre16]
|
|
29 |
sys-libs/zlib[minizip]
|
25 |
30 |
$(python_gen_cond_dep '
|
26 |
31 |
dev-python/css-parser[${PYTHON_USEDEP}]
|
27 |
32 |
dev-python/dulwich[${PYTHON_USEDEP}]
|
28 |
33 |
dev-python/lxml[${PYTHON_USEDEP}]
|
29 |
34 |
dev-python/six[${PYTHON_USEDEP}]')
|
30 |
|
dev-qt/qtconcurrent:5
|
31 |
|
dev-qt/qtcore:5
|
32 |
|
dev-qt/qtgui:5
|
33 |
|
dev-qt/qtprintsupport:5
|
34 |
|
dev-qt/qtwebengine:5[widgets]
|
35 |
|
dev-qt/qtwidgets:5
|
36 |
|
sys-libs/zlib[minizip]
|
37 |
35 |
plugins? ( $(python_gen_cond_dep '
|
38 |
36 |
dev-python/chardet[${PYTHON_USEDEP}]
|
39 |
37 |
dev-python/cssselect[${PYTHON_USEDEP}]
|
40 |
38 |
dev-python/html5lib[${PYTHON_USEDEP}]
|
41 |
39 |
dev-python/pillow[${PYTHON_USEDEP}]
|
42 |
|
dev-python/PyQt5[${PYTHON_USEDEP}]
|
43 |
|
dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
|
44 |
|
dev-python/regex[${PYTHON_USEDEP}]')
|
45 |
|
$(python_gen_impl_dep 'tk') )
|
|
40 |
dev-python/regex[${PYTHON_USEDEP}]
|
|
41 |
')
|
|
42 |
$(python_gen_impl_dep 'tk') )
|
|
43 |
!qt6? (
|
|
44 |
dev-qt/qtconcurrent:5
|
|
45 |
dev-qt/qtcore:5
|
|
46 |
dev-qt/qtgui:5
|
|
47 |
dev-qt/qtnetwork:5
|
|
48 |
dev-qt/qtprintsupport:5
|
|
49 |
dev-qt/qtwebengine:5[widgets]
|
|
50 |
dev-qt/qtwidgets:5
|
|
51 |
dev-qt/qtxml:5
|
|
52 |
plugins? ( $(python_gen_cond_dep '
|
|
53 |
dev-python/PyQt5[${PYTHON_USEDEP}]
|
|
54 |
dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
|
|
55 |
') )
|
|
56 |
)
|
|
57 |
qt6? (
|
|
58 |
dev-qt/qtbase:6[concurrent,cups,network,widgets,xml]
|
|
59 |
dev-qt/qt5compat:6
|
|
60 |
dev-qt/qtwebengine:6[widgets]
|
|
61 |
plugins? ( $(python_gen_cond_dep '
|
|
62 |
dev-python/PyQt6[${PYTHON_USEDEP}]
|
|
63 |
dev-python/PyQt6-WebEngine[${PYTHON_USEDEP}]
|
|
64 |
') )
|
|
65 |
)
|
46 |
66 |
"
|
47 |
67 |
DEPEND="${RDEPEND}"
|
48 |
68 |
BDEPEND="
|
49 |
69 |
${PYTHON_DEPS}
|
50 |
|
dev-qt/linguist-tools:5
|
|
70 |
virtual/pkgconfig
|
|
71 |
!qt6? ( dev-qt/linguist-tools:5 )
|
|
72 |
qt6? ( dev-qt/qttools:6[linguist] )
|
51 |
73 |
"
|
52 |
74 |
|
53 |
75 |
DOCS=( ChangeLog.txt README.md )
|
... | ... | |
59 |
81 |
-DPython3_LIBRARY="$(python_get_library_path)"
|
60 |
82 |
-DPython3_EXECUTABLE="${PYTHON}"
|
61 |
83 |
|
|
84 |
-DUSE_QT6=$(usex qt6)
|
62 |
85 |
-DINSTALL_BUNDLED_DICTS=0
|
63 |
86 |
-DSYSTEM_LIBS_REQUIRED=1
|
64 |
87 |
-DUSE_SYSTEM_LIBS=1
|
65 |
|
-DUSE_QT6=0
|
66 |
88 |
)
|
67 |
89 |
# use system-mathjax && mycmakeargs+=( -DMATHJAX3_DIR="${EPREFIX}"/usr/share/mathjax )
|
68 |
90 |
|
... | ... | |
73 |
95 |
cmake_src_install
|
74 |
96 |
python_fix_shebang "${ED}"/usr/share/sigil/
|
75 |
97 |
python_optimize "${ED}"/usr/share/sigil/
|
|
98 |
|
|
99 |
if use doc; then
|
|
100 |
dodoc "${DISTDIR}/${DOC_FILE}"
|
|
101 |
docompress -x /usr/share/doc/${PF}/${DOC_FILE}
|
|
102 |
fi
|
76 |
103 |
}
|