[arch-commits] Commit in crystal/repos (6 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Apr 18 16:08:44 UTC 2017


    Date: Tuesday, April 18, 2017 @ 16:08:43
  Author: foutrelis
Revision: 223740

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  crystal/repos/community-staging-i686/
  crystal/repos/community-staging-i686/PKGBUILD
    (from rev 223739, crystal/trunk/PKGBUILD)
  crystal/repos/community-staging-i686/remove_failing_socket_test.patch
    (from rev 223739, crystal/trunk/remove_failing_socket_test.patch)
  crystal/repos/community-staging-x86_64/
  crystal/repos/community-staging-x86_64/PKGBUILD
    (from rev 223739, crystal/trunk/PKGBUILD)
  crystal/repos/community-staging-x86_64/remove_failing_socket_test.patch
    (from rev 223739, crystal/trunk/remove_failing_socket_test.patch)

-----------------------------------------------------------+
 community-staging-i686/PKGBUILD                           |   96 ++++++++++++
 community-staging-i686/remove_failing_socket_test.patch   |   23 ++
 community-staging-x86_64/PKGBUILD                         |   96 ++++++++++++
 community-staging-x86_64/remove_failing_socket_test.patch |   23 ++
 4 files changed, 238 insertions(+)

Copied: crystal/repos/community-staging-i686/PKGBUILD (from rev 223739, crystal/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-04-18 16:08:43 UTC (rev 223740)
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.21.1
+pkgrel=1
+_binary_rel=1
+pkgdesc='The Crystal Programming Language'
+arch=(i686 x86_64)
+url='http://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm-libs)
+makedepends=(libxml2 llvm)
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+            'libyaml: For YAML support'
+            'gmp: For BigInt support'
+            'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz
+        remove_failing_socket_test.patch
+        openssl11_1.patch::https://github.com/crystal-lang/crystal/commit/1658c312d8b26c559ce5410254f0c75182529abe.patch
+        openssl11_2.patch::https://github.com/crystal-lang/crystal/commit/b67a118e7a438009e5d44d0701c21d030c92aa94.patch
+        openssl11_3.patch::https://github.com/crystal-lang/crystal/commit/58b84812ed531acc528086a08ce843baa6188a7a.patch
+        openssl11_4.patch::https://github.com/crystal-lang/crystal/commit/3119e5989ee0dbdb9b1eff45bf5a0e2fdf665115.patch
+)
+source_i686+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-i686.tar.gz)
+source_x86_64+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-x86_64.tar.gz)
+sha256sums=('eb93de3b388641fd2a09a2d10ab9fe40a58148d888fc48e4583a86ee1ddb1085'
+            'e258c64886b678cfc6bde6a7e1eb04cd79a4a0d4057b318404d3d5f495fa3a7d'
+            '77e9b34c9e4ccb9c168344396cb249d8b91f9e0c5428c67918f40641654d0240'
+            '7c6458aeeb663674ccf642a2223c2e4ba73b6a6f2c30d3c56810af34456e2273'
+            'c7118f72e5179b3c2a95576966e17c520fab6023479a5e61e59ea250ee4f9273'
+            'c0f5ee92aac8acbee85fc0d3124112262538f2dfe30019e80823b0e6ba78f52c')
+sha256sums_i686=('8ab875309aa71d4501995e834850d40538fb66dd9890024ed812777f83085f48')
+sha256sums_x86_64=('e8a7489aba888cc0deec61e9bda5dd27ab600edb102afc17fa11582b90960875')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's|Please install shards: https://github.com/ysbaddaden/shards|Please install shards: pacman -S shards|' src/compiler/crystal/command.cr
+
+  patch -p1 < ../remove_failing_socket_test.patch
+
+  # https://github.com/crystal-lang/crystal/issues/4204
+  patch -p1 < ../openssl11_1.patch
+  patch -p1 < ../openssl11_2.patch
+  patch -p1 < ../openssl11_3.patch
+  patch -p1 < ../openssl11_4.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  # We use --no-debug because it runs out of memory on i686 without it
+  # https://github.com/crystal-lang/crystal/issues/3787#issuecomment-281591985
+  make release=1 \
+       FLAGS="--release --no-debug" \
+       PATH="$srcdir/$pkgname-$pkgver-$_binary_rel/bin:$PATH" \
+       CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+       CRYSTAL_CONFIG_VERSION="$pkgver" \
+       CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+       CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make doc CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+            CRYSTAL_CONFIG_VERSION="$pkgver" \
+            CRYSTAL_CACHE_DIR="/tmp/crystal" \
+            PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystal                compiled executable
+  # /usr/lib/crystal/               compiler src & core libs
+  # /usr/share/doc/crystal/api      api docs
+  # /usr/share/doc/crystal/samples/ samples
+
+  install -Dm755 ".build/crystal" "$pkgdir/usr/bin/crystal"
+
+  install -dm755 "$pkgdir/usr/lib"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r doc "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 etc/completion.bash "$pkgdir/usr/share/bash-completion/completions/crystal"
+  install -Dm644 etc/completion.zsh "$pkgdir/usr/share/zsh/site-functions/_crystal"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: crystal/repos/community-staging-i686/remove_failing_socket_test.patch (from rev 223739, crystal/trunk/remove_failing_socket_test.patch)
===================================================================
--- community-staging-i686/remove_failing_socket_test.patch	                        (rev 0)
+++ community-staging-i686/remove_failing_socket_test.patch	2017-04-18 16:08:43 UTC (rev 223740)
@@ -0,0 +1,23 @@
+commit 6ca6bfeedbc4d8c304298949c61ffaeefdd4ac9d
+Author: Jonne Haß <me at jhass.eu>
+Date:   Tue Mar 28 21:47:12 2017 +0200
+
+    Remove failing host tests
+
+diff --git a/spec/std/socket_spec.cr b/spec/std/socket_spec.cr
+index 3bf7bd11a..f5554893b 100644
+--- a/spec/std/socket_spec.cr
++++ b/spec/std/socket_spec.cr
+@@ -536,12 +536,6 @@ describe TCPSocket do
+       TCPSocket.new("localhost", port)
+     end
+   end
+-
+-  it "fails when host doesn't exist" do
+-    expect_raises(Socket::Error, /No address found for localhostttttt:12345/) do
+-      TCPSocket.new("localhostttttt", 12345)
+-    end
+-  end
+ end
+ 
+ describe UDPSocket do

Copied: crystal/repos/community-staging-x86_64/PKGBUILD (from rev 223739, crystal/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-04-18 16:08:43 UTC (rev 223740)
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Jonne Haß <me at jhass.eu>
+
+pkgname=crystal
+pkgver=0.21.1
+pkgrel=1
+_binary_rel=1
+pkgdesc='The Crystal Programming Language'
+arch=(i686 x86_64)
+url='http://crystal-lang.org'
+license=(Apache)
+depends=(gc libatomic_ops pcre libevent llvm-libs)
+makedepends=(libxml2 llvm)
+checkdepends=(libyaml libxml2 gmp inetutils git)
+optdepends=('shards: crystal language package manager'
+            'libyaml: For YAML support'
+            'gmp: For BigInt support'
+            'libxml2: For XML support')
+source=(crystal-$pkgver.tar.gz::https://github.com/crystal-lang/crystal/archive/$pkgver.tar.gz
+        remove_failing_socket_test.patch
+        openssl11_1.patch::https://github.com/crystal-lang/crystal/commit/1658c312d8b26c559ce5410254f0c75182529abe.patch
+        openssl11_2.patch::https://github.com/crystal-lang/crystal/commit/b67a118e7a438009e5d44d0701c21d030c92aa94.patch
+        openssl11_3.patch::https://github.com/crystal-lang/crystal/commit/58b84812ed531acc528086a08ce843baa6188a7a.patch
+        openssl11_4.patch::https://github.com/crystal-lang/crystal/commit/3119e5989ee0dbdb9b1eff45bf5a0e2fdf665115.patch
+)
+source_i686+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-i686.tar.gz)
+source_x86_64+=(https://github.com/crystal-lang/crystal/releases/download/$pkgver/$pkgname-$pkgver-$_binary_rel-linux-x86_64.tar.gz)
+sha256sums=('eb93de3b388641fd2a09a2d10ab9fe40a58148d888fc48e4583a86ee1ddb1085'
+            'e258c64886b678cfc6bde6a7e1eb04cd79a4a0d4057b318404d3d5f495fa3a7d'
+            '77e9b34c9e4ccb9c168344396cb249d8b91f9e0c5428c67918f40641654d0240'
+            '7c6458aeeb663674ccf642a2223c2e4ba73b6a6f2c30d3c56810af34456e2273'
+            'c7118f72e5179b3c2a95576966e17c520fab6023479a5e61e59ea250ee4f9273'
+            'c0f5ee92aac8acbee85fc0d3124112262538f2dfe30019e80823b0e6ba78f52c')
+sha256sums_i686=('8ab875309aa71d4501995e834850d40538fb66dd9890024ed812777f83085f48')
+sha256sums_x86_64=('e8a7489aba888cc0deec61e9bda5dd27ab600edb102afc17fa11582b90960875')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's|Please install shards: https://github.com/ysbaddaden/shards|Please install shards: pacman -S shards|' src/compiler/crystal/command.cr
+
+  patch -p1 < ../remove_failing_socket_test.patch
+
+  # https://github.com/crystal-lang/crystal/issues/4204
+  patch -p1 < ../openssl11_1.patch
+  patch -p1 < ../openssl11_2.patch
+  patch -p1 < ../openssl11_3.patch
+  patch -p1 < ../openssl11_4.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  # We use --no-debug because it runs out of memory on i686 without it
+  # https://github.com/crystal-lang/crystal/issues/3787#issuecomment-281591985
+  make release=1 \
+       FLAGS="--release --no-debug" \
+       PATH="$srcdir/$pkgname-$pkgver-$_binary_rel/bin:$PATH" \
+       CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+       CRYSTAL_CONFIG_VERSION="$pkgver" \
+       CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
+       CRYSTAL_CACHE_DIR="/tmp/crystal"
+  make doc CRYSTAL_CACHE_DIR="/tmp/crystal"
+}
+
+check() {
+  cd $pkgname-$pkgver
+
+  make spec CRYSTAL_PATH="$srcdir/$pkgname-$pkgver/src" \
+            CRYSTAL_CONFIG_VERSION="$pkgver" \
+            CRYSTAL_CACHE_DIR="/tmp/crystal" \
+            PATH=".build:$PATH"
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  # /usr/bin/crystal                compiled executable
+  # /usr/lib/crystal/               compiler src & core libs
+  # /usr/share/doc/crystal/api      api docs
+  # /usr/share/doc/crystal/samples/ samples
+
+  install -Dm755 ".build/crystal" "$pkgdir/usr/bin/crystal"
+
+  install -dm755 "$pkgdir/usr/lib"
+  cp -r src "$pkgdir/usr/lib/crystal"
+
+  install -dm755 "$pkgdir/usr/share/doc/crystal"
+  cp -r doc "$pkgdir/usr/share/doc/crystal/api"
+  cp -r samples "$pkgdir/usr/share/doc/crystal/"
+
+  install -Dm644 etc/completion.bash "$pkgdir/usr/share/bash-completion/completions/crystal"
+  install -Dm644 etc/completion.zsh "$pkgdir/usr/share/zsh/site-functions/_crystal"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Copied: crystal/repos/community-staging-x86_64/remove_failing_socket_test.patch (from rev 223739, crystal/trunk/remove_failing_socket_test.patch)
===================================================================
--- community-staging-x86_64/remove_failing_socket_test.patch	                        (rev 0)
+++ community-staging-x86_64/remove_failing_socket_test.patch	2017-04-18 16:08:43 UTC (rev 223740)
@@ -0,0 +1,23 @@
+commit 6ca6bfeedbc4d8c304298949c61ffaeefdd4ac9d
+Author: Jonne Haß <me at jhass.eu>
+Date:   Tue Mar 28 21:47:12 2017 +0200
+
+    Remove failing host tests
+
+diff --git a/spec/std/socket_spec.cr b/spec/std/socket_spec.cr
+index 3bf7bd11a..f5554893b 100644
+--- a/spec/std/socket_spec.cr
++++ b/spec/std/socket_spec.cr
+@@ -536,12 +536,6 @@ describe TCPSocket do
+       TCPSocket.new("localhost", port)
+     end
+   end
+-
+-  it "fails when host doesn't exist" do
+-    expect_raises(Socket::Error, /No address found for localhostttttt:12345/) do
+-      TCPSocket.new("localhostttttt", 12345)
+-    end
+-  end
+ end
+ 
+ describe UDPSocket do



More information about the arch-commits mailing list