I'm trying to install Elixir 1.5 and OTP 20. I did this:
pkg install erlang-runtime20
portsnap fetch extract update
and I've changed /usr/ports/lang/elixir/Makefile to point to the latest version of Elixir and erlang:
PORTVERSION= 1.5.1
BUILD_DEPENDS= erlang>=20:lang/erlang
RUN_DEPENDS= erlang>=20:lang/erlang
And
make makesum
And here comes an exception:
$ sudo make install
===> License APACHE20 accepted by the user
===> elixir-1.5.1_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by elixir-1.5.1_1 for building
===> Extracting for elixir-1.5.1_1
=> SHA256 Checksum OK for elixir/1.5.1/Docs.zip.
=> SHA256 Checksum OK for elixir/1.5.1/elixir-lang-elixir-v1.5.1_GH0.tar.gz.
===> Patching for elixir-1.5.1_1
===> Applying FreeBSD patches for elixir-1.5.1_1
1 out of 2 hunks failed--saving rejects to Makefile.rej
=> FreeBSD patch patch-Makefile failed to apply cleanly.
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/lang/elixir
*** Error code 1
Stop.
make: stopped in /usr/ports/lang/elixir
How to fix it?