2015-05-17 20:18:26 +02:00
|
|
|
# $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
|
|
|
|
|
2015-05-24 21:47:00 +02:00
|
|
|
OPTIONS_DEFINE= BASH ZSH
|
|
|
|
|
2015-05-17 20:18:26 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= rebar
|
|
|
|
GH_TAGNAME= 9ad3025
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
|
2015-05-24 21:47:00 +02:00
|
|
|
.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
|
|
|
|
|
2015-05-17 20:18:26 +02:00
|
|
|
post-extract:
|
|
|
|
@${CP} -R ${WRKDIR}/_build ${WRKSRC}/
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && ./bootstrap
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
2015-05-24 21:47:00 +02:00
|
|
|
.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
|
2015-05-17 20:18:26 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|