svn commit: r510958 - in head/devel: . py-convertdate

Dan Langille dvl at FreeBSD.org
Tue Sep 3 16:00:46 UTC 2019


Author: dvl
Date: Tue Sep  3 16:00:44 2019
New Revision: 510958
URL: https://svnweb.freebsd.org/changeset/ports/510958

Log:
  Add py-convertdate
  
  Converts between Gregorian dates and other calendar systems.
  
  Submitted by:	Gilbert Morgan <gmm at tutanota.com> (via private email)

Added:
  head/devel/py-convertdate/
  head/devel/py-convertdate/Makefile   (contents, props changed)
  head/devel/py-convertdate/distinfo   (contents, props changed)
  head/devel/py-convertdate/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Sep  3 15:58:26 2019	(r510957)
+++ head/devel/Makefile	Tue Sep  3 16:00:44 2019	(r510958)
@@ -4316,6 +4316,7 @@
     SUBDIR += py-constantly
     SUBDIR += py-construct
     SUBDIR += py-contextlib2
+    SUBDIR += py-convertdate
     SUBDIR += py-cookiecutter
     SUBDIR += py-coreapi
     SUBDIR += py-coreschema

Added: head/devel/py-convertdate/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-convertdate/Makefile	Tue Sep  3 16:00:44 2019	(r510958)
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME=	convertdate
+PORTVERSION=	2.1.3
+CATEGORIES=	devel
+MASTER_SITES=	https://files.pythonhosted.org/packages/81/73/287ef9e7989661ed8218fe074603041d2ea6d76e06afebe1c646a7fd9d65/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	gmm at tutanota.com
+COMMENT=	Converts between Gregorian dates and other calendar systems
+
+LICENSE=	MIT
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pyephem>0:astro/pyephem@${PY_FLAVOR}
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR}
+
+NO_ARCH=	yes
+
+post-patch:
+	${RM}    ${WRKSRC}/README.rst
+	${TOUCH} ${WRKSRC}/README.rst
+
+.include <bsd.port.mk>

Added: head/devel/py-convertdate/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-convertdate/distinfo	Tue Sep  3 16:00:44 2019	(r510958)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1567194792
+SHA256 (convertdate-2.1.3.tar.gz) = c3ca5ba66b31e29d2732bdb361422ed804d3b22c115659d05a43d1fc527b9773
+SIZE (convertdate-2.1.3.tar.gz) = 28903

Added: head/devel/py-convertdate/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-convertdate/pkg-descr	Tue Sep  3 16:00:44 2019	(r510958)
@@ -0,0 +1,24 @@
+Converts between Gregorian dates and other calendar systems. Calendars include:
+
+* Baha'i
+* French Republican
+* Hebrew
+* Indian Civil
+* Islamic
+* ISO
+* Julian
+* Mayan
+* Persian.
+
+The holidays module also provides some useful holiday-calculation, with a focus
+on North American and Jewish holidays. Note that in some calendar systems, the
+day begins at sundown. Convertdate uses noon of the day in question.
+
+from convertdate import french_republican
+from convertdate import hebrew
+french_republican.from_gregorian(2014, 10, 31)
+# (223, 2, 1, 9)
+hebrew.from_gregorian(2014, 10, 31)
+# (5775, 8, 7)
+
+WWW: https://github.com/fitnr/convertdate


More information about the svn-ports-head mailing list