1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

sysutils/py-ranger: Update to 1.9.3

While I'm here:

* Backport a runtime fix for environments that don't have sysutils/screen
  installed but have TERM set to "screen".

* Reduce patching by switching manpages to the preferred share/man location.

* Rebase and document the patch that avoids hardcoded paths to w3mimgdisplay
  (which is supplied via www/w3m-img).

Changelog:

https://github.com/ranger/ranger/blob/v1.9.3/CHANGELOG.md

PR:		247938
Submitted by:	Greg Fitzgerald <gregf@hugops.pw> (based on)
Approved by:	maintainer timeout (3+ weeks)
MFH:		No (contains more additions/improvements than bugfixes)
This commit is contained in:
Kai Knoblich 2020-08-03 10:46:41 +00:00
parent f55a7be339
commit 4e25ff4752
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544046
3 changed files with 24 additions and 12 deletions

View File

@ -2,12 +2,16 @@
# $FreeBSD$
PORTNAME= ranger
PORTVERSION= 1.9.2
PORTREVISION= 1
PORTVERSION= 1.9.3
CATEGORIES= sysutils python
MASTER_SITES= https://ranger.github.io/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
# Backport PR #1852 to fix runtime issues for environments that don't have
# sysutils/screen installed but TERM set to "screen".
PATCH_SITES= https://github.com/ranger/ranger/commit/
PATCHFILES= 081e73152a9391211770fab56676d7d974413ae6.patch:-p1
MAINTAINER= linpct@gmail.com
COMMENT= File manager with VI key bindings
@ -28,7 +32,6 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e 's|setuptools|distutils.core|; \
s|share/man/man|man/man|; \
s|share/doc/ranger|${DOCSDIR}|; \
s|ranger.desktop|${PYTHON_PKGNAMEPREFIX}ranger.desktop|' ${WRKSRC}/${PYSETUP}
@${REINPLACE_CMD} -Ee 's|Exec=(ranger)|Exec=\1-${PYTHON_VER}|' ${WRKSRC}/doc/${PYTHON_PKGNAMEPREFIX}ranger.desktop

View File

@ -1,3 +1,5 @@
TIMESTAMP = 1543550380
SHA256 (ranger-1.9.2.tar.gz) = 0e1d1b1d3f78c227a6cfa783822e98591ca76a35c643d4814f40f73515d66b8a
SIZE (ranger-1.9.2.tar.gz) = 265295
TIMESTAMP = 1594637266
SHA256 (ranger-1.9.3.tar.gz) = ce088a04c91c25263a9675dc5c43514b7ec1b38c8ea43d9a9d00923ff6cdd251
SIZE (ranger-1.9.3.tar.gz) = 280363
SHA256 (081e73152a9391211770fab56676d7d974413ae6.patch) = 177c37def1aa1fe8575c0863b34d31aea050f6006f969c658debaf92487fd343
SIZE (081e73152a9391211770fab56676d7d974413ae6.patch) = 9192

View File

@ -1,10 +1,17 @@
--- ranger/ext/img_display.py.orig 2017-02-20 16:56:49.277878000 +0800
+++ ranger/ext/img_display.py 2017-02-20 17:00:01.700857000 +0800
@@ -25,6 +25,7 @@
Avoid hardcoded paths to w3mimgdisplay
--- ranger/ext/img_display.py.orig 2019-12-31 15:07:45 UTC
+++ ranger/ext/img_display.py
@@ -35,11 +35,7 @@ from ranger.core.shared import FileManagerAware
W3MIMGDISPLAY_ENV = "W3MIMGDISPLAY_PATH"
W3MIMGDISPLAY_OPTIONS = []
W3MIMGDISPLAY_PATHS = [
- '/usr/lib/w3m/w3mimgdisplay',
- '/usr/libexec/w3m/w3mimgdisplay',
- '/usr/lib64/w3m/w3mimgdisplay',
- '/usr/libexec64/w3m/w3mimgdisplay',
- '/usr/local/libexec/w3m/w3mimgdisplay',
+ '%%LOCALBASE%%/libexec/w3m/w3mimgdisplay',
'/usr/lib/w3m/w3mimgdisplay',
'/usr/libexec/w3m/w3mimgdisplay',
'/usr/lib64/w3m/w3mimgdisplay',
]
# Helper functions shared between the previewers (make them static methods of the base class?)