summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/elixir-devel/Makefile14
-rw-r--r--lang/elixir-devel/pkg-message20
2 files changed, 23 insertions, 11 deletions
diff --git a/lang/elixir-devel/Makefile b/lang/elixir-devel/Makefile
index 83c2d479b986..d55150436702 100644
--- a/lang/elixir-devel/Makefile
+++ b/lang/elixir-devel/Makefile
@@ -1,6 +1,7 @@
PORTNAME= elixir
DISTVERSIONPREFIX= v
DISTVERSION= 1.13.4
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES+= https://github.com/elixir-lang/elixir/releases/download/${DISTVERSIONPREFIX}${PORTVERSION}/:doc
PKGNAMESUFFIX= -devel
@@ -13,7 +14,6 @@ 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
@@ -30,12 +30,9 @@ NO_ARCH= yes
MAKE_ENV+= MAN_PREFIX=${PREFIX}/man \
PATH="${LOCALBASE}/lib/erlang${ERLANG_VER}/bin:${PATH}"
-OPTIONS_DEFINE= DOCS SRC
-OPTIONS_DEFAULT= DOCS SRC
+OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
-SRC_DESC= Install source code
-
ERLANG_VER= 24
.include <bsd.port.options.mk>
@@ -43,17 +40,12 @@ ERLANG_VER= 24
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:
+post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib
cd ${WRKSRC}/lib/ && for lib in *; do \
${MKDIR} ${STAGEDIR}${PREFIX}/lib/elixir/lib/$${lib}/lib; \
diff --git a/lang/elixir-devel/pkg-message b/lang/elixir-devel/pkg-message
new file mode 100644
index 000000000000..7b969028d8d3
--- /dev/null
+++ b/lang/elixir-devel/pkg-message
@@ -0,0 +1,20 @@
+[
+{ type: install
+ message: <<EOM
+Elixir requires a compatible Erlang/OTP runtime. Ensure that you have
+one of the following installed:
+
+- lang/erlang
+- lang/erlang-runtime24 or newer
+EOM
+}
+{ type: upgrade
+ message: <<EOM
+Elixir requires a compatible Erlang/OTP runtime. Ensure that you have
+one of the following installed:
+
+- lang/erlang
+- lang/erlang-runtime24 or newer
+EOM
+}
+]