- Patch ext/img_display.py with correct lib path [1]
- Convert to staging PR: ports/186469 [1] Submitted by: Jin-Sih Lin <linpct@gmail.com> (maintainer) [1]
This commit is contained in:
parent
9996bb877b
commit
92810818b4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342738
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= ranger
|
||||
PORTVERSION= 1.6.1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils python
|
||||
MASTER_SITES= http://ranger.nongnu.org/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -13,10 +14,8 @@ COMMENT= Ranger is a file manager with VI key bindings
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
MAN1= ranger.1 rifle.1
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|setuptools|distutils.core|; s|share/man/man|man/man|;s|share/doc|doc|' ${WRKSRC}/${PYSETUP}
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/ranger/ext/img_display.py
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
sysutils/py-ranger/files/patch-img_display.py
Normal file
11
sysutils/py-ranger/files/patch-img_display.py
Normal file
@ -0,0 +1,11 @@
|
||||
--- ranger/ext/img_display.py.orig 2014-02-05 11:33:29.000000000 +0800
|
||||
+++ ranger/ext/img_display.py 2014-02-05 11:34:00.000000000 +0800
|
||||
@@ -13,7 +13,7 @@
|
||||
import termios, fcntl, struct, sys, os
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
-W3MIMGDISPLAY_PATH = '/usr/lib/w3m/w3mimgdisplay'
|
||||
+W3MIMGDISPLAY_PATH = '%%LOCALBASE%%/libexec/w3m/w3mimgdisplay'
|
||||
W3MIMGDISPLAY_OPTIONS = []
|
||||
|
||||
class ImgDisplayUnsupportedException(Exception):
|
@ -24,6 +24,8 @@ doc/ranger/examples/rifle_sxiv.sh
|
||||
doc/ranger/examples/vim_file_chooser.vim
|
||||
doc/ranger/tools/print_colors.py
|
||||
doc/ranger/tools/print_keys.py
|
||||
man/man1/ranger.1.gz
|
||||
man/man1/rifle.1.gz
|
||||
%%PYTHON_SITELIBDIR%%/ranger/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/ranger/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/ranger/__init__.pyo
|
||||
@ -263,3 +265,4 @@ doc/ranger/tools/print_keys.py
|
||||
@dirrm doc/ranger/config/colorschemes
|
||||
@dirrm doc/ranger/config
|
||||
@dirrm doc/ranger
|
||||
@dirrmtry doc
|
||||
|
Loading…
Reference in New Issue
Block a user