aboutsummaryrefslogtreecommitdiffstats
path: root/lang/elixir/Makefile
blob: d03de3a307e511c5bbbaab5c31709f189798bc5a (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
41
42
43
44
45
46
47
48
49
50
# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
# $FreeBSD$

PORTNAME=   elixir
PORTVERSION=    1.1.1
DISTVERSIONPREFIX=  v
CATEGORIES= lang

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Functional, meta-programming aware language built on top of Erlang VM

LICENSE=    APACHE20

BUILD_DEPENDS=  erlang>=17:${PORTSDIR}/lang/erlang
RUN_DEPENDS=    erlang>=17:${PORTSDIR}/lang/erlang

USE_GITHUB= yes
GH_ACCOUNT= elixir-lang

USES=       gmake
MAKE_ENV=   LANG=en_US.UTF-8
ALL_TARGET= #empty
REINPLACE_ARGS= -i ""
NO_ARCH=    yes

OPTIONS_DEFINE= SRC
OPTIONS_DEFAULT=SRC

SRC_DESC=   Install source code

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/Makefile
    @${RM} ${WRKSRC}/bin/*.orig

post-install:
.if ${PORT_OPTIONS:MSRC}
    ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib
    cd ${WRKSRC}/lib/ && for lib in *; do \
        ${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib/$${lib}/lib; \
        cd ${WRKSRC}/lib/$${lib}/lib && \
            ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/elixir/lib/$${lib}/lib; \
    done
.endif
    @cd ${STAGEDIR}${PREFIX}; ${FIND} lib/elixir/* -type f -o -type l \
        | ${SORT} \
        >> ${TMPPLIST}

.include <bsd.port.mk>