summaryrefslogtreecommitdiff
path: root/sysutils/py-python-crontab
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/py-python-crontab')
-rw-r--r--sysutils/py-python-crontab/Makefile37
-rw-r--r--sysutils/py-python-crontab/distinfo3
-rw-r--r--sysutils/py-python-crontab/pkg-descr4
3 files changed, 44 insertions, 0 deletions
diff --git a/sysutils/py-python-crontab/Makefile b/sysutils/py-python-crontab/Makefile
new file mode 100644
index 000000000000..b12273cfc947
--- /dev/null
+++ b/sysutils/py-python-crontab/Makefile
@@ -0,0 +1,37 @@
+# Created by: Steven Kreuzer <skreuzer@FreeBSD.org>
+# $FreeBSD$
+
+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 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} < 3700
+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>
diff --git a/sysutils/py-python-crontab/distinfo b/sysutils/py-python-crontab/distinfo
new file mode 100644
index 000000000000..e6d755a723b7
--- /dev/null
+++ b/sysutils/py-python-crontab/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1582976298
+SHA256 (doctormo-python-crontab-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0_GL0.tar.gz) = 1d1b744ff3ee337c229e992813d2c43829c2b58228e22ec19444a6fd19340805
+SIZE (doctormo-python-crontab-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0_GL0.tar.gz) = 45416
diff --git a/sysutils/py-python-crontab/pkg-descr b/sysutils/py-python-crontab/pkg-descr
new file mode 100644
index 000000000000..fb8fe546e19c
--- /dev/null
+++ b/sysutils/py-python-crontab/pkg-descr
@@ -0,0 +1,4 @@
+Module for reading and writing crontab files and accessing the system cron
+automatically and simply using a direct API.
+
+WWW: https://gitlab.com/doctormo/python-crontab