diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
commit | b24bd25253fe093f722ab576d29fdc41d04cb1ee (patch) | |
tree | 0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /app-text/sigil | |
parent | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff) |
gentoo resync : 02.08.2019
Diffstat (limited to 'app-text/sigil')
-rw-r--r-- | app-text/sigil/Manifest | 4 | ||||
-rw-r--r-- | app-text/sigil/metadata.xml | 10 | ||||
-rw-r--r-- | app-text/sigil/sigil-0.9.16.ebuild | 107 |
3 files changed, 120 insertions, 1 deletions
diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest index 2d5b1aec885b..18c1e040165d 100644 --- a/app-text/sigil/Manifest +++ b/app-text/sigil/Manifest @@ -1,6 +1,8 @@ AUX sigil-0.9.8-proper-gumbo-install.patch 1351 BLAKE2B d24d6e0be9b7c56c944aad2d97528ef38b3f96b4d81504b1169095112cc939a662101754ccc9f4d8e9303cd0e9d2ad084e8c86c32d73d43720d1a1736ec572d3 SHA512 743250a34b257ca7619b53f4373efed48867f9a059db378ee3d8192e4cc73861ba8eb490b7a72a96ee923b034922eb0224a0ef963d455bdbc1cf6f4425881f89 DIST Sigil-0.9.13.tar.gz 18235134 BLAKE2B 4afe0f0258a8c1056029534ec696372e40343b9a398b612ee32fe95a3d417594bcc6782a4e6447323d67e84db5193756ff7c8756e160c432678ebc59ddeab706 SHA512 cafc6b075827239b73e80d3efa02e4e77d5903fed1faf8b600f70b178fb0c248c38d43e115f249124859edc12ddd8caf199ef0b0d05f20852eb060b27e5a3578 DIST Sigil-0.9.8-Code.zip 19807795 BLAKE2B 002626842b2619b94889780a66e4de1f6d6fc9f07e36069608d2edae1078516d7c0fbedad6d4966f2cff64ccd21730719a04c144b3c3c1740ad727448aff8af2 SHA512 18cd137ead965bc97626499ec73dddb8db82b4d538c30f70e62546bd1eeb6e2e76ce7587d572354d973363a07e93ec33b60024bbef7914a22cbfc28a76af2a00 +DIST sigil-0.9.16.tar.gz 21241424 BLAKE2B 1e784768cfe98e08ac01f5a9c11ec8254f9a0211f69ee1eb479643cc83677f6fea43745bcb158ea178ac64eec87c2e0062e783af2fe7477e2e5e8faf4db24c46 SHA512 45358912527484a7c580db34733d30927938443096fbf23e969d966e140a20607a4d98e086149a5eeb620f2462efc9abd531988c1b5cd93c373e747d5e5cd20a EBUILD sigil-0.9.13.ebuild 2527 BLAKE2B f48d3ad43514ad147011b2902e9dec7d4ca35e8f58100cd6ed4e0ce640d9a3f321ccd1c996cb5e88c861ee273c09dd384c95f1136be5604361d1dc7f5044ca0e SHA512 a6b0a5e912f90617f23abdd36b6173e8cc8287f0dc0b2d8052069f656c042dc3d132c7a0b6035c8bc899c6a8defa13f8d6caf08c55793661e5d0e8ef34d0fcdf +EBUILD sigil-0.9.16.ebuild 2877 BLAKE2B cf884cab1b1b41c4b8ca7b95c8de4db846aaab774a741d8dc51babeff1513db3fa9354f2fb162d7010afac2e93b578603bd8eca86f2811d26ece7e4cf51f518f SHA512 080f1efaf317e4b872bc153d1e78ae793a07400b726977af985c8e73917e887097235c0960be93c9ec9facb92a8c53cf193369e884f765640b70f62b256f5979 EBUILD sigil-0.9.8.ebuild 2234 BLAKE2B 81dbc8905e5e4d96f7a423a64a66fa2f5a1ad501a7f8e8ae4049bbf43cbac8366c7fe388da1a9ba9a2f4aaca92b7df9fe585443276f283f80a305eead2797db0 SHA512 834be1bffdd30059bd224d8b0ea0d4b5efa8286f934042183e305ba793b3b25bca01a807ce1c3de9c011d4c335a5362bcfd6cc20694a83f4f9142f65f91286c9 -MISC metadata.xml 596 BLAKE2B 620d0143f20ca5b215ab4dbbbab6636f82951ee505681ab969bb5eb19d8c6d56e9094067c26f6ff6979f32814a5894c2b7aa18db85ad436900e1655e7cd081b8 SHA512 5a657dabca05bfe05a7b0d8165b0a9be0f6f74b38ca30a85710a333b87534900992ce09d98037894593511c7dc30412152715f1bdaa452e8718973989ac40a00 +MISC metadata.xml 1073 BLAKE2B 5428bda0e56ccfc8a4f5c7df773698fa62e0309daa5cb970df9fe3381a7a45c920a854e793b92a2d7e91c66698ddd40f2cf89001e85d0bdfbf521af9fe8ea4a8 SHA512 cdfca84a4cd89a3d4d8d6d79b7eb6432d51019b3ac2c8f59f09262c7cf52c990886e299557bcf10f698ec84e8c3c4f46da19bd9dc298d7011aaf4e52b9e0b35b diff --git a/app-text/sigil/metadata.xml b/app-text/sigil/metadata.xml index bfc4712a175b..ec9790cba787 100644 --- a/app-text/sigil/metadata.xml +++ b/app-text/sigil/metadata.xml @@ -11,7 +11,17 @@ </maintainer> <longdescription lang="en">Sigil is a multi-platform WYSIWYG ebook editor. It is designed to edit books in ePub format.</longdescription> + <use> + <flag name="plugins">Installed needed Python packages for using Sigil plugins</flag> + <flag name="system-mathjax">Use the system-wide <pkg>dev-libs/mathjax</pkg> instead of bundled</flag> + </use> <upstream> <remote-id type="github">Sigil-Ebook/Sigil</remote-id> + <maintainer status="active"> + <email>douglaslmassay@gmail.com</email> + <name>Doug Massay</name> + </maintainer> + <bugs-to>https://github.com/Sigil-Ebook/Sigil/issues</bugs-to> + <changelog>https://github.com/Sigil-Ebook/Sigil/blob/master/ChangeLog.txt</changelog> </upstream> </pkgmetadata> diff --git a/app-text/sigil/sigil-0.9.16.ebuild b/app-text/sigil/sigil-0.9.16.ebuild new file mode 100644 index 000000000000..2faaf3abb786 --- /dev/null +++ b/app-text/sigil/sigil-0.9.16.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) +PYTHON_REQ_USE="tk" + +inherit cmake-utils python-single-r1 readme.gentoo-r1 xdg-utils + +DESCRIPTION="Multi-platform WYSIWYG ebook editor for ePub format" +HOMEPAGE="https://sigil-ebook.com/" +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/boost:=[threads] + dev-libs/libpcre:3=[pcre16] + dev-libs/xerces-c[icu] + 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 + >=dev-qt/qtxmlpatterns-5.12:5 + sys-libs/zlib[minizip] + plugins? ( + 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 ) + +DOC_CONTENTS="From Sigil's release notes: +When you fire up Sigil for the very first time: +navigate to the new General Preferences and select the default +epub version you plan to work with (epub 2 or epub3) so that new +empty ebooks start with the correct code. +if you plan to work with epub3 epubs, you should change your +PreserveEntities setting to use ONLY NUMERIC entities. + +For example use & # 1 6 0 ; for non-breaking spaces and etc. + +We strongly recommend enabling Mend On Open in your settings +for best performance with Sigil." + +src_prepare() { + # bundled is a exact copy of the package, and upstream plan to switch soon + rm -r src/Resource_Files/plugin_launchers/python/css_parser/ || die + cmake-utils_src_prepare +} + +src_configure() { + python_export PYTHON_LIBPATH PYTHON_INCLUDEDIR + local mycmakeargs=( + -DINSTALL_BUNDLED_DICTS=0 + -DUSE_SYSTEM_LIBS=1 + -DSYSTEM_LIBS_REQUIRED=1 + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_LIBRARY="${PYTHON_LIBPATH}" + -DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDEDIR}" + ) + use system-mathjax && mycmakeargs+=( -DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + python_fix_shebang "${ED}"/usr/share/sigil/ + python_optimize "${ED}"/usr/share/sigil/ + DISABLE_AUTOFORMATTING=true readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_desktop_database_update + readme.gentoo_print_elog +} + +pkg_postrm() { + xdg_desktop_database_update +} |