svn commit: r317532 - head/devel/py-dateutil

Antoine Brodin antoine at FreeBSD.org
Mon May 6 16:57:14 UTC 2013


Author: antoine
Date: Mon May  6 16:57:13 2013
New Revision: 317532
URL: http://svnweb.freebsd.org/changeset/ports/317532

Log:
  Install zoneinfo--latest.tar.gz with good permissions
  Try to import the right module (_winreg not winreg) when using python2
  
  PR:		ports/178059
  Approved by:	maintainer timeout (2 weeks), eadler (mentor)

Modified:
  head/devel/py-dateutil/Makefile

Modified: head/devel/py-dateutil/Makefile
==============================================================================
--- head/devel/py-dateutil/Makefile	Mon May  6 16:29:48 2013	(r317531)
+++ head/devel/py-dateutil/Makefile	Mon May  6 16:57:13 2013	(r317532)
@@ -3,7 +3,7 @@
 
 PORTNAME=	dateutil
 PORTVERSION=	2.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -23,7 +23,8 @@ PYDISTUTILS_PKGNAME=	python-dateutil
 
 # Fix incorrect permissions
 post-patch:
-	@${FIND} ${WRKSRC}/python_dateutil.egg-info -type f -exec ${CHMOD} ${SHAREMODE} {} ";"
+	@${FIND} ${WRKSRC} -type f -exec ${CHMOD} ${SHAREMODE} {} ";"
+	@${REINPLACE_CMD} -e 's|import winreg|from six.moves import winreg|' ${WRKSRC}/dateutil/tzwin.py
 
 regression-test: build
 	@cd ${WRKSRC} && ${PYTHON_CMD} test.py


More information about the svn-ports-all mailing list