View | Details | Raw Unified | Return to bug 200430 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+22 lines)
Lines 13-23 Link Here
13
BUILD_DEPENDS=	${LOCALBASE}/bin/escript:${PORTSDIR}/lang/erlang
13
BUILD_DEPENDS=	${LOCALBASE}/bin/escript:${PORTSDIR}/lang/erlang
14
RUN_DEPENDS:=	${BUILD_DEPENDS}
14
RUN_DEPENDS:=	${BUILD_DEPENDS}
15
15
16
OPTIONS_DEFINE=	BASH ZSH
17
16
USE_GITHUB=	yes
18
USE_GITHUB=	yes
17
19
18
PLIST_FILES=	bin/${PORTNAME}
20
PLIST_FILES=	bin/${PORTNAME}
19
21
22
.include <bsd.port.options.mk>
23
24
.if ${PORT_OPTIONS:MBASH}
25
PLIST_FILES+=	share/bash-completion/completions/rebar
26
.endif
27
28
.if ${PORT_OPTIONS:MZSH}
29
PLIST_FILES+=	share/zsh/site-functions/_rebar
30
.endif
31
20
do-install:
32
do-install:
21
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
33
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
34
.if ${PORT_OPTIONS:MBASH}
35
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
36
	${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/bash/rebar \
37
		${STAGEDIR}${PREFIX}/share/bash-completion/completions/rebar
38
.endif
39
.if ${PORT_OPTIONS:MZSH}
40
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
41
	${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/zsh/_rebar \
42
		${STAGEDIR}${PREFIX}/share/zsh/site-functions/
43
.endif
22
44
23
.include <bsd.port.mk>
45
.include <bsd.port.mk>

Return to bug 200430