sthen 248932be74 switch MODPY_BIN_SUFFIX to -2 for py2 and (blank) for py3
switch ports using command-line tools from py-sphinx that don't need a
py2 version of it to py3-sphinx
2021-02-19 23:13:00 +00:00

32 lines
602 B
Makefile

# $OpenBSD: Makefile,v 1.9 2021/02/19 23:13:01 sthen Exp $
COMMENT = Python utility / library to sort Python imports
MODPY_EGG_VERSION = 4.2.15
DISTNAME = isort-${MODPY_EGG_VERSION}
PKGNAME = py-isort-${MODPY_EGG_VERSION}
REVISION = 3
CATEGORIES = devel
HOMEPAGE = https://github.com/timothycrosley/isort
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=
TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR} \
devel/py-test${MODPY_FLAVOR}
post-install:
mv ${PREFIX}/bin/isort{,${MODPY_BIN_SUFFIX}}
.include <bsd.port.mk>