Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time time: Add lua-tz



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dcc82922bb82
branches:  trunk
changeset: 435469:dcc82922bb82
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 11:13:40 2020 +0000

description:
time: Add lua-tz

A lua library for time and date manipulation.

Features include:

  - Normalisation of broken down date objects
          - allows for complex time/date manipulation logic, e.g.
            "What day is it in 2 days, 5 hours from now?"
  - Conversion between locations (time zones) using your local
    zoneinfo database.
  - `strftime` style formatting

diffstat:

 time/Makefile        |   3 ++-
 time/lua-tz/DESCR    |  10 ++++++++++
 time/lua-tz/Makefile |  26 ++++++++++++++++++++++++++
 time/lua-tz/PLIST    |   9 +++++++++
 time/lua-tz/distinfo |   6 ++++++
 5 files changed, 53 insertions(+), 1 deletions(-)

diffs (84 lines):

diff -r 9ea04fe76989 -r dcc82922bb82 time/Makefile
--- a/time/Makefile     Wed Jul 08 11:04:11 2020 +0000
+++ b/time/Makefile     Wed Jul 08 11:13:40 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.209 2020/07/08 11:03:56 nia Exp $
+# $NetBSD: Makefile,v 1.210 2020/07/08 11:13:40 nia Exp $
 #
 
 COMMENT=       Clocks, calendars, daily planners and other time related applications
@@ -51,6 +51,7 @@
 SUBDIR+=       lmclock
 SUBDIR+=       logtime
 SUBDIR+=       lua-date
+SUBDIR+=       lua-tz
 SUBDIR+=       memo
 SUBDIR+=       ntpsec
 SUBDIR+=       ocaml-calendar
diff -r 9ea04fe76989 -r dcc82922bb82 time/lua-tz/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/lua-tz/DESCR Wed Jul 08 11:13:40 2020 +0000
@@ -0,0 +1,10 @@
+A lua library for time and date manipulation.
+
+Features include:
+
+  - Normalisation of broken down date objects
+         - allows for complex time/date manipulation logic, e.g.
+            "What day is it in 2 days, 5 hours from now?"
+  - Conversion between locations (time zones) using your local
+    zoneinfo database.
+  - `strftime` style formatting
diff -r 9ea04fe76989 -r dcc82922bb82 time/lua-tz/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/lua-tz/Makefile      Wed Jul 08 11:13:40 2020 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 11:13:40 nia Exp $
+
+DISTNAME=      lua-tz-0.4.1
+PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+CATEGORIES=    time lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=daurnimator/}
+GITHUB_PROJECT=        luatz
+GITHUB_TAG=    v0.4-1
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://daurnimator.github.io/luatz/
+COMMENT=       Lua library for time and date manipulation
+LICENSE=       mit
+
+WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG:S/^v//1}
+USE_LANGUAGES= # none
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}/luatz
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/luatz/* \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/luatz
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 9ea04fe76989 -r dcc82922bb82 time/lua-tz/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/lua-tz/PLIST Wed Jul 08 11:13:40 2020 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 11:13:40 nia Exp $
+${LUA_LDIR}/luatz/gettime.lua
+${LUA_LDIR}/luatz/init.lua
+${LUA_LDIR}/luatz/parse.lua
+${LUA_LDIR}/luatz/strftime.lua
+${LUA_LDIR}/luatz/timetable.lua
+${LUA_LDIR}/luatz/tzcache.lua
+${LUA_LDIR}/luatz/tzfile.lua
+${LUA_LDIR}/luatz/tzinfo.lua
diff -r 9ea04fe76989 -r dcc82922bb82 time/lua-tz/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/lua-tz/distinfo      Wed Jul 08 11:13:40 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 11:13:40 nia Exp $
+
+SHA1 (lua-tz-0.4.1.tar.gz) = cec68ed8b22b5d397ce69a6dd5706994fb4cd7ac
+RMD160 (lua-tz-0.4.1.tar.gz) = c97e7c9a0b1471388333581a8cf6fe8253eba982
+SHA512 (lua-tz-0.4.1.tar.gz) = 87e53afa85aa66cc0359d9581eb3dd9974f6ceb11cb57b0bfc6745d9bb1b6dbc90520fb6834e5de85b7fc46ff44c5d35dfd7136547a1973585f8cbf8707b45d1
+Size (lua-tz-0.4.1.tar.gz) = 19297 bytes



Home | Main Index | Thread Index | Old Index