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

Collapse All | Expand All

(-)Makefile (+18 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
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
35
	${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/zsh/_rebar \
36
		${STAGEDIR}${PREFIX}/share/zsh/site-functions/
37
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
38
	${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/bash/rebar \
39
		${STAGEDIR}${PREFIX}/share/bash-completion/completions/rebar
22
40
23
.include <bsd.port.mk>
41
.include <bsd.port.mk>

Return to bug 200430