freebsd-ports/devel/rebar3/Makefile

57 lines
1.4 KiB
Makefile
Raw Normal View History

# $FreeBSD$
PORTNAME= rebar3
PORTVERSION= 20150517
CATEGORIES= devel
MASTER_SITES+= http://olgeni.olgeni.com/~olgeni/distfiles/:deps \
LOCAL/olgeni:deps
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} rebar3-deps-1.tar.gz:deps
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Build tool for Erlang
LICENSE= APACHE20
BUILD_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang \
${LOCALBASE}/bin/git:${PORTSDIR}/devel/git
RUN_DEPENDS= ${LOCALBASE}/bin/erl:${PORTSDIR}/lang/erlang
OPTIONS_DEFINE= BASH ZSH
USE_GITHUB= yes
GH_ACCOUNT= rebar
GH_TAGNAME= 9ad3025
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBASH}
PLIST_FILES+= share/bash-completion/completions/rebar3
.endif
.if ${PORT_OPTIONS:MZSH}
PLIST_FILES+= share/zsh/site-functions/_rebar3
.endif
post-extract:
@${CP} -R ${WRKDIR}/_build ${WRKSRC}/
do-build:
@cd ${WRKSRC} && ./bootstrap
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.if ${PORT_OPTIONS:MBASH}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/bash/rebar3 \
${STAGEDIR}${PREFIX}/share/bash-completion/completions/rebar3
.endif
.if ${PORT_OPTIONS:MZSH}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/zsh/_rebar3 \
${STAGEDIR}${PREFIX}/share/zsh/site-functions/
.endif
.include <bsd.port.mk>