summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-07-08 11:03:56 +0000
committernia <nia@pkgsrc.org>2020-07-08 11:03:56 +0000
commitbfeb3de5fd84288a52ccaec5102ece7ea3082255 (patch)
treeafd29c1e7709c020163dea9fe4e77092cca25159 /time
parente9742e7c7f40578924230a4e1aa8dcd5bf17a7d8 (diff)
downloadpkgsrc-bfeb3de5fd84288a52ccaec5102ece7ea3082255.tar.gz
time: Add lua-date
Date and Time module for Lua 5.x. Features: * Date and Time string parsing. * Time addition and subtraction. * Time span calculation. * Support ISO 8601 Dates. * Local time support. * Lua module (not binary). * Formats Date and Time like strftime.
Diffstat (limited to 'time')
-rw-r--r--time/Makefile3
-rw-r--r--time/lua-date/DESCR11
-rw-r--r--time/lua-date/Makefile26
-rw-r--r--time/lua-date/PLIST2
-rw-r--r--time/lua-date/distinfo6
5 files changed, 47 insertions, 1 deletions
diff --git a/time/Makefile b/time/Makefile
index 36c448cd4ef..aa95adbe04d 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.208 2020/07/01 15:57:35 adam Exp $
+# $NetBSD: Makefile,v 1.209 2020/07/08 11:03:56 nia Exp $
#
COMMENT= Clocks, calendars, daily planners and other time related applications
@@ -50,6 +50,7 @@ SUBDIR+= leapsunpack
SUBDIR+= libical
SUBDIR+= lmclock
SUBDIR+= logtime
+SUBDIR+= lua-date
SUBDIR+= memo
SUBDIR+= ntpsec
SUBDIR+= ocaml-calendar
diff --git a/time/lua-date/DESCR b/time/lua-date/DESCR
new file mode 100644
index 00000000000..2fd9aa5e0be
--- /dev/null
+++ b/time/lua-date/DESCR
@@ -0,0 +1,11 @@
+Date and Time module for Lua 5.x.
+
+Features:
+
+* Date and Time string parsing.
+* Time addition and subtraction.
+* Time span calculation.
+* Support ISO 8601 Dates.
+* Local time support.
+* Lua module (not binary).
+* Formats Date and Time like strftime.
diff --git a/time/lua-date/Makefile b/time/lua-date/Makefile
new file mode 100644
index 00000000000..622aed5bebd
--- /dev/null
+++ b/time/lua-date/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 11:03:57 nia Exp $
+
+DISTNAME= lua-date-2.1.2
+PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+CATEGORIES= time lua
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Tieske/}
+GITHUB_PROJECT= date
+GITHUB_TAG= version_${PKGVERSION_NOREV}
+
+MAINTAINER= nia@NetBSD.org
+HOMEPAGE= https://tieske.github.io/date/
+COMMENT= Date and Time module for Lua 5.x
+LICENSE= mit
+
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
+USE_LANGUAGES= # none
+NO_BUILD= yes
+
+INSTALLATION_DIRS+= ${LUA_LDIR}
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/date.lua \
+ ${DESTDIR}${PREFIX}/${LUA_LDIR}/date.lua
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/time/lua-date/PLIST b/time/lua-date/PLIST
new file mode 100644
index 00000000000..2f10429b17f
--- /dev/null
+++ b/time/lua-date/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 11:03:57 nia Exp $
+${LUA_LDIR}/date.lua
diff --git a/time/lua-date/distinfo b/time/lua-date/distinfo
new file mode 100644
index 00000000000..fcdbf91096d
--- /dev/null
+++ b/time/lua-date/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 11:03:57 nia Exp $
+
+SHA1 (lua-date-2.1.2.tar.gz) = ac449681948f739e1c12eb3b946ed075efcf7929
+RMD160 (lua-date-2.1.2.tar.gz) = db032c48cbc9ae51dab5199e6955aa29403edf62
+SHA512 (lua-date-2.1.2.tar.gz) = 78b85b05e2d3b41af024baae83b29f4deadbf2501d6a8c50017f9bc4125c53c83c821e415536b4b9f35b6025051af3d8e24eb93e47b0f36eeec62444c03ed364
+Size (lua-date-2.1.2.tar.gz) = 31018 bytes