COMMENT = module for interacting with various Steam features
MODPY_EGG_VERSION = 1.3.0
DISTNAME = steam-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = games
HOMEPAGE = https://github.com/ValvePython/steam
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
RUN_DEPENDS = converters/py-vdf${MODPY_FLAVOR} \
devel/py-cachetools${MODPY_FLAVOR} \
devel/py-gevent${MODPY_FLAVOR} \
devel/py-gevent-eventemitter${MODPY_FLAVOR} \
devel/py-protobuf${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
security/py-cryptodome${MODPY_FLAVOR} \
www/py-requests${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR = python3
# tests not included in pypi tarball
NO_TEST = Yes
FIX_EXTRACT_PERMISSIONS = Yes
# fix namespace (module name) for security/py-cryptodome
post-extract:
find ${WRKSRC} -type f -name "*.py" -exec \
sed -i 's,Cryptodome,Crypto,g' {} +
.include <bsd.port.mk>