diff options
Diffstat (limited to 'app-text/sigil')
-rw-r--r-- | app-text/sigil/Manifest | 5 | ||||
-rw-r--r-- | app-text/sigil/metadata.xml | 11 | ||||
-rw-r--r-- | app-text/sigil/sigil-0.9.13.ebuild | 97 | ||||
-rw-r--r-- | app-text/sigil/sigil-0.9.16.ebuild | 107 | ||||
-rw-r--r-- | app-text/sigil/sigil-0.9.17.ebuild | 107 | ||||
-rw-r--r-- | app-text/sigil/sigil-2.1.0-r1.ebuild | 105 |
6 files changed, 109 insertions, 323 deletions
diff --git a/app-text/sigil/Manifest b/app-text/sigil/Manifest index 8d13bc890bf0..c51069537b76 100644 --- a/app-text/sigil/Manifest +++ b/app-text/sigil/Manifest @@ -1,3 +1,2 @@ -DIST Sigil-0.9.13.tar.gz 18235134 BLAKE2B 4afe0f0258a8c1056029534ec696372e40343b9a398b612ee32fe95a3d417594bcc6782a4e6447323d67e84db5193756ff7c8756e160c432678ebc59ddeab706 SHA512 cafc6b075827239b73e80d3efa02e4e77d5903fed1faf8b600f70b178fb0c248c38d43e115f249124859edc12ddd8caf199ef0b0d05f20852eb060b27e5a3578 -DIST sigil-0.9.16.tar.gz 21241424 BLAKE2B 1e784768cfe98e08ac01f5a9c11ec8254f9a0211f69ee1eb479643cc83677f6fea43745bcb158ea178ac64eec87c2e0062e783af2fe7477e2e5e8faf4db24c46 SHA512 45358912527484a7c580db34733d30927938443096fbf23e969d966e140a20607a4d98e086149a5eeb620f2462efc9abd531988c1b5cd93c373e747d5e5cd20a -DIST sigil-0.9.17.tar.gz 21262675 BLAKE2B fdba78eb1167e97c4190d7ae6d8d6de8055e0cac0e1105a3bdc1ddacbfa2f8403a293018ec464c72b8024f1ef0c1e9b230ca90586fdbb1d2fb3826e0fd327137 SHA512 ae233cdd62ab114d6c600f0fe75f9778e8cbb60bc7d81c99e10b6e20b9b85246de6c281d255b46a85c4d531e70ee1beffde1aa172c7b027121e097b4fb8e338c +DIST Sigil_User_Guide_2022.05.17.epub 8894634 BLAKE2B 8a7c5b5add54d87dfe791a0dbbc0c6cd37ae2eb2ff77f46ae36643785fb714d9fbc0fe470d024f7112be2933ca4fb57a4bfdfd340083be15fffca69296640ea9 SHA512 bac3f55d28d02f53c8fdac51333194e0f27c6669876360a6d0244b1e2683dae0e7046977fab6e75dba7170c8aca3a7539f3d6cddab3ddc3e45985930c455968a +DIST sigil-2.1.0.tar.gz 26918715 BLAKE2B d31aeea2ef0de2ecdedd50329bdf306e53aca0d4615cc97efa45013670b1f47af6a6152da4fdee20bf3a02c99f9b1337f07347170d50f28ddf48a52a089a5fc0 SHA512 542d6fc71b0353e3b5440d40e4c9f205c5205fb3e409935015b8f3689f8dcc74d8a96035963a740791f3a8acd63b2e0d81afe9be7716098e0727be6daf6c8ceb diff --git a/app-text/sigil/metadata.xml b/app-text/sigil/metadata.xml index ec9790cba787..4daa9a331609 100644 --- a/app-text/sigil/metadata.xml +++ b/app-text/sigil/metadata.xml @@ -1,19 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>arthurzam+gentoo@gmail.com</email> + <email>arthurzam@gentoo.org</email> <name>Arthur Zamarin</name> </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </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> diff --git a/app-text/sigil/sigil-0.9.13.ebuild b/app-text/sigil/sigil-0.9.13.ebuild deleted file mode 100644 index 4fe858867563..000000000000 --- a/app-text/sigil/sigil-0.9.13.ebuild +++ /dev/null @@ -1,97 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{5,6,7} ) - -inherit cmake-utils python-single-r1 readme.gentoo-r1 xdg-utils - -MY_P="Sigil-${PV}" - -DESCRIPTION="Sigil is a 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 -> ${MY_P}.tar.gz" - -LICENSE="GPL-3+ Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~x86" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND=" - ${PYTHON_DEPS} - app-text/hunspell:= - dev-libs/boost:=[threads] - dev-libs/libpcre:3=[pcre16] - dev-libs/mathjax - dev-libs/xerces-c[icu] - dev-python/chardet[${PYTHON_USEDEP}] - dev-python/cssselect[${PYTHON_USEDEP}] - dev-python/cssutils[${PYTHON_USEDEP}] - dev-python/html5lib[${PYTHON_USEDEP}] - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - >=dev-qt/qtconcurrent-5.4:5 - >=dev-qt/qtcore-5.4:5 - >=dev-qt/qtgui-5.4:5 - >=dev-qt/qtprintsupport-5.4:5 - >=dev-qt/qtwebkit-5.4:5 - >=dev-qt/qtwidgets-5.4:5 - >=dev-qt/qtxmlpatterns-5.4:5 - sys-libs/zlib[minizip] -" -DEPEND="${RDEPEND}" - -BDEPEND=" - dev-qt/linguist-tools:5 - virtual/pkgconfig -" - -S="${WORKDIR}/${MY_P}" - -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_configure() { - python_export PYTHON_LIBPATH PYTHON_INCLUDEDIR - local mycmakeargs=( - -DINSTALL_BUNDLED_DICTS=0 - -DMATHJAX_DIR="${EPREFIX}"/usr/share/mathjax - -DUSE_SYSTEM_LIBS=1 - -DSYSTEM_LIBS_REQUIRED=1 - -DPYTHON_EXECUTABLE="${PYTHON}" - -DPYTHON_LIBRARY="${PYTHON_LIBPATH}" - -DPYTHON_INCLUDE_DIR="${PYTHON_INCLUDEDIR}" - ) - 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 -} diff --git a/app-text/sigil/sigil-0.9.16.ebuild b/app-text/sigil/sigil-0.9.16.ebuild deleted file mode 100644 index f2afdb994b88..000000000000 --- a/app-text/sigil/sigil-0.9.16.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# 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 -} diff --git a/app-text/sigil/sigil-0.9.17.ebuild b/app-text/sigil/sigil-0.9.17.ebuild deleted file mode 100644 index 2faaf3abb786..000000000000 --- a/app-text/sigil/sigil-0.9.17.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# 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 -} diff --git a/app-text/sigil/sigil-2.1.0-r1.ebuild b/app-text/sigil/sigil-2.1.0-r1.ebuild new file mode 100644 index 000000000000..9de727940f0c --- /dev/null +++ b/app-text/sigil/sigil-2.1.0-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit xdg cmake python-single-r1 + +DOC_VERSION="2022.05.17" +DOC_FILE="Sigil_User_Guide_${DOC_VERSION}.epub" + +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 + doc? ( https://github.com/Sigil-Ebook/sigil-user-guide/releases/download/${DOC_VERSION}/${DOC_FILE} )" +S="${WORKDIR}/${P^}" + +LICENSE="GPL-3+ Apache-2.0" +SLOT="0" +KEYWORDS="amd64" +IUSE="doc +plugins qt6" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + app-text/hunspell:= + dev-libs/libpcre2:=[pcre16] + sys-libs/zlib[minizip] + $(python_gen_cond_dep ' + dev-python/css-parser[${PYTHON_USEDEP}] + dev-python/dulwich[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + ') + plugins? ( $(python_gen_cond_dep ' + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + ') + $(python_gen_impl_dep 'tk') ) + !qt6? ( + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwebengine:5[widgets] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + plugins? ( $(python_gen_cond_dep ' + dev-python/PyQt5[${PYTHON_USEDEP}] + dev-python/PyQtWebEngine[${PYTHON_USEDEP}] + ') ) + ) + qt6? ( + dev-qt/qtbase:6[concurrent,cups,network,widgets,xml] + dev-qt/qt5compat:6 + dev-qt/qtwebengine:6[widgets] + dev-qt/qtsvg:6 + plugins? ( $(python_gen_cond_dep ' + dev-python/PyQt6[${PYTHON_USEDEP}] + dev-python/PyQt6-WebEngine[${PYTHON_USEDEP}] + ') ) + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig + !qt6? ( dev-qt/linguist-tools:5 ) + qt6? ( dev-qt/qttools:6[linguist] ) +" + +DOCS=( ChangeLog.txt README.md ) + +src_configure() { + local mycmakeargs=( + -DTRY_NEWER_FINDPYTHON3=1 + -DPython3_INCLUDE_DIR="$(python_get_includedir)" + -DPython3_LIBRARY="$(python_get_library_path)" + -DPython3_EXECUTABLE="${PYTHON}" + + -DUSE_QT5=$(usex !qt6) + -DINSTALL_BUNDLED_DICTS=0 + -DSYSTEM_LIBS_REQUIRED=1 + -DUSE_SYSTEM_LIBS=1 + ) + # use system-mathjax && mycmakeargs+=( -DMATHJAX3_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/ + + if use doc; then + dodoc "${DISTDIR}/${DOC_FILE}" + docompress -x /usr/share/doc/${PF}/${DOC_FILE} + fi +} |