Lines 72-83
Link Here
|
72 |
.if !target(do-build) |
72 |
.if !target(do-build) |
73 |
do-build: |
73 |
do-build: |
74 |
.if ${MIX_REWRITE} != "" |
74 |
.if ${MIX_REWRITE} != "" |
75 |
@${REINPLACE_CMD} -i '' -E -e "s@{.*(only|optional): .*},?@@" ${WRKSRC}/mix.exs |
75 |
@${REINPLACE_CMD} -i '' -E -e "s@\{.*(only|optional): .*},?@@" ${WRKSRC}/mix.exs |
76 |
.for depend in ${MIX_BUILD_DEPS} |
76 |
.for depend in ${MIX_BUILD_DEPS} |
77 |
@if [ $$(echo ${depend:T} | sed -e "s/erlang-//") != ${depend:T} ]; then \ |
77 |
@if [ $$(echo ${depend:T} | sed -e "s/erlang-//") != ${depend:T} ]; then \ |
78 |
${REINPLACE_CMD} -i '' -E -e "s@{ *:(${depend:T:S/erlang-//}), *(github:|\").*} *,?@@" ${WRKSRC}/mix.exs; \ |
78 |
${REINPLACE_CMD} -i '' -E -e "s@\{ *:(${depend:T:S/erlang-//}), *(github:|\").*} *,?@@" ${WRKSRC}/mix.exs; \ |
79 |
else \ |
79 |
else \ |
80 |
${REINPLACE_CMD} -i '' -E -e "s@{ *:(${depend:T:S/elixir-//}), *(github:|\").*}@{ :\1, path: \"${ELIXIR_LIB_ROOT}/\\1\", compile: false }@" ${WRKSRC}/mix.exs; \ |
80 |
${REINPLACE_CMD} -i '' -E -e "s@\{ *:(${depend:T:S/elixir-//}), *(github:|\").*}@{ :\1, path: \"${ELIXIR_LIB_ROOT}/\\1\", compile: false }@" ${WRKSRC}/mix.exs; \ |
81 |
fi |
81 |
fi |
82 |
.endfor |
82 |
.endfor |
83 |
.endif |
83 |
.endif |