1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/lang/elixir/Makefile

57 lines
1.3 KiB
Makefile
Raw Normal View History

# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
PORTNAME= elixir
DISTVERSIONPREFIX= v
2020-07-04 16:19:39 +00:00
DISTVERSION= 1.10.4
CATEGORIES= lang
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
DIST_SUBDIR= elixir/${PORTVERSION}
MAINTAINER= erlang@FreeBSD.org
COMMENT= Functional, meta-programming aware language built on top of Erlang VM
LICENSE= APACHE20
BUILD_DEPENDS= erlang>=21.3:lang/erlang
RUN_DEPENDS= erlang>=21.3:lang/erlang
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= elixir-lang
USE_LOCALE= en_US.UTF-8
2017-01-17 15:52:40 +00:00
ALL_TARGET= # empty
REINPLACE_ARGS= -i ""
NO_ARCH= yes
OPTIONS_SUB= yes
MAKE_ENV= MAN_PREFIX=${PREFIX}/man
OPTIONS_DEFINE= SRC DOCS
OPTIONS_DEFAULT=SRC
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
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKDIR}/doc/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
post-install-SRC-on:
${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
.include <bsd.port.mk>