Index: Makefile =================================================================== --- Makefile (revision 387120) +++ Makefile (working copy) @@ -13,11 +13,29 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/escript:${PORTSDIR}/lang/erlang RUN_DEPENDS:= ${BUILD_DEPENDS} +OPTIONS_DEFINE= BASH ZSH + USE_GITHUB= yes PLIST_FILES= bin/${PORTNAME} +.include + +.if ${PORT_OPTIONS:MBASH} +PLIST_FILES+= share/bash-completion/completions/rebar +.endif + +.if ${PORT_OPTIONS:MZSH} +PLIST_FILES+= share/zsh/site-functions/_rebar +.endif + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/ + ${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/zsh/_rebar \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/ + @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions + ${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/bash/rebar \ + ${STAGEDIR}${PREFIX}/share/bash-completion/completions/rebar .include