summaryrefslogtreecommitdiff
path: root/app-editors/retext
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-14 12:12:48 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-14 12:12:48 +0100
commitb6323af2602e6a5cd4920d4af06b5c2f3949b9d0 (patch)
tree7d427f015930068f8d06e8f5aa622635ac3b61ca /app-editors/retext
parent4b61f038fc5ecca26609a997fcc662c7cf9e0498 (diff)
gentoo auto-resync : 14:08:2023 - 12:12:48
Diffstat (limited to 'app-editors/retext')
-rw-r--r--app-editors/retext/Manifest4
-rw-r--r--app-editors/retext/retext-8.0.1.ebuild78
-rw-r--r--app-editors/retext/retext-9999.ebuild19
3 files changed, 94 insertions, 7 deletions
diff --git a/app-editors/retext/Manifest b/app-editors/retext/Manifest
index 0b1966b64815..8fc9ce8a4716 100644
--- a/app-editors/retext/Manifest
+++ b/app-editors/retext/Manifest
@@ -1,6 +1,8 @@
DIST ReText-7.2.3.tar.gz 527428 BLAKE2B 3c710769a881275d74018ba319b174020dda0b65da22ae926231af56901b56c31b3cff69119a9bb378cd218d7b793f002bb08bf1483cc1e55c95a4963cbe1598 SHA512 eb337866f5dfacad2f23435f09b550f4378df5bb261d6f79b1708fed9e7bd93e96e8f06f940cb7109fe02aa6df0592b151f11dfe13853799f0b1ac2c1065a0da
DIST ReText-8.0.0.tar.gz 492823 BLAKE2B ba80f01f1a40981220c0b3e16dd04bf551319a35c1a5c7f6d5e70135404537e74fa4625fe4c05c7ee54202de9ae16d181c110fcae9b9172761ca5ecf6400f7de SHA512 0f2480bcc8569cf60ebfe55847a2a068d1e5dd262a4ff212873bf58660ec31e9c37d9b21bdc66229d681c065a0d96b6ff11652e8d9a7c77841ea551480d1154c
+DIST ReText-8.0.1.tar.gz 538968 BLAKE2B 6ee18b4becf47ed3edae9e1d3ea8167a5db2685ae55b206be1ffca78bb765a559f53575da8aa105eae5d1b1fb87419723cdfd02cfff2eb422de9722589a0b97a SHA512 a2a03a821ac06e0408cd036189e9fce18f4b693085aaa15e0d95f2a80157f6ab09b0bcecd9574673ce57fc9cde937457e8d62971f1553cbc26c681039401178a
EBUILD retext-7.2.3.ebuild 1983 BLAKE2B d406bcef6bc9bf2a545862329231fad68d6711e7ca711e1d80fc88ffa4077de808fbbd055e26ad53032f3232d7f399ae79564446b72868f18c8f543c629224e3 SHA512 8b52132d60dc5fdc0a506706e97aff082b070ae36d2a0a7a28356bb704e355199e48e2aa97aa90301cd169ba7ac5e284fb904c7fc7362c953561c573a73c607f
EBUILD retext-8.0.0.ebuild 1932 BLAKE2B 1a90b37a32832dd3b54638c03d582e8f753528f4ba9de67b712046794fe86b82f0784a71a7eb696126eb27eda25a5d5adf2100b8339150f443cc4f77db022c52 SHA512 7c51503e7bdb9f099be160c65f23b3376bc01f7590bc8dffa6b11b697321c78a77c87e6634ffbdde66fa595a72bfc9fe18f864c4f34cae3c128a1befeb902a0c
-EBUILD retext-9999.ebuild 1932 BLAKE2B 1a90b37a32832dd3b54638c03d582e8f753528f4ba9de67b712046794fe86b82f0784a71a7eb696126eb27eda25a5d5adf2100b8339150f443cc4f77db022c52 SHA512 7c51503e7bdb9f099be160c65f23b3376bc01f7590bc8dffa6b11b697321c78a77c87e6634ffbdde66fa595a72bfc9fe18f864c4f34cae3c128a1befeb902a0c
+EBUILD retext-8.0.1.ebuild 1854 BLAKE2B 2405c914764bb13828a56b12a6bc2e4b3540f9747b198069ff04cca2d05e0e693fb3bcfc1c816390e561f00aaa43fa4f8712b8419c5ebdbd18bd4843197c4bce SHA512 1cd79d2e4c12dd3551282d8d611b75c5bdee76021cc8c068def2295a4fbb3d54b4e720a2e4d1aa49f8d6fe285974ccc08b7f38d7834a3ad76270274cc353b4f0
+EBUILD retext-9999.ebuild 1854 BLAKE2B 2405c914764bb13828a56b12a6bc2e4b3540f9747b198069ff04cca2d05e0e693fb3bcfc1c816390e561f00aaa43fa4f8712b8419c5ebdbd18bd4843197c4bce SHA512 1cd79d2e4c12dd3551282d8d611b75c5bdee76021cc8c068def2295a4fbb3d54b4e720a2e4d1aa49f8d6fe285974ccc08b7f38d7834a3ad76270274cc353b4f0
MISC metadata.xml 535 BLAKE2B 94fbf92941c956601e9ec037a78919fcbddb572baa20f74c0daae31e438e44d214b57926cfa6d31eb176b8be72d2078e44686bada4a4794e130956c7d91b5865 SHA512 5ed97d1ed19c618b1246375d02860f96ce7f58aa759c467ae69e35d6b003cdac44f5c59f166ae6970e9a082e783550381b34540ad1ba03d661a3f3fde7d26dec
diff --git a/app-editors/retext/retext-8.0.1.ebuild b/app-editors/retext/retext-8.0.1.ebuild
new file mode 100644
index 000000000000..aa9aaadfcf57
--- /dev/null
+++ b/app-editors/retext/retext-8.0.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517="setuptools"
+PYTHON_COMPAT=( python3_{9..11} )
+PYPI_NO_NORMALIZE=1
+PYPI_PN="ReText"
+
+inherit desktop distutils-r1 optfeature qmake-utils virtualx xdg
+
+DESCRIPTION="Simple editor for Markdown and reStructuredText"
+HOMEPAGE="https://github.com/retext-project/retext https://github.com/retext-project/retext/wiki"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/retext-project/retext.git"
+else
+ inherit pypi
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2+"
+SLOT="0"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-python/chardet[${PYTHON_USEDEP}]
+ dev-python/docutils[${PYTHON_USEDEP}]
+ dev-python/markdown[${PYTHON_USEDEP}]
+ >=dev-python/markups-3.1.1[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/python-markdown-math[${PYTHON_USEDEP}]
+ dev-python/PyQt6[dbus,gui,printsupport,widgets,${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-qt/linguist-tools
+ test? ( dev-python/PyQt6[testlib,${PYTHON_USEDEP}] )
+"
+
+distutils_enable_tests unittest
+
+pkg_setup() {
+ # Needed for lrelease
+ export PATH="$(qt5_get_bindir):${PATH}"
+}
+
+python_install() {
+ distutils-r1_python_install
+
+ newicon data/retext-kde5.png retext.png
+ make_desktop_entry ${PN} "ReText" ${PN} "Office;WordProcessor"
+}
+
+src_test() {
+ virtx distutils-r1_src_test
+}
+
+python_test() {
+ virtx eunittest
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ optfeature "dictionary support" dev-python/pyenchant
+
+ einfo "Starting with retext-7.0.4 the markdown-math plugin is installed."
+ einfo "Note that you can use different math delimiters, e.g. \(...\) for inline math."
+ einfo "For more details take a look at:"
+ einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}
diff --git a/app-editors/retext/retext-9999.ebuild b/app-editors/retext/retext-9999.ebuild
index 7f375768199a..aa9aaadfcf57 100644
--- a/app-editors/retext/retext-9999.ebuild
+++ b/app-editors/retext/retext-9999.ebuild
@@ -3,14 +3,12 @@
EAPI=8
-# Please don't add pypy support before testing if it's actually supported. The
-# old compat matrix is no longer accessible as of 2021-02-13 but stated back
-# in 2020-07-05 that PyQt5 was explicitly not supported.
+DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{9..11} )
PYPI_NO_NORMALIZE=1
PYPI_PN="ReText"
-inherit distutils-r1 optfeature qmake-utils virtualx xdg
+inherit desktop distutils-r1 optfeature qmake-utils virtualx xdg
DESCRIPTION="Simple editor for Markdown and reStructuredText"
HOMEPAGE="https://github.com/retext-project/retext https://github.com/retext-project/retext/wiki"
@@ -49,6 +47,13 @@ pkg_setup() {
export PATH="$(qt5_get_bindir):${PATH}"
}
+python_install() {
+ distutils-r1_python_install
+
+ newicon data/retext-kde5.png retext.png
+ make_desktop_entry ${PN} "ReText" ${PN} "Office;WordProcessor"
+}
+
src_test() {
virtx distutils-r1_src_test
}
@@ -61,11 +66,13 @@ pkg_postinst() {
xdg_pkg_postinst
optfeature "dictionary support" dev-python/pyenchant
- # See https://bugs.gentoo.org/772197.
- optfeature "rendering with webengine" dev-python/PyQt6-WebEngine
einfo "Starting with retext-7.0.4 the markdown-math plugin is installed."
einfo "Note that you can use different math delimiters, e.g. \(...\) for inline math."
einfo "For more details take a look at:"
einfo "https://github.com/mitya57/python-markdown-math#math-delimiters"
}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}