summaryrefslogtreecommitdiff
path: root/misc/with/Makefile
blob: c9e8d3ab49743fd5d001164943a4b83c076660b9 (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

PORTNAME=	with
DISTVERSION=	g20180520
CATEGORIES=	misc

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	Command prefixing for continuous workflow using a single tool

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

RUN_DEPENDS=	bash:shells/bash

USES=	shebangfix
SHEBANG_FILES=	with
USE_GITHUB=	yes
GH_ACCOUNT=	mchav
GH_TAGNAME=	28eb40b

NO_ARCH=	yes
NO_BUILD=	yes

PLIST_FILES=	bin/with \
		etc/bash_completion.d/with.bash-completion
PORTDOCS=	README.md

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/with ${STAGEDIR}${PREFIX}/bin
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
	${INSTALL_DATA} ${WRKSRC}/with.bash-completion \
		${STAGEDIR}${PREFIX}/etc/bash_completion.d

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>