commit: a8dac59262195eb37191bf2746ecbf910cdcfc74
parent d0b35a77e2b950ca368f47559272153018a086d3
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 8 Oct 2020 19:35:11 +0200
dev-lang/elixir: Bump to 1.11.0
Diffstat:
6 files changed, 101 insertions(+), 0 deletions(-)
diff --git a/dev-lang/elixir/Manifest b/dev-lang/elixir/Manifest
@@ -0,0 +1 @@
+DIST elixir-1.11.0.tar.gz 2389848 BLAKE2B 211b17091ebd47bb0eff3279f171b6dcc9fde98b0670ec842fa4a07fb9e32fba0b04eb5dc7af971df045af01c56af472a7df0ba4734e86c9a2a12715c60f24c0 SHA512 c4d93253098b820e42b7f26aa13e7684c41fd390dba30bb158e897f40fca92b81d54029f987484301f3b71d472faf7c22319759181ab6f0c0c126d2c84d253bd
diff --git a/dev-lang/elixir/elixir-1.11.0.ebuild b/dev-lang/elixir/elixir-1.11.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Elixir programming language"
+HOMEPAGE="https://elixir-lang.org"
+SRC_URI="https://github.com/elixir-lang/elixir/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 ErlPL-1.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ia64 ppc ~sparc x86"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ >=dev-lang/erlang-21:0=[ssl]
+"
+# 'mix' tool collides with sci-biology/phylip, bug #537514
+RDEPEND="${DEPEND}
+ !!sci-biology/phylip
+"
+DEPEND+="
+ test? ( dev-vcs/git )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.9.1-disable-network-tests.patch
+ "${FILESDIR}"/${PN}-1.10.3-no-Q.patch
+ "${FILESDIR}"/${PN}-1.10.3-epmd-daemon.patch
+)
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)" PREFIX="${EPREFIX}/usr" install
+ dodoc README.md CHANGELOG.md CODE_OF_CONDUCT.md
+}
diff --git a/dev-lang/elixir/files/elixir-1.10.3-epmd-daemon.patch b/dev-lang/elixir/files/elixir-1.10.3-epmd-daemon.patch
@@ -0,0 +1,13 @@
+Avoid exec/SIGCHLD race in daemon fork.
+Let's see if it fixes race seen in https://bugs.gentoo.org/727344
+--- a/Makefile
++++ b/Makefile
+@@ -280,7 +280,7 @@ test_elixir: test_stdlib test_ex_unit test_logger test_mix test_eex test_iex
+
+ test_stdlib: compile
+ @ echo "==> elixir (ex_unit)"
+- $(Q) exec epmd & exit
++ $(Q) epmd -daemon
+ $(Q) if [ "$(OS)" = "Windows_NT" ]; then \
+ cd lib/elixir && cmd //C call ../../bin/elixir.bat -r "test/elixir/test_helper.exs" -pr "test/elixir/**/$(TEST_FILES)"; \
+ else \
diff --git a/dev-lang/elixir/files/elixir-1.10.3-no-Q.patch b/dev-lang/elixir/files/elixir-1.10.3-no-Q.patch
@@ -0,0 +1,12 @@
+Enable verbose builds by default.
+--- a/Makefile
++++ b/Makefile
+@@ -8,7 +8,7 @@ ERLC := erlc -I lib/elixir/include $(ERLC_OPTS)
+ ERL := erl -I lib/elixir/include -noshell -pa lib/elixir/ebin
+ GENERATE_APP := $(CURDIR)/lib/elixir/generate_app.escript
+ VERSION := $(strip $(shell cat VERSION))
+-Q := @
++Q :=
+ LIBDIR := lib
+ BINDIR := bin
+ INSTALL = install
diff --git a/dev-lang/elixir/files/elixir-1.9.1-disable-network-tests.patch b/dev-lang/elixir/files/elixir-1.9.1-disable-network-tests.patch
@@ -0,0 +1,20 @@
+diff --git a/lib/mix/test/mix/tasks/release_test.exs b/lib/mix/test/mix/tasks/release_test.exs
+index f200c3e..9b2c75c 100644
+--- a/lib/mix/test/mix/tasks/release_test.exs
++++ b/lib/mix/test/mix/tasks/release_test.exs
+@@ -268,6 +268,7 @@ defmodule Mix.Tasks.ReleaseTest do
+ end)
+ end
+
++ @tag :skip
+ @tag :epmd
+ test "executes rpc instructions" do
+ in_fixture("release_test", fn ->
+@@ -333,6 +334,7 @@ defmodule Mix.Tasks.ReleaseTest do
+ end)
+ end
+
++ @tag :skip
+ @tag :unix
+ test "runs in daemon mode" do
+ in_fixture("release_test", fn ->
diff --git a/dev-lang/elixir/metadata.xml b/dev-lang/elixir/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <bugs-to>
+ https://github.com/elixir-lang/elixir/issues
+ </bugs-to>
+ <changelog>
+ https://github.com/elixir-lang/elixir/blob/master/CHANGELOG.md
+ </changelog>
+ <doc lang="en">
+ http://elixir-lang.org/docs.html
+ </doc>
+ <remote-id type="github">
+ elixir-lang/elixir
+ </remote-id>
+ </upstream>
+</pkgmetadata>