36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'elixir'
|
|
pkgname=elixir
|
|
version=1.15.5
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="LIBDIR=lib${XBPS_TARGET_WORDSIZE}"
|
|
make_check_args="LIBDIR=lib${XBPS_TARGET_WORDSIZE}"
|
|
make_install_args="LIBDIR=lib${XBPS_TARGET_WORDSIZE}"
|
|
# make_check_target="test"
|
|
make_check_target="test_erlang test_elixir"
|
|
hostmakedepends="erlang"
|
|
depends="erlang>=24"
|
|
checkdepends="git"
|
|
short_desc="Functional, concurrent, general-purpose programming language"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="http://elixir-lang.org/"
|
|
changelog="https://raw.githubusercontent.com/elixir-lang/elixir/v${version%.*}/CHANGELOG.md"
|
|
distfiles="https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz"
|
|
checksum=69f6203eded2d5b2d246c807528f896b3d352141c9cf3e095762748d677c7260
|
|
|
|
post_patch() {
|
|
# XXX: find a better solution
|
|
# Assertion with == failed
|
|
# code: assert root_dir == :code.root_dir() |> to_string()
|
|
# left: "/usr/lib/erlang"
|
|
# right: "/usr/lib64/erlang"
|
|
vsed -e '/assert root_dir == :code\.root_dir()/d' -i lib/mix/test/mix/tasks/release_test.exs
|
|
}
|
|
|
|
do_check() {
|
|
ERL_EPMD_PORT=5369 make ${make_check_target}
|
|
# The elixir test suite starts up epmd and then doesn't kill it again afterwards.
|
|
epmd -port 5369 -kill
|
|
}
|