You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.3 KiB

  1. # $FreeBSD$
  2. PORTNAME= toot
  3. DISTVERSION= 0.27.0
  4. CATEGORIES= net-im python
  5. PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
  6. MAINTAINER= 0mp@FreeBSD.org
  7. COMMENT= Interact with the Mastodon social network from the command line
  8. LICENSE= GPLv3
  9. LICENSE_FILE= ${WRKSRC}/LICENSE
  10. RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.5.0:www/py-beautifulsoup@${PY_FLAVOR} \
  11. ${PYTHON_PKGNAMEPREFIX}requests>=2.13:www/py-requests@${PY_FLAVOR} \
  12. ${PYTHON_PKGNAMEPREFIX}wcwidth>=0.1.7:devel/py-wcwidth@${PY_FLAVOR} \
  13. ${PYTHON_PKGNAMEPREFIX}urwid>=2.0.0:devel/py-urwid@${PY_FLAVOR}
  14. TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.5.0:www/py-beautifulsoup@${PY_FLAVOR} \
  15. ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.4.0:devel/py-pytest-cov@${PY_FLAVOR} \
  16. ${PYTHON_PKGNAMEPREFIX}pytest>=3.0.0:devel/py-pytest@${PY_FLAVOR}
  17. USES= python:3.4+
  18. USE_GITHUB= yes
  19. GH_ACCOUNT= ihabunek
  20. USE_PYTHON= autoplist distutils
  21. TEST_TARGET= coverage test
  22. NO_ARCH= yes
  23. PORTDOCS= CHANGELOG.md README.rst
  24. OPTIONS_DEFINE= DOCS
  25. post-install-DOCS-on:
  26. @${MKDIR} ${STAGEDIR}${DOCSDIR}
  27. ${INSTALL_DATA} ${WRKSRC}/CHANGELOG.md ${STAGEDIR}${DOCSDIR}
  28. ${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR}
  29. pre-test:
  30. @${REINPLACE_CMD} -e 's|py.test |py.test-${PYTHON_VER} |' ${WRKSRC}/Makefile
  31. @${REINPLACE_CMD} -e 's|pytest |pytest-${PYTHON_VER} |' ${WRKSRC}/Makefile
  32. .include <bsd.port.mk>