pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel add devel/lua-enum



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c483faa35b2a
branches:  trunk
changeset: 375057:c483faa35b2a
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Mar 06 09:16:21 2022 +0000

description:
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.

diffstat:

 devel/Makefile          |   3 ++-
 devel/lua-enum/DESCR    |   4 ++++
 devel/lua-enum/Makefile |  29 +++++++++++++++++++++++++++++
 devel/lua-enum/PLIST    |   2 ++
 devel/lua-enum/distinfo |   5 +++++
 5 files changed, 42 insertions(+), 1 deletions(-)

diffs (73 lines):

diff -r c67ab39639c2 -r c483faa35b2a devel/Makefile
--- a/devel/Makefile    Sun Mar 06 09:13:44 2022 +0000
+++ b/devel/Makefile    Sun Mar 06 09:16:21 2022 +0000
@@ -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-cov
 SUBDIR+=       lua-coxpcall
 SUBDIR+=       lua-cqueues
+SUBDIR+=       lua-enum
 SUBDIR+=       lua-epnf
 SUBDIR+=       lua-event
 SUBDIR+=       lua-fifo
diff -r c67ab39639c2 -r c483faa35b2a devel/lua-enum/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-enum/DESCR      Sun Mar 06 09:16:21 2022 +0000
@@ -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.
diff -r c67ab39639c2 -r c483faa35b2a devel/lua-enum/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-enum/Makefile   Sun Mar 06 09:16:21 2022 +0000
@@ -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@localhost
+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"
diff -r c67ab39639c2 -r c483faa35b2a devel/lua-enum/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-enum/PLIST      Sun Mar 06 09:16:21 2022 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2022/03/06 09:16:22 nia Exp $
+${LUA_LDIR}/enum/init.lua
diff -r c67ab39639c2 -r c483faa35b2a devel/lua-enum/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-enum/distinfo   Sun Mar 06 09:16:21 2022 +0000
@@ -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



Home | Main Index | Thread Index | Old Index