aboutsummaryrefslogtreecommitdiffstats
path: root/devel/rebar/Makefile
blob: 33833506139ea09544fede76a264772f065f2274 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$

PORTNAME=   rebar
PORTVERSION=    2.5.1
CATEGORIES= devel

MAINTAINER= koobs@FreeBSD.org
COMMENT=    Build-tool for Erlang that follows OTP principles

LICENSE=    APACHE20

BUILD_DEPENDS=  ${LOCALBASE}/bin/escript:${PORTSDIR}/lang/erlang
RUN_DEPENDS:=   ${BUILD_DEPENDS}

OPTIONS_DEFINE= BASH ZSH

USE_GITHUB= yes

PLIST_FILES=    bin/${PORTNAME}

BASH_PLIST_FILES=   share/bash-completion/completions/rebar
ZSH_PLIST_FILES=    share/zsh/site-functions/_rebar

.include <bsd.port.options.mk>

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/rebar \
        ${STAGEDIR}${PREFIX}/share/bash-completion/completions/rebar
.endif
.if ${PORT_OPTIONS:MZSH}
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
    ${INSTALL_DATA} ${WRKSRC}/priv/shell-completion/zsh/_rebar \
        ${STAGEDIR}${PREFIX}/share/zsh/site-functions/
.endif

.include <bsd.port.mk>