sthen d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00

52 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2019/04/28 20:51:54 sthen Exp $
COMMENT = minimalistic console file manager
MODPY_EGG_VERSION = 1.9.2
DISTNAME = ranger-${MODPY_EGG_VERSION}
REVISION = 0
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>