# Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= dateutil PORTVERSION= 2.1 PORTREVISION= 2 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= python-dateutil-${PORTVERSION} MAINTAINER= nivit@FreeBSD.org COMMENT= Provides powerful extensions to the standard datetime module LICENSE= BSD BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six RUN_DEPENDS+= ${BUILD_DEPENDS} USE_PYTHON= yes USE_PYDISTUTILS= easy_install PYDISTUTILS_PKGNAME= python-dateutil # Fix incorrect permissions NO_STAGE= yes post-patch: @${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 .include