summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpm <cpm@FreeBSD.org>2017-01-01 13:01:53 +0000
committercpm <cpm@FreeBSD.org>2017-01-01 13:01:53 +0000
commitd16468161941c7105684c2f1fdf7f3ea01cfd735 (patch)
tree72e3d589ebcbd2a8c71c8e364f693a0ff02bdaa8
parentfe72324d350f73380656604a4542f0734b83ff4a (diff)
downloadFreeBSD-ports-d16468161941c7105684c2f1fdf7f3ea01cfd735.zip
FreeBSD-ports-d16468161941c7105684c2f1fdf7f3ea01cfd735.tar.gz
www/py-selenium: minor fixes
- Add LICENSE_FILE - Remove binary Firefox extensions - Bump PORTREVISION PR: 215624 Submitted by: cpm Reviewed by: amdmi3, junovitch (mentors) Approved by: douglas@douglasthrift.net (maintainer), amdmi3 (mentor)
-rw-r--r--www/py-selenium/Makefile7
-rw-r--r--www/py-selenium/files/patch-setup.py13
2 files changed, 20 insertions, 0 deletions
diff --git a/www/py-selenium/Makefile b/www/py-selenium/Makefile
index caef169..7e31f7e 100644
--- a/www/py-selenium/Makefile
+++ b/www/py-selenium/Makefile
@@ -3,6 +3,7 @@
PORTNAME= selenium
PORTVERSION= 3.0.2
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,6 +12,7 @@ MAINTAINER= douglas@douglasthrift.net
COMMENT= Python bindings for Selenium
LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
USES= python
USE_PYTHON= distutils autoplist
@@ -20,4 +22,9 @@ FIREFOX_DESC= Install Firefox
FIREFOX_USES= gecko:firefox
+# Don't install binary Firefox extension
+post-extract:
+ @${RM} ${WRKSRC}/py/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so
+ @${RM} ${WRKSRC}/py/selenium/webdriver/firefox/x86/x_ignore_nofocus.so
+
.include <bsd.port.mk>
diff --git a/www/py-selenium/files/patch-setup.py b/www/py-selenium/files/patch-setup.py
new file mode 100644
index 0000000..60eb421
--- /dev/null
+++ b/www/py-selenium/files/patch-setup.py
@@ -0,0 +1,13 @@
+--- setup.py.orig 2016-12-29 00:15:54 UTC
++++ setup.py
+@@ -71,9 +71,7 @@ setup_args = {
+ 'selenium.webdriver.firefox': ['*.xpi', 'webdriver_prefs.json'],
+ 'selenium.webdriver.remote': ['getAttribute.js', 'isDisplayed.js'],
+ },
+- 'data_files': [('selenium/webdriver/firefox/x86', ['py/selenium/webdriver/firefox/x86/x_ignore_nofocus.so']),
+- ('selenium/webdriver/firefox/amd64', ['py/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so']),
+- ('selenium/webdriver/remote', ['py/selenium/webdriver/remote/getAttribute.js']),
++ 'data_files': [('selenium/webdriver/remote', ['py/selenium/webdriver/remote/getAttribute.js']),
+ ('selenium/webdriver/remote', ['py/selenium/webdriver/remote/isDisplayed.js'])],
+ 'include_package_data': True,
+ 'zip_safe': False
OpenPOWER on IntegriCloud