Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= ranger |
4 |
PORTNAME= ranger |
5 |
PORTVERSION= 1.9.2 |
5 |
PORTVERSION= 1.9.2 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= sysutils python |
7 |
CATEGORIES= sysutils python |
7 |
MASTER_SITES= https://ranger.github.io/ |
8 |
MASTER_SITES= https://ranger.github.io/ |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 11-25
Link Here
|
11 |
COMMENT= Ranger is a file manager with VI key bindings |
12 |
COMMENT= Ranger is a file manager with VI key bindings |
12 |
|
13 |
|
13 |
LICENSE= GPLv3 |
14 |
LICENSE= GPLv3 |
|
|
15 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
14 |
|
16 |
|
15 |
USES= python shebangfix |
17 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} |
|
|
18 |
|
19 |
USES= desktop-file-utils python shebangfix |
20 |
USE_PYTHON= autoplist concurrent distutils |
21 |
|
16 |
SHEBANG_FILES= doc/tools/*.py |
22 |
SHEBANG_FILES= doc/tools/*.py |
17 |
python_OLD_CMD= /bin/python |
23 |
|
18 |
USE_PYTHON= autoplist distutils |
|
|
19 |
NO_ARCH= yes |
24 |
NO_ARCH= yes |
20 |
|
25 |
|
|
|
26 |
post-extract: |
27 |
@${MV} ${WRKSRC}/doc/ranger.desktop ${WRKSRC}/doc/${PYTHON_PKGNAMEPREFIX}ranger.desktop |
28 |
|
21 |
post-patch: |
29 |
post-patch: |
22 |
@${REINPLACE_CMD} -e 's|setuptools|distutils.core|; s|share/man/man|man/man|;s|share/doc|doc|' ${WRKSRC}/${PYSETUP} |
30 |
@${REINPLACE_CMD} -e 's|setuptools|distutils.core|; \ |
|
|
31 |
s|share/man/man|man/man|; \ |
32 |
s|share/doc/ranger|${DOCSDIR}|; \ |
33 |
s|ranger.desktop|${PYTHON_PKGNAMEPREFIX}ranger.desktop|' ${WRKSRC}/${PYSETUP} |
34 |
@${REINPLACE_CMD} -Ee 's|Exec=(ranger)|Exec=\1-${PYTHON_VER}|' ${WRKSRC}/doc/${PYTHON_PKGNAMEPREFIX}ranger.desktop |
23 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/ranger/ext/img_display.py |
35 |
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/ranger/ext/img_display.py |
24 |
|
36 |
|
|
|
37 |
do-test: |
38 |
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v |
39 |
|
25 |
.include <bsd.port.mk> |
40 |
.include <bsd.port.mk> |