X-Original-To: alpine-aports@lists.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail-qc0-f176.google.com (mail-qc0-f176.google.com [209.85.216.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 62BF9DC00B5 for ; Fri, 13 Mar 2015 14:06:55 +0000 (UTC) Received: by qcwr17 with SMTP id r17so26817540qcw.2 for ; Fri, 13 Mar 2015 07:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=tzCNLwIerFG7joNvrgDGLT8zhT5ub6nsKdPffRm8XTs=; b=fS6Fahghl09koRvJ+d4GaRozGmC6KyQ0SCVdM7zWnv0EJ0IA1x1fRtMC4xj7Jv6nib 6LaWDZIm5+iFr8MmD6uqmOhsrToRyN5wWg0M+kOiAx/s6kM25gc2DMflA2K3QMyR87J8 c8vdvvv+PDM6vAQ+6gKM6xfZ5n/ViHlwhUQsIiicxA4yrPR3Ys+XP31rPFpFHlu0hQss FHZ+awRXtpkH+J4ugfOjzrlzah228+Rmv4sEl61U+TJq4VRQe9Ybayurl1aJZPc3HhuC cUbhc6KjdEgT5DkCNNRTNlenjwm0W7kpnVcurUR4u5SuDl3dlTmlJZXr9ILg/kDmARc8 pFCQ== X-Received: by 10.140.145.3 with SMTP id 3mr62935170qhr.42.1426255614437; Fri, 13 Mar 2015 07:06:54 -0700 (PDT) Received: from localhost.localdomain ([187.114.123.99]) by mx.google.com with ESMTPSA id q32sm1429534qkh.32.2015.03.13.07.06.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Mar 2015 07:06:53 -0700 (PDT) From: Marlus Saraiva To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/elixir: new aport Date: Fri, 13 Mar 2015 14:06:28 +0000 Message-Id: <1426255588-2781-1-git-send-email-marlus.saraiva@gmail.com> X-Mailer: git-send-email 2.3.2 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Elixir is a dynamic, functional language designed for building scalable and maintainable applications http://elixir-lang.org --- testing/elixir/APKBUILD | 41 ++++++++++++++++++++++++++++++++ testing/elixir/fix_system_cmd_test.patch | 20 ++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 testing/elixir/APKBUILD create mode 100644 testing/elixir/fix_system_cmd_test.patch diff --git a/testing/elixir/APKBUILD b/testing/elixir/APKBUILD new file mode 100644 index 0000000..fb7ad5f --- /dev/null +++ b/testing/elixir/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Marlus Saraiva +pkgname=elixir +pkgver=1.0.3 +pkgrel=0 +pkgdesc="Elixir is a dynamic, functional language designed for building scalable and maintainable applications" +url="http://elixir-lang.org" +arch="noarch" +license="ASL 2.0" +depends="erlang erlang-crypto erlang-syntax-tools erlang-inets erlang-ssl + erlang-public-key erlang-asn1 erlang-sasl erlang-erl-interface erlang-dev" +makedepends="erlang-parsetools erlang-eunit erlang-tools" +source="https://github.com/elixir-lang/elixir/archive/v$pkgver.tar.gz + fix_system_cmd_test.patch" + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 + esac + done +} + +build() { + cd "$_builddir" + make test || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" PREFIX=/usr install || return 1 +} + +md5sums="a7f44d73f5325fc8600044552b5abeae v1.0.3.tar.gz +2b9b691105d748719521aa8f1711b19a fix_system_cmd_test.patch" +sha256sums="ec6c4eaffcb771d91bdea9fb274600c624fd16b1891d194b3fcb2b521f52cc75 v1.0.3.tar.gz +95e58ed3a81f1e10f5f63b9a8602c9b359e6c081e3fd5a6fa2bbb1a51b045300 fix_system_cmd_test.patch" +sha512sums="d48636c355181a633dfc5d256f9a1718d74137686080c965d2d568e3d9b0f5cc1352f2ed4d12e50bd89c4cfc9cd59e7a1112ae22979012845df0556124151d1e v1.0.3.tar.gz +adeb558291a0199778ee2d1a87173d2729645d9111840bdc386bde9c6659d05a6c6004fdb33e7495e3f7b92cc3e67a923bf4bf65fb914531ea7ef3618ae26ff6 fix_system_cmd_test.patch" diff --git a/testing/elixir/fix_system_cmd_test.patch b/testing/elixir/fix_system_cmd_test.patch new file mode 100644 index 0000000..be852a5 --- /dev/null +++ b/testing/elixir/fix_system_cmd_test.patch @@ -0,0 +1,20 @@ +--- ./lib/elixir/test/elixir/system_test.exs.orig ++++ ./lib/elixir/test/elixir/system_test.exs +@@ -63,7 +63,7 @@ defmodule SystemTest do + assert {"hello\n", 0} = System.cmd "echo", ["hello"] + + opts = [into: [], cd: System.cwd!, env: %{"foo" => "bar"}, +- arg0: "hecho", stderr_to_stdout: true, parallelism: true] ++ arg0: "echo", stderr_to_stdout: true, parallelism: true] + assert {["hello\n"], 0} = System.cmd "echo", ["hello"], opts + + with_tmp_dir(fn dir -> +@@ -73,7 +73,7 @@ defmodule SystemTest do + + File.cd!(dir) + assert :enoent = catch_error(System.cmd("echo2", ["hello"])) +- assert {"hello\n", 0} = System.cmd(Path.join([System.cwd, "echo2"]), ["hello"]) ++ assert {"hello\n", 0} = System.cmd(Path.join([System.cwd, "echo2"]), ["hello"], [{:arg0, "echo"}]) + end) + end + -- 2.3.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---