add devel/lua-enum

This is a little module that simulates enumerated types in Lua.

Its API is very similar to the Python 3 Enum API, although much
more limited.
This commit is contained in:
nia 2022-03-06 09:16:21 +00:00
parent 28eda1e5a2
commit 01429804ae
5 changed files with 42 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3698 2022/02/26 12:30:18 pho Exp $
# $NetBSD: Makefile,v 1.3699 2022/03/06 09:16:21 nia Exp $
#
COMMENT= Development utilities
@ -979,6 +979,7 @@ SUBDIR+= lua-compat53
SUBDIR+= lua-cov
SUBDIR+= lua-coxpcall
SUBDIR+= lua-cqueues
SUBDIR+= lua-enum
SUBDIR+= lua-epnf
SUBDIR+= lua-event
SUBDIR+= lua-fifo

4
devel/lua-enum/DESCR Normal file
View file

@ -0,0 +1,4 @@
This is a little module that simulates enumerated types in Lua.
Its API is very similar to the Python 3 Enum API, although much
more limited.

29
devel/lua-enum/Makefile Normal file
View file

@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.1 2022/03/06 09:16:22 nia Exp $
DISTNAME= lua-enum-0.1.2
PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/^lua-//g}
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=stefano-m/}
GITHUB_PROJECT= lua-enum
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://stefano-m.github.io/lua-enum/
COMMENT= Enumerated Types for Lua
LICENSE= mit
NO_BUILD= yes
USE_LANGUAGES= # none
LUA_USE_BUSTED= yes
LUA_BUSTED_ARGS+= tests/enum_spec.lua
INSTALLATION_DIRS+= ${LUA_LDIR}/enum
do-install:
${INSTALL_LIB} ${WRKSRC}/src/enum/*.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/enum
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

2
devel/lua-enum/PLIST Normal file
View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2022/03/06 09:16:22 nia Exp $
${LUA_LDIR}/enum/init.lua

5
devel/lua-enum/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2022/03/06 09:16:22 nia Exp $
BLAKE2s (lua-enum-0.1.2.tar.gz) = d42b658fa65aa6cec61280bc434eca16bae1607acee6d451d65a1a224c800ba1
SHA512 (lua-enum-0.1.2.tar.gz) = f10cc83667410b3bf1b19dd6cafa132e185e348bb6116460bb14745c183260474889a6380122d3c5d6b52b22bf601935a63b92fd8f3f034c9b292acba1d75742
Size (lua-enum-0.1.2.tar.gz) = 13791 bytes