mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
c5c5aa5c43
This Python module returns a tzinfo object with the local timezone information under Unix and Win-32. It requires pytz, and returns pytz tzinfo objects. This module attempts to fix a glaring hole in pytz, that there is no way to get the local timezone information, unless you know the zoneinfo name, and under several Linux distros that's hard or impossible to figure out. WWW: https://pypi.python.org/pypi/tzlocal PR: 191659 Submitted by: melvyn magemana nl
35 lines
663 B
Makefile
35 lines
663 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tzlocal
|
|
PORTVERSION= 1.1.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= melvyn@magemana.nl
|
|
COMMENT= Returns the tzinfo object for the local timezone
|
|
|
|
LICENSE= CC0-1.0
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz
|
|
|
|
OPTIONS_DEFINE= TEST
|
|
OPTIONS_DEFAULT= TEST
|
|
TEST_DESC= Run test suite
|
|
|
|
USES= zip
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
|
|
|
.if !empty(PORT_OPTIONS:MTEST)
|
|
pre-install: regression-test
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|