blob: 518f068ba76b29a26a6d3f03a0923c57b1caf5e1 (
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
51
52
53
54
55
56
57
|
PORTNAME= elixir
DISTVERSIONPREFIX= v
DISTVERSION= 1.14.5
PORTREVISION= 0
CATEGORIES= lang
MASTER_SITES+= https://github.com/elixir-lang/elixir/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/:doc
DISTFILES= Docs.zip:doc
DIST_SUBDIR= elixir/${PORTVERSION}
MAINTAINER= erlang@FreeBSD.org
COMMENT= Functional, meta-programming aware language built on top of Erlang VM
WWW= https://elixir-lang.org/
LICENSE= APACHE20
BUILD_DEPENDS= erlang>25:lang/erlang
RUN_DEPENDS= erlang>25:lang/erlang
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= elixir-lang
CONFLICTS= elixir-devel # bin/elixir bin/elixirc bin/iex
USE_LOCALE= en_US.UTF-8
ALL_TARGET= # empty
REINPLACE_ARGS= -i ""
NO_ARCH= yes
MAKE_ENV+= MAN_PREFIX=${PREFIX}/man \
PATH="${LOCALBASE}/lib/erlang/bin:${PATH}"
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
.include <bsd.port.options.mk>
post-extract:
@${FIND} ${WRKDIR}/doc -name .build -delete
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
post-install:
${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
do-test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test
.include <bsd.port.mk>
|