2014-07-23 10:55:48 +00:00
|
|
|
# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
|
|
|
|
|
|
|
|
PORTNAME= elixir
|
2015-05-30 21:25:06 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
2020-07-04 16:19:39 +00:00
|
|
|
DISTVERSION= 1.10.4
|
2014-07-23 10:55:48 +00:00
|
|
|
CATEGORIES= lang
|
2016-12-02 09:21:58 +00:00
|
|
|
MASTER_SITES+= https://github.com/elixir-lang/elixir/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/:doc
|
2016-04-02 06:34:11 +00:00
|
|
|
DISTFILES= Docs.zip:doc
|
2016-01-01 15:13:44 +00:00
|
|
|
DIST_SUBDIR= elixir/${PORTVERSION}
|
2014-07-23 10:55:48 +00:00
|
|
|
|
2018-06-08 05:28:38 +00:00
|
|
|
MAINTAINER= erlang@FreeBSD.org
|
2014-07-23 10:55:48 +00:00
|
|
|
COMMENT= Functional, meta-programming aware language built on top of Erlang VM
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
|
2019-05-27 12:34:45 +00:00
|
|
|
BUILD_DEPENDS= erlang>=21.3:lang/erlang
|
|
|
|
RUN_DEPENDS= erlang>=21.3:lang/erlang
|
2014-07-23 10:55:48 +00:00
|
|
|
|
2018-07-05 22:36:13 +00:00
|
|
|
USES= gmake
|
|
|
|
|
2014-07-23 10:55:48 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= elixir-lang
|
|
|
|
|
2017-01-18 13:20:31 +00:00
|
|
|
USE_LOCALE= en_US.UTF-8
|
2017-01-17 15:52:40 +00:00
|
|
|
ALL_TARGET= # empty
|
2015-09-26 11:38:44 +00:00
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
NO_ARCH= yes
|
2015-10-01 12:38:29 +00:00
|
|
|
OPTIONS_SUB= yes
|
2019-05-27 12:34:45 +00:00
|
|
|
MAKE_ENV= MAN_PREFIX=${PREFIX}/man
|
2014-07-23 10:55:48 +00:00
|
|
|
|
2015-10-01 12:38:29 +00:00
|
|
|
OPTIONS_DEFINE= SRC DOCS
|
2016-05-23 20:35:01 +00:00
|
|
|
OPTIONS_DEFAULT=SRC
|
2015-06-27 21:21:33 +00:00
|
|
|
|
|
|
|
SRC_DESC= Install source code
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2016-09-18 16:04:04 +00:00
|
|
|
post-extract:
|
|
|
|
@${FIND} ${WRKDIR}/doc -name .build -delete
|
|
|
|
|
2015-10-01 12:38:29 +00:00
|
|
|
post-install-DOCS-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${WRKDIR}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
post-install-SRC-on:
|
2015-06-27 21:21:33 +00:00
|
|
|
${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
|
|
|
|
|
2018-06-27 12:35:35 +00:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test
|
|
|
|
|
2014-07-23 10:55:48 +00:00
|
|
|
.include <bsd.port.mk>
|