summaryrefslogtreecommitdiff
path: root/sysutils/py-python-crontab
diff options
context:
space:
mode:
authorFukang Chen <loader@FreeBSD.org>2020-03-31 01:41:29 +0000
committerFukang Chen <loader@FreeBSD.org>2020-03-31 01:41:29 +0000
commitb8f558f391706132619f0be2907a14de9ddca5c5 (patch)
tree376b69bc677de2686e420df366adaed260d9d358 /sysutils/py-python-crontab
parentAdd compiler:c++11-lang to USES to fix build on GCC-based systems: (diff)
sysutils/py-crontab: Rename to python-crontab, Update to 2.4.0
- Rename the port to match the canonical/registered (PyPI/CHEESESHOP) name - Switch from CHEESESHOP to GitLab for complete tests data - Update the project website URL in pkg-descr - Add LICENSE_FILE - Add sysutils/py-cron-descriptor to RUN_DEPENDS - Add test target Reviewed by: koobs Approved by: koobs (ports, mentor), portmgr (maintainer timeout: > 2 weeks) Differential Revision: https://reviews.freebsd.org/D23968
Notes
Notes: svn path=/head/; revision=529940
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