mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
2765203b49
Targets the latest Elixir release, and requires latest available Erlang as dependency. Differential Revision: https://reviews.freebsd.org/D30490
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
PORTNAME= elixir
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.12.1
|
|
CATEGORIES= lang
|
|
MASTER_SITES+= https://github.com/elixir-lang/elixir/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/:doc
|
|
DISTFILES= Docs.zip:doc
|
|
DIST_SUBDIR= elixir/${PORTVERSION}
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
MAINTAINER= erlang@FreeBSD.org
|
|
COMMENT= Functional, meta-programming aware language built on top of Erlang VM
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= erlang-runtime${ERLANG_VER}>0:lang/erlang-runtime${ERLANG_VER}
|
|
RUN_DEPENDS= erlang-runtime${ERLANG_VER}>0:lang/erlang-runtime${ERLANG_VER}
|
|
|
|
USES= gmake
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= elixir-lang
|
|
|
|
CONFLICTS= elixir
|
|
|
|
USE_LOCALE= en_US.UTF-8
|
|
ALL_TARGET= # empty
|
|
REINPLACE_ARGS= -i ""
|
|
NO_ARCH= yes
|
|
OPTIONS_SUB= yes
|
|
MAKE_ENV+= MAN_PREFIX=${PREFIX}/man \
|
|
PATH="${LOCALBASE}/lib/erlang${ERLANG_VER}/bin:${PATH}"
|
|
OPTIONS_DEFINE= DOCS SRC
|
|
OPTIONS_DEFAULT= DOCS SRC
|
|
|
|
SRC_DESC= Install source code
|
|
|
|
ERLANG_VER= 24
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
@${FIND} ${WRKDIR}/doc -name .build -delete
|
|
|
|
post-patch:
|
|
# hard-wire elixir to the OTP version is was compiled with
|
|
@${REINPLACE_CMD} -e \
|
|
's|^ERTS_BIN=.*$$|ERTS_BIN=${PREFIX}/lib/erlang${ERLANG_VER}/bin/|' \
|
|
${WRKSRC}/bin/elixir
|
|
|
|
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
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test
|
|
|
|
.include <bsd.port.mk>
|