Makefile 1 KB
Newer Older
lifanov's avatar
lifanov committed
1
2
# $FreeBSD$

3
PORTNAME=	bats-core
lifanov's avatar
lifanov committed
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	1.0.2
lifanov's avatar
lifanov committed
6
7
8
9
10
11
CATEGORIES=	devel

MAINTAINER=	lifanov@FreeBSD.org
COMMENT=	Bash automated testing system

LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE.md
lifanov's avatar
lifanov committed
13
14
15
16

RUN_DEPENDS=	bash:shells/bash

USES=		shebangfix
17
SHEBANG_FILES=	${SCRIPTS:S/^/libexec\/${PORTNAME}\//}
lifanov's avatar
lifanov committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

USE_GITHUB=	yes

NO_BUILD=	yes
NO_ARCH=	yes

SCRIPTS=	bats \
		bats-exec-suite \
		bats-exec-test \
		bats-format-tap-stream \
		bats-preprocess

PLIST_FILES=	${SCRIPTS:S/^/libexec\/${PORTNAME}\//} \
		bin/bats \
		man/man1/bats.1.gz \
		man/man7/bats.7.gz

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
.for f in ${SCRIPTS}
38
	${INSTALL_SCRIPT} ${WRKSRC}/libexec/${PORTNAME}/${f} \
lifanov's avatar
lifanov committed
39
40
41
42
43
44
45
46
		${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/${f}
.endfor
	${RLN} ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}/bats \
		${STAGEDIR}${PREFIX}/bin/bats
	${INSTALL_MAN} ${WRKSRC}/man/bats.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
	${INSTALL_MAN} ${WRKSRC}/man/bats.7 ${STAGEDIR}${MAN7PREFIX}/man/man7

.include <bsd.port.mk>