diff options
author | olgeni <olgeni@FreeBSD.org> | 2016-01-23 07:27:40 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2016-01-23 07:27:40 +0800 |
commit | 6d621a4abf0e78cc28c015fc89bbc67bec08ba43 (patch) | |
tree | 6cf15912aec47da65065c6f69fd43d0e7f4e826b /Mk | |
parent | 5857715bccaffb311462230fa1417ae5d6be2fa0 (diff) | |
download | freebsd-ports-gnome-6d621a4abf0e78cc28c015fc89bbc67bec08ba43.tar.gz freebsd-ports-gnome-6d621a4abf0e78cc28c015fc89bbc67bec08ba43.tar.zst freebsd-ports-gnome-6d621a4abf0e78cc28c015fc89bbc67bec08ba43.zip |
Do not try to depend on Erlang libraries (if any) in
ELIXIR_LIB_ROOT, because they do not exist there.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/elixir.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Mk/Uses/elixir.mk b/Mk/Uses/elixir.mk index b40b608d7b18..a6191e8c962f 100644 --- a/Mk/Uses/elixir.mk +++ b/Mk/Uses/elixir.mk @@ -72,7 +72,14 @@ RUN_DEPENDS+= ${depend:T}>=0:${PORTSDIR}/${depend} .if !target(do-build) do-build: .if ${MIX_REWRITE} != "" - @${REINPLACE_CMD} -i '' -E -e "s@{.*(only|optional): .*},?@@; s@{ *:([a-zA-Z0-9_]+), *(github:|\").*}@{ :\1, path: \"${ELIXIR_LIB_ROOT}/\\1\", compile: false }@" ${WRKSRC}/mix.exs + @${REINPLACE_CMD} -i '' -E -e "s@{.*(only|optional): .*},?@@" ${WRKSRC}/mix.exs +.for depend in ${MIX_BUILD_DEPS} +.if ${depend:T} != ${depend:T:S/erlang-//} + @${REINPLACE_CMD} -i '' -E -e "s@{ *:(${depend:T:S/erlang-//}), *(github:|\").*} *,?@@" ${WRKSRC}/mix.exs +.else + @${REINPLACE_CMD} -i '' -E -e "s@{ *:(${depend:T:S/elixir-//}), *(github:|\").*}@{ :\1, path: \"${ELIXIR_LIB_ROOT}/\\1\", compile: false }@" ${WRKSRC}/mix.exs +.endif +.endfor .endif @${RM} -f ${WRKSRC}/mix.lock @cd ${WRKSRC} && ${MIX_COMPILE} |