Edit

IABSD.fr/ports/games/py-steam/Makefile

Branch :

  • Show log

    Commit

  • Author : thfr
    Date : 2022-06-11 13:16:12
    Hash : 7bdb3124
    Message : update to py-steam 1.3.0; catching up with Steam API and restoring ability to download depots

  • games/py-steam/Makefile
  • 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>