diff options
author | nia <nia@pkgsrc.org> | 2020-07-08 11:13:40 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-07-08 11:13:40 +0000 |
commit | d5b26d63fc3667b1ca057775def47e61e635854d (patch) | |
tree | 7cecf01a464f5f0257690d84070d030af85726fb /time | |
parent | 4b772e59c8de1b0b377cc7e23d0670f8fc769b40 (diff) | |
download | pkgsrc-d5b26d63fc3667b1ca057775def47e61e635854d.tar.gz |
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 (limited to 'time')
-rw-r--r-- | time/Makefile | 3 | ||||
-rw-r--r-- | time/lua-tz/DESCR | 10 | ||||
-rw-r--r-- | time/lua-tz/Makefile | 26 | ||||
-rw-r--r-- | time/lua-tz/PLIST | 9 | ||||
-rw-r--r-- | time/lua-tz/distinfo | 6 |
5 files changed, 53 insertions, 1 deletions
diff --git a/time/Makefile b/time/Makefile index aa95adbe04d..428445bf8ea 100644 --- a/time/Makefile +++ b/time/Makefile @@ -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+= libical SUBDIR+= lmclock SUBDIR+= logtime SUBDIR+= lua-date +SUBDIR+= lua-tz SUBDIR+= memo SUBDIR+= ntpsec SUBDIR+= ocaml-calendar diff --git a/time/lua-tz/DESCR b/time/lua-tz/DESCR new file mode 100644 index 00000000000..251aff34c8f --- /dev/null +++ b/time/lua-tz/DESCR @@ -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 --git a/time/lua-tz/Makefile b/time/lua-tz/Makefile new file mode 100644 index 00000000000..0af6f83d92d --- /dev/null +++ b/time/lua-tz/Makefile @@ -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 +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 --git a/time/lua-tz/PLIST b/time/lua-tz/PLIST new file mode 100644 index 00000000000..cf85ca07c1c --- /dev/null +++ b/time/lua-tz/PLIST @@ -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 --git a/time/lua-tz/distinfo b/time/lua-tz/distinfo new file mode 100644 index 00000000000..d8bafa15460 --- /dev/null +++ b/time/lua-tz/distinfo @@ -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 |