Edit

IABSD.fr/ports/net/py-telegram/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2023-01-26 12:57:56
    Hash : 77c488cf
    Message : update to py3-telegram-0.16.0, tested with net/tg patch to drop RDEP on setuptools, it's only used to locate the bundled linux/darwin libs which we remove anyway (there's a newer version, but it needs an extra dep)

  • net/py-telegram/Makefile
  • COMMENT =	Python wrapper for Telegram tdlib
    
    MODPY_EGG_VERSION =	0.16.0
    
    DISTNAME =	python-telegram-${MODPY_EGG_VERSION}
    PKGNAME =	${DISTNAME:S/^python-/py-/}
    
    CATEGORIES =	net
    
    HOMEPAGE =	https://github.com/alexander-akhmetov/python-telegram
    
    # MIT
    PERMIT_PACKAGE =	Yes
    
    MODULES =	lang/python
    
    MODPY_PI =	Yes
    MODPY_PYBUILD =	setuptools
    
    FLAVORS =	python3
    FLAVOR =	python3
    
    RUN_DEPENDS =	net/tdlib
    NO_TEST =	Yes
    
    # remove bundled binaries
    post-install:
    	rm -rf ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/telegram/lib
    
    .include <bsd.port.mk>