summaryrefslogtreecommitdiff
path: root/devel/lua-cov/Makefile
blob: 36e0ab36bed5397b0e969760140543ddfe7a7337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.1 2020/07/10 10:26:59 nia Exp $

DISTNAME=	luacov-0.14.0
PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/^lua//1}
CATEGORIES=	lua devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=keplerproject/}
GITHUB_PROJECT=	luacov
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://keplerproject.github.io/luacov/
COMMENT=	Simple coverage analyzer for Lua scripts
LICENSE=	mit

NO_BUILD=	yes
USE_LANGUAGES=	# none

PLIST_SUBST+=	LUADOTVER=${_LUA_DOT_VERSION}

REPLACE_LUA+=	src/bin/luacov

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	${LUA_LDIR}/luacov
INSTALLATION_DIRS+=	${LUA_LDIR}/luacov/reporter
INSTALLATION_DIRS+=	${LUA_DOCDIR}/doc/modules

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/src/bin/luacov \
		${DESTDIR}${PREFIX}/bin/luacov${_LUA_DOT_VERSION}
	${INSTALL_DATA} ${WRKSRC}/src/luacov.lua \
		${DESTDIR}${PREFIX}/${LUA_LDIR}
	${INSTALL_DATA} ${WRKSRC}/src/luacov/*.lua \
		${DESTDIR}${PREFIX}/${LUA_LDIR}/luacov
	${INSTALL_DATA} ${WRKSRC}/src/luacov/reporter/*.lua \
		${DESTDIR}${PREFIX}/${LUA_LDIR}/luacov/reporter
	cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.css *.png \
		${DESTDIR}${PREFIX}/${LUA_DOCDIR}
	cd ${WRKSRC}/doc/doc && ${INSTALL_DATA} *.html *.css \
		${DESTDIR}${PREFIX}/${LUA_DOCDIR}/doc
	cd ${WRKSRC}/doc/doc/modules && ${INSTALL_DATA} *.html \
		${DESTDIR}${PREFIX}/${LUA_DOCDIR}/doc/modules

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