summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-11-04 20:59:24 -0500
committerIonen Wolkens <ionen@gentoo.org>2024-11-04 21:16:33 -0500
commitdade6e16c74f6321aaa4c8a18410e62ad7944a85 (patch)
tree28620b4c49f036f1d0730a93d17b9cf57627eb54 /app-misc
parentapp-misc/ranger: sync live (diff)
downloadgentoo-dade6e16c74f6321aaa4c8a18410e62ad7944a85.tar.gz
gentoo-dade6e16c74f6321aaa4c8a18410e62ad7944a85.tar.bz2
gentoo-dade6e16c74f6321aaa4c8a18410e62ad7944a85.zip
app-misc/ranger: add 1.9.4
This release is identical to 1.9.3 except that it drops the use of imghdr to work with python3.13 (which is now in compat). So the color backport patch is still needed. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/ranger/Manifest1
-rw-r--r--app-misc/ranger/ranger-1.9.4.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/app-misc/ranger/Manifest b/app-misc/ranger/Manifest
index 36cbae1190a7..f75a2ec141eb 100644
--- a/app-misc/ranger/Manifest
+++ b/app-misc/ranger/Manifest
@@ -1 +1,2 @@
DIST ranger-1.9.3.gh.tar.gz 280363 BLAKE2B 2698f82773aae0224e7385413a1f939cdd4b3374eddad496781a42b054e26a8d7e5944bf19bc846736a9171df317c0dbc3c8bdf83c6ca9bdb95de17f9229809e SHA512 5cd7bea714a6542d0a5445f5f0cf929b2df4377df3ef710f3786c6c46dd58b017a8060cde3969076637bfaac03c13297d3020fd82f4574dc49546ca223c0e8d3
+DIST ranger-1.9.4.gh.tar.gz 280165 BLAKE2B 08d90f06e949645b2cd5e94bfa224f3bd97717d38766e72614a294d2e6fda51da2836cdf9b011accb7ba47bb194860d4aa8385b4084af29bf97e95f21b9da3f6 SHA512 18cd1d66838a5f85176e6b7502521a7e449aaa0b12e97d62142d39f980c529c5b97a50f6fb8a65adb64612fa80450b1e13047327f7bcc005a494af4ab321e4d4
diff --git a/app-misc/ranger/ranger-1.9.4.ebuild b/app-misc/ranger/ranger-1.9.4.ebuild
new file mode 100644
index 000000000000..acd4e5b2354a
--- /dev/null
+++ b/app-misc/ranger/ranger-1.9.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="ncurses"
+inherit distutils-r1 xdg
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ranger/ranger.git"
+else
+ SRC_URI="
+ https://github.com/ranger/ranger/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~riscv ~x86"
+fi
+
+DESCRIPTION="Vim-inspired file manager for the console"
+HOMEPAGE="https://ranger.github.io/"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9.3-color-crash-fix.patch
+)
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ sed -i "s|share/doc/ranger|share/doc/${PF}|" setup.py doc/ranger.1 || die
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ if [[ ! ${REPLACING_VERSIONS} ]]; then
+ elog "${PN^} has many optional dependencies to support enhanced file previews."
+ elog "See ${EROOT}/usr/share/doc/${PF}/README.md* for more details."
+ fi
+}