update to elixir-1.14.3, and adjust elixir script to detect erts version

at runtime. From Volker Schlecht (maintainer).
This commit is contained in:
sthen 2023-01-18 09:33:59 +00:00
parent 34af5c834f
commit bb4040856f
3 changed files with 16 additions and 12 deletions

View File

@ -1,6 +1,6 @@
COMMENT= functional language for building scalable applications
V= 1.14.2
V= 1.14.3
GH_ACCOUNT= elixir-lang
GH_PROJECT= elixir
GH_TAGNAME= v$V
@ -32,6 +32,6 @@ pre-configure:
${SUBST_CMD} ${WRKSRC}/bin/elixir
pre-install:
-rm ${WRKSRC}/bin/*.{beforesubst,orig}
-rm ${WRKSRC}/bin/*{.beforesubst,${PATCHORIG}}
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (elixir-1.14.2.tar.gz) = P3njhHBklXJRGfYJgvoW6oLVEMP76s/G7hp3x5K/FSo=
SIZE (elixir-1.14.2.tar.gz) = 3085613
SHA256 (elixir-1.14.3.tar.gz) = vUZBRSV/Nr1k97qL7ZO2SZxQVxtBXEkbICZ9J9cDVwc=
SIZE (elixir-1.14.3.tar.gz) = 3086297

View File

@ -1,12 +1,16 @@
Detect erlang ERTS directory at runtime.
Index: bin/elixir
--- bin/elixir.orig
+++ bin/elixir
@@ -92,7 +92,7 @@ starts_with () {
esac
}
@@ -226,7 +226,9 @@ fi
-ERL_EXEC="erl"
+ERL_EXEC="erl${MODERL_VERSION}"
MODE="elixir"
I=1
E=0
# One MAY change ERTS_BIN= but you MUST NOT change
# ERTS_BIN=$ERTS_BIN as it is handled by Elixir releases.
-ERTS_BIN=
+for obsd_erts in ${LOCALBASE}/lib/erlang${MODERL_VERSION}/erts-*; do
+ ERTS_BIN="$obsd_erts/bin/";
+done
ERTS_BIN="$ERTS_BIN"
set -- "$ERTS_BIN$ERL_EXEC" -pa "$SCRIPT_PATH"/../lib/*/ebin $ELIXIR_ERL_OPTIONS $ERL "$@"