06cbb6786d
- Update to 2.2 - Add LICENSE_FILE - Update COMMENT (Via setup.py) - Fix RUN_DEPENDS assignment - Modernise Python framework entries - Canonicalise regression-test - Patch setup.py to support `test` command - Remove unecessary patch to dateutil/__init__.py (unicode -> plain) Changes: 2.2 * Updated zoneinfo to 2013h * fuzzy_with_tokens parse addon * Bug with LANG=C fixed QA: Ran 492 tests in 0.688s - OK (Python 2.7 / 3.4)
31 lines
834 B
Makefile
31 lines
834 B
Makefile
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dateutil
|
|
PORTVERSION= 2.2
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= python-dateutil-${PORTVERSION}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= Extensions to the standard Python datetime module
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
# Fix incorrect permissions
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -type f -exec ${CHMOD} 644 {} ";"
|
|
@${REINPLACE_CMD} -e 's|import winreg|from six.moves import winreg|' ${WRKSRC}/dateutil/tzwin.py
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|