mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
PR: 255013 Differential Revision: https://reviews.freebsd.org/D29418 Exp-run by: antoine Approved by: wen@, no objection from python@ or portmgr@
36 lines
1 KiB
Makefile
36 lines
1 KiB
Makefile
# Created by: Steven Kreuzer <skreuzer@FreeBSD.org>
|
|
|
|
PORTNAME= python-crontab
|
|
PORTVERSION= 2.4.0
|
|
CATEGORIES= sysutils python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= skreuzer@FreeBSD.org
|
|
COMMENT= Read and write crontab files using a direct API
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:devel/py-dateutil@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}croniter>0:sysutils/py-croniter@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}cron-descriptor>0:sysutils/py-cron-descriptor@${PY_FLAVOR}
|
|
|
|
USES= python:3.6+ shebangfix
|
|
SHEBANG_FILES= ${WRKSRC}/tests/data/crontest
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
USE_GITLAB= yes
|
|
GL_ACCOUNT= doctormo
|
|
GL_COMMIT= ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# The UTF-8 mode is enabled by default when the locale is C since Python 3.7.
|
|
.if ${PYTHON_REL} < 30700
|
|
TEST_ENV+= LC_ALL=C.UTF-8
|
|
.endif
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.post.mk>
|