Makefile 928 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Created by: Douglas Thrift <douglas@douglasthrift.net>
  2. # $FreeBSD$
  3. PORTNAME= selenium
  4. PORTVERSION= 3.141.0
  5. PORTREVISION= 1
  6. CATEGORIES= www python
  7. MASTER_SITES= CHEESESHOP
  8. PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
  9. MAINTAINER= douglas@douglasthrift.net
  10. COMMENT= Python bindings for Selenium
  11. LICENSE= APACHE20
  12. LICENSE_FILE= ${WRKSRC}/LICENSE
  13. RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR}
  14. USES= python
  15. USE_PYTHON= autoplist distutils
  16. NO_ARCH= yes
  17. OPTIONS_DEFINE= FIREFOX CHROMIUM
  18. FIREFOX_DESC= Install Firefox and geckodriver
  19. CHROMIUM_DESC= Install Chromium
  20. FIREFOX_RUN_DEPENDS= firefox:www/firefox geckodriver:www/geckodriver
  21. CHROMIUM_RUN_DEPENDS= chromedriver:www/chromium
  22. # Don't install binary Firefox extension
  23. post-extract:
  24. @${RM} ${WRKSRC}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so
  25. @${RM} ${WRKSRC}/selenium/webdriver/firefox/x86/x_ignore_nofocus.so
  26. .include <bsd.port.mk>