Fixes some crashes due to python 3.6/3.7. Introducing native Kitty image previews and a dired-filter inspired filter stack. Replace post-install with setup.py patch, massage test suite. OK rsadowski sthen
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.8 2018/10/02 10:11:53 kn Exp $
|
|
|
|
COMMENT = minimalistic console file manager
|
|
|
|
MODPY_EGG_VERSION = 1.9.2
|
|
DISTNAME = ranger-${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES = sysutils misc
|
|
|
|
HOMEPAGE = https://ranger.github.io/
|
|
|
|
MAINTAINER = Klemens Nanni <kn@openbsd.org>
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = https://ranger.github.io/
|
|
|
|
MODULES = lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
|
|
MODPY_ADJ_FILES = tests/manpage_completion_test.py
|
|
|
|
# libarchive (bsdtar) used as an alternative to atool
|
|
RUN_DEPENDS = archivers/libarchive \
|
|
devel/desktop-file-utils \
|
|
shells/bash \
|
|
textproc/py-chardet${MODPY_FLAVOR}
|
|
# XXX: ranger/gui/widgets/console.py test depends on devel/py-astroid>=1.5.0:
|
|
# AttributeError: 'TreeRebuilder3k' object has no attribute 'visit_joinedstr'
|
|
TEST_DEPENDS = devel/flake8 \
|
|
devel/pylint${MODPY_FLAVOR}<2.0.0 \
|
|
devel/py-test${MODPY_FLAVOR}
|
|
|
|
TEST_ENV = HOME=${WRKDIR} \
|
|
PYTHON=${MODPY_BIN} \
|
|
TERM=${TERM}
|
|
|
|
# tests
|
|
USE_GMAKE = Yes
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/{doc/ranger.1,ranger/ext/img_display.py}
|
|
|
|
pre-test:
|
|
.for _p in py.test pylint
|
|
ln -sf ${LOCALBASE}/bin/${_p}${MODPY_BIN_SUFFIX} \
|
|
${WRKDIR}/bin/${_p}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|