if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
37 lines
930 B
Makefile
37 lines
930 B
Makefile
# $OpenBSD: Makefile,v 1.18 2021/02/23 19:39:35 sthen Exp $
|
|
|
|
COMMENT = interact with Mastodon social networks from the command line
|
|
|
|
MODPY_EGG_VERSION = 0.27.0
|
|
DISTNAME = toot-${MODPY_EGG_VERSION}
|
|
|
|
REVISION = 0
|
|
|
|
CATEGORIES = net
|
|
|
|
HOMEPAGE = https://github.com/ihabunek/toot
|
|
|
|
MAINTAINER = Klemens Nanni <kn@openbsd.org>
|
|
|
|
MASTER_SITES = https://github.com/ihabunek/toot/releases/download/${MODPY_EGG_VERSION}/
|
|
|
|
# GPLv3
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
MODPY_SETUPTOOLS = Yes
|
|
MODPY_PYTEST = Yes
|
|
|
|
RUN_DEPENDS = devel/py-future${MODPY_FLAVOR}>=0.16 \
|
|
devel/py-wcwidth${MODPY_FLAVOR}>=0.1.7 \
|
|
www/py-beautifulsoup4${MODPY_FLAVOR}>=4.5.0 \
|
|
www/py-requests${MODPY_FLAVOR}>=2.13 \
|
|
devel/py-urwid${MODPY_FLAVOR}>=2.0.0
|
|
TEST_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH} \
|
|
devel/py-test${MODPY_FLAVOR}>=3.0.0 \
|
|
devel/py-test-cov${MODPY_FLAVOR}>=2.4.0
|
|
|
|
MAKE_ENV = LC_CTYPE=C.UTF-8
|
|
|
|
.include <bsd.port.mk>
|