Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/sigil/
Date: Mon, 29 Apr 2019 14:26:42
Message-Id: 1556547983.1740e1295b1712997bd38bc861e403bad6b18f24.mgorny@gentoo
1 commit: 1740e1295b1712997bd38bc861e403bad6b18f24
2 Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 26 20:48:21 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 29 14:26:23 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1740e129
7
8 app-text/sigil: version bump to 0.9.13
9
10 Closes: https://bugs.gentoo.org/682700
11 Package-Manager: Portage-2.3.65, Repoman-2.3.12
12 Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com>
13 Closes: https://github.com/gentoo/gentoo/pull/11264
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 app-text/sigil/Manifest | 1 +
17 app-text/sigil/sigil-0.9.13.ebuild | 97 ++++++++++++++++++++++++++++++++++++++
18 2 files changed, 98 insertions(+)
19
20 diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest
21 index d56d7bc949b..9a1989190d4 100644
22 --- a/app-text/sigil/Manifest
23 +++ b/app-text/sigil/Manifest
24 @@ -1 +1,2 @@
25 +DIST Sigil-0.9.13.tar.gz 18235134 BLAKE2B 4afe0f0258a8c1056029534ec696372e40343b9a398b612ee32fe95a3d417594bcc6782a4e6447323d67e84db5193756ff7c8756e160c432678ebc59ddeab706 SHA512 cafc6b075827239b73e80d3efa02e4e77d5903fed1faf8b600f70b178fb0c248c38d43e115f249124859edc12ddd8caf199ef0b0d05f20852eb060b27e5a3578
26 DIST Sigil-0.9.8-Code.zip 19807795 BLAKE2B 002626842b2619b94889780a66e4de1f6d6fc9f07e36069608d2edae1078516d7c0fbedad6d4966f2cff64ccd21730719a04c144b3c3c1740ad727448aff8af2 SHA512 18cd137ead965bc97626499ec73dddb8db82b4d538c30f70e62546bd1eeb6e2e76ce7587d572354d973363a07e93ec33b60024bbef7914a22cbfc28a76af2a00
27
28 diff --git a/app-text/sigil/sigil-0.9.13.ebuild b/app-text/sigil/sigil-0.9.13.ebuild
29 new file mode 100644
30 index 00000000000..4fe85886756
31 --- /dev/null
32 +++ b/app-text/sigil/sigil-0.9.13.ebuild
33 @@ -0,0 +1,97 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +PYTHON_COMPAT=( python3_{5,6,7} )
40 +
41 +inherit cmake-utils python-single-r1 readme.gentoo-r1 xdg-utils
42 +
43 +MY_P="Sigil-${PV}"
44 +
45 +DESCRIPTION="Sigil is a multi-platform WYSIWYG ebook editor for ePub format"
46 +HOMEPAGE="https://sigil-ebook.com/"
47 +SRC_URI="https://github.com/Sigil-Ebook/Sigil/archive/${PV}.tar.gz -> ${MY_P}.tar.gz"
48 +
49 +LICENSE="GPL-3+ Apache-2.0"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
53 +
54 +RDEPEND="
55 + ${PYTHON_DEPS}
56 + app-text/hunspell:=
57 + dev-libs/boost:=[threads]
58 + dev-libs/libpcre:3=[pcre16]
59 + dev-libs/mathjax
60 + dev-libs/xerces-c[icu]
61 + dev-python/chardet[${PYTHON_USEDEP}]
62 + dev-python/cssselect[${PYTHON_USEDEP}]
63 + dev-python/cssutils[${PYTHON_USEDEP}]
64 + dev-python/html5lib[${PYTHON_USEDEP}]
65 + dev-python/lxml[${PYTHON_USEDEP}]
66 + dev-python/pillow[${PYTHON_USEDEP}]
67 + dev-python/regex[${PYTHON_USEDEP}]
68 + dev-python/six[${PYTHON_USEDEP}]
69 + >=dev-qt/qtconcurrent-5.4:5
70 + >=dev-qt/qtcore-5.4:5
71 + >=dev-qt/qtgui-5.4:5
72 + >=dev-qt/qtprintsupport-5.4:5
73 + >=dev-qt/qtwebkit-5.4:5
74 + >=dev-qt/qtwidgets-5.4:5
75 + >=dev-qt/qtxmlpatterns-5.4:5
76 + sys-libs/zlib[minizip]
77 +"
78 +DEPEND="${RDEPEND}"
79 +
80 +BDEPEND="
81 + dev-qt/linguist-tools:5
82 + virtual/pkgconfig
83 +"
84 +
85 +S="${WORKDIR}/${MY_P}"
86 +
87 +DOCS=( ChangeLog.txt README.md )
88 +
89 +DOC_CONTENTS="From Sigil's release notes:
90 +When you fire up Sigil for the very first time:
91 +navigate to the new General Preferences and select the default
92 +epub version you plan to work with (epub 2 or epub3) so that new
93 +empty ebooks start with the correct code.
94 +if you plan to work with epub3 epubs, you should change your
95 +PreserveEntities setting to use ONLY NUMERIC entities.
96 +
97 +For example use & # 1 6 0 ; for non-breaking spaces and etc.
98 +
99 +We strongly recommend enabling Mend On Open in your settings
100 +for best performance with Sigil."
101 +
102 +src_configure() {
103 + python_export PYTHON_LIBPATH PYTHON_INCLUDEDIR
104 + local mycmakeargs=(
105 + -DINSTALL_BUNDLED_DICTS=0
106 + -DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax
107 + -DUSE_SYSTEM_LIBS=1
108 + -DSYSTEM_LIBS_REQUIRED=1
109 + -DPYTHON_EXECUTABLE="${PYTHON}"
110 + -DPYTHON_LIBRARY="${PYTHON_LIBPATH}"
111 + -DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDEDIR}"
112 + )
113 + cmake-utils_src_configure
114 +}
115 +
116 +src_install() {
117 + cmake-utils_src_install
118 + python_fix_shebang "${ED}"/usr/share/sigil/
119 + python_optimize "${ED}"/usr/share/sigil/
120 + DISABLE_AUTOFORMATTING=true readme.gentoo_create_doc
121 +}
122 +
123 +pkg_postinst() {
124 + xdg_desktop_database_update
125 + readme.gentoo_print_elog
126 +}
127 +
128 +pkg_postrm() {
129 + xdg_desktop_database_update
130 +}