svn commit: r430251 - in head/www/py-selenium: . files

Carlos J. Puga Medina cpm at FreeBSD.org
Sun Jan 1 13:01:54 UTC 2017


Author: cpm
Date: Sun Jan  1 13:01:53 2017
New Revision: 430251
URL: https://svnweb.freebsd.org/changeset/ports/430251

Log:
  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 at douglasthrift.net (maintainer), amdmi3 (mentor)

Added:
  head/www/py-selenium/files/
  head/www/py-selenium/files/patch-setup.py   (contents, props changed)
Modified:
  head/www/py-selenium/Makefile

Modified: head/www/py-selenium/Makefile
==============================================================================
--- head/www/py-selenium/Makefile	Sun Jan  1 12:56:57 2017	(r430250)
+++ head/www/py-selenium/Makefile	Sun Jan  1 13:01:53 2017	(r430251)
@@ -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 at 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>

Added: head/www/py-selenium/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-selenium/files/patch-setup.py	Sun Jan  1 13:01:53 2017	(r430251)
@@ -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


More information about the svn-ports-head mailing list