head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.46
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.44
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.42
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.40
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.38
	pkgsrc-2025Q1-base:1.1
	pkgsrc-2024Q4:1.1.0.36
	pkgsrc-2024Q4-base:1.1
	pkgsrc-2024Q3:1.1.0.34
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.32
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.30
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.28
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.26
	pkgsrc-2023Q3-base:1.1
	pkgsrc-2023Q2:1.1.0.24
	pkgsrc-2023Q2-base:1.1
	pkgsrc-2023Q1:1.1.0.22
	pkgsrc-2023Q1-base:1.1
	pkgsrc-2022Q4:1.1.0.20
	pkgsrc-2022Q4-base:1.1
	pkgsrc-2022Q3:1.1.0.18
	pkgsrc-2022Q3-base:1.1
	pkgsrc-2022Q2:1.1.0.16
	pkgsrc-2022Q2-base:1.1
	pkgsrc-2022Q1:1.1.0.14
	pkgsrc-2022Q1-base:1.1
	pkgsrc-2021Q4:1.1.0.12
	pkgsrc-2021Q4-base:1.1
	pkgsrc-2021Q3:1.1.0.10
	pkgsrc-2021Q3-base:1.1
	pkgsrc-2021Q2:1.1.0.8
	pkgsrc-2021Q2-base:1.1
	pkgsrc-2021Q1:1.1.0.6
	pkgsrc-2021Q1-base:1.1
	pkgsrc-2020Q4:1.1.0.4
	pkgsrc-2020Q4-base:1.1
	pkgsrc-2020Q3:1.1.0.2
	pkgsrc-2020Q3-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2020.07.11.11.56.59;	author nia;	state Exp;
branches;
next	;
commitid	37Xtpl6eTmkIMEfC;


desc
@@


1.1
log
@lang: Add lua-moonscript

MoonScript is a dynamic scripting language that compiles into Lua. It gives
you the power of one of the fastest scripting languages combined with a rich
set of features.

MoonScript can either be compiled into Lua and run at a later time, or it
can be dynamically compiled and run using the moonloader. It's as simple as
require "moonscript" in order to have Lua understand how to load and run
any MoonScript file.

Because it compiles right into Lua code, it is completely compatible with
alternative Lua implementations like LuaJIT, and it is also compatible with
all existing Lua code and libraries.

The command line tools also let you run MoonScript directly from the command
line, like any first-class scripting language.
@
text
@# $NetBSD$

DISTNAME=	moonscript-0.5.0
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME}
CATEGORIES=	lang lua
MASTER_SITES=	${MASTER_SITE_GITHUB:=leafo/}
GITHUB_PROJECT=	moonscript
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://moonscript.org/
COMMENT=	Dynamic scripting language that compiles into Lua
LICENSE=	mit

DEPENDS+=	${LUA_PKGPREFIX}-alt-getopt>=0.7:../../devel/lua-alt-getopt
DEPENDS+=	${LUA_PKGPREFIX}-lpeg>=0.12:../../devel/lua-lpeg
DEPENDS+=	${LUA_PKGPREFIX}-filesystem>=1.5:../../devel/lua-filesystem

NO_BUILD=	yes
USE_LANGUAGES=	# none

PLIST_SUBST+=	LUADOTVER=${_LUA_DOT_VERSION}

REPLACE_LUA+=	bin/moon bin/moonc

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	${LUA_DOCDIR}
INSTALLATION_DIRS+=	${LUA_LDIR}/moon

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/bin/moon \
		${DESTDIR}${PREFIX}/bin/moon${_LUA_DOT_VERSION}
	${INSTALL_SCRIPT} ${WRKSRC}/bin/moonc \
		${DESTDIR}${PREFIX}/bin/moonc${_LUA_DOT_VERSION}
	cd ${WRKSRC}/moonscript && ${FIND} * -type d -exec \
		${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${LUA_LDIR}/moonscript/'{}' ';'
	cd ${WRKSRC}/moonscript && ${FIND} * -name '*.lua' -exec \
		${INSTALL_DATA} '{}' ${DESTDIR}${PREFIX}/${LUA_LDIR}/moonscript/'{}' ';'
	${INSTALL_DATA} ${WRKSRC}/moon/*.lua \
		${DESTDIR}${PREFIX}/${LUA_LDIR}/moon
	${INSTALL_DATA} ${WRKSRC}/docs/*.md \
		${DESTDIR}${PREFIX}/${LUA_DOCDIR}

.include "../../lang/lua/application.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"
@
