summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MOVED1
-rw-r--r--sysutils/Makefile2
-rw-r--r--sysutils/py-crontab/Makefile22
-rw-r--r--sysutils/py-crontab/distinfo2
-rw-r--r--sysutils/py-python-crontab/Makefile37
-rw-r--r--sysutils/py-python-crontab/distinfo3
-rw-r--r--sysutils/py-python-crontab/pkg-descr (renamed from sysutils/py-crontab/pkg-descr)2
7 files changed, 43 insertions, 26 deletions
diff --git a/MOVED b/MOVED
index b6dcd923abbc..eee0d9b14ffa 100644
--- a/MOVED
+++ b/MOVED
@@ -14506,3 +14506,4 @@ devel/sonarqube|devel/sonarqube-community|2020-03-26|Moved to make it clear that
devel/sonar-ant-task|devel/sonarqube-ant-task|2020-03-26|Moved due to name change upstream
devel/rubygem-slack-notifier1|devel/rubygem-slack-notifier|2020-03-30|Obsolete, please use devel/rubygem-slack-notifier instead
textproc/rubygem-diffy31|textproc/rubygem-diffy|2020-03-30|Obsolete, please use textproc/rubygem-diffy instead
+sysutils/py-crontab|sysutils/py-python-crontab|2020-03-31|Match canonical/registered (PyPI/CHEESESHOP) name
diff --git a/sysutils/Makefile b/sysutils/Makefile
index c0ef7a0d2322..b420080bad20 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -968,7 +968,6 @@
SUBDIR += py-cpuinfo
SUBDIR += py-cron-descriptor
SUBDIR += py-croniter
- SUBDIR += py-crontab
SUBDIR += py-diffoscope
SUBDIR += py-dirsync
SUBDIR += py-distro
@@ -1004,6 +1003,7 @@
SUBDIR += py-psutil121
SUBDIR += py-ptyprocess
SUBDIR += py-python-consul
+ SUBDIR += py-python-crontab
SUBDIR += py-python-nomad
SUBDIR += py-pytsk
SUBDIR += py-pywatchman
diff --git a/sysutils/py-crontab/Makefile b/sysutils/py-crontab/Makefile
deleted file mode 100644
index e6b4d4fb4d39..000000000000
--- a/sysutils/py-crontab/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-# Created by: Steven Kreuzer <skreuzer@FreeBSD.org>
-# $FreeBSD$
-
-PORTNAME= crontab
-PORTVERSION= 1.9.5
-CATEGORIES= sysutils python
-MASTER_SITES= CHEESESHOP
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= python-${PORTNAME}-${PORTVERSION}
-
-MAINTAINER= skreuzer@FreeBSD.org
-COMMENT= Read and write crontab files using a direct API
-
-LICENSE= GPLv3
-
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:devel/py-dateutil@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}croniter>0:sysutils/py-croniter@${PY_FLAVOR}
-
-USES= python
-USE_PYTHON= autoplist distutils
-
-.include <bsd.port.mk>
diff --git a/sysutils/py-crontab/distinfo b/sysutils/py-crontab/distinfo
deleted file mode 100644
index 453c5369dbec..000000000000
--- a/sysutils/py-crontab/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (python-crontab-1.9.5.tar.gz) = 7c96916dcef835f02ab62b3f648285658700aa916ae663bf37952faf5eea9b2c
-SIZE (python-crontab-1.9.5.tar.gz) = 31765
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-crontab/pkg-descr b/sysutils/py-python-crontab/pkg-descr
index 3c60292fb05e..fb8fe546e19c 100644
--- a/sysutils/py-crontab/pkg-descr
+++ b/sysutils/py-python-crontab/pkg-descr
@@ -1,4 +1,4 @@
Module for reading and writing crontab files and accessing the system cron
automatically and simply using a direct API.
-WWW: https://pypi.org/project/crontab/
+WWW: https://gitlab.com/doctormo/python-crontab