aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2014-02-05 23:55:17 +0800
committerswills <swills@FreeBSD.org>2014-02-05 23:55:17 +0800
commit233aef88a57f1b6935d120a7dc13a100fd755c84 (patch)
tree12d2732df7db67d427d7d0ade70334815a53d01c /sysutils
parent3fbe44cfce69338071f9ac57e87a4a52616ee6cd (diff)
downloadfreebsd-ports-gnome-233aef88a57f1b6935d120a7dc13a100fd755c84.tar.gz
freebsd-ports-gnome-233aef88a57f1b6935d120a7dc13a100fd755c84.tar.zst
freebsd-ports-gnome-233aef88a57f1b6935d120a7dc13a100fd755c84.zip
- 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]
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/py-ranger/Makefile5
-rw-r--r--sysutils/py-ranger/files/patch-img_display.py11
-rw-r--r--sysutils/py-ranger/pkg-plist3
3 files changed, 16 insertions, 3 deletions
diff --git a/sysutils/py-ranger/Makefile b/sysutils/py-ranger/Makefile
index fe63360c9230..db116f3174ff 100644
--- a/sysutils/py-ranger/Makefile
+++ b/sysutils/py-ranger/Makefile
@@ -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>
diff --git a/sysutils/py-ranger/files/patch-img_display.py b/sysutils/py-ranger/files/patch-img_display.py
new file mode 100644
index 000000000000..1bcd66e51fec
--- /dev/null
+++ b/sysutils/py-ranger/files/patch-img_display.py
@@ -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):
diff --git a/sysutils/py-ranger/pkg-plist b/sysutils/py-ranger/pkg-plist
index b8c17a079894..e12a5b7353a2 100644
--- a/sysutils/py-ranger/pkg-plist
+++ b/sysutils/py-ranger/pkg-plist
@@ -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