[arch-commits] Commit in ponyc/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Mar 19 00:37:28 UTC 2018


    Date: Monday, March 19, 2018 @ 00:37:27
  Author: foutrelis
Revision: 309104

archrelease: copy trunk to community-staging-x86_64

Added:
  ponyc/repos/community-staging-x86_64/
  ponyc/repos/community-staging-x86_64/PKGBUILD
    (from rev 309103, ponyc/trunk/PKGBUILD)
  ponyc/repos/community-staging-x86_64/llvm6.patch
    (from rev 309103, ponyc/trunk/llvm6.patch)

-------------+
 PKGBUILD    |   70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 llvm6.patch |   15 ++++++++++++
 2 files changed, 85 insertions(+)

Copied: ponyc/repos/community-staging-x86_64/PKGBUILD (from rev 309103, ponyc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-03-19 00:37:27 UTC (rev 309104)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=ponyc
+pkgver=0.21.3
+pkgrel=2
+pkgdesc='An actor model, capabilities, high performance programming language'
+url='http://ponylang.org/'
+arch=('x86_64')
+license=('BSD')
+depends=('llvm-libs')
+makedepends=('llvm')
+checkdepends=('pcre2')
+options=('!strip')
+optdepends=('pcre2: Needed for the regex package')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz"
+        llvm6.patch
+        https://github.com/winksaville/ponyc/commit/64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch)
+sha512sums=('f89389142d77e93038c77d3fbe9e64c13ce76b9737430969fcdf2916023d0b7195f4d551895eab999798594352b40848be8dcc63af6927e8cc62b7c7000be65d'
+            '61cc43f2ac73210d37707bd80279b0ee2df9750b89cf8624d00b10fc233dd007698cbc4df650fb0b00d820bfb1572fbbc2b37315aa1d18e04c1836fd622a78e2'
+            '5ff30453ef144d87a32b6c29e024dfbbb252f224b97e4d57df587e796809ca23613f3769d9e66b2f68c1b3d9033108c1c59a8d030ef515edced6d6b3b7ceb6b8')
+
+prepare() {
+  cd ponyc-$pkgver
+  sed -i 's/-Werror //' Makefile
+
+  patch -p1 -i ../llvm6.patch
+  patch -p1 -i ../64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch
+}
+
+build() {
+  cd ponyc-$pkgver
+  make config=release prefix=/usr arch=x86-64 verbose= default_pic=true
+
+  mkdir docs
+  build/release/ponyc packages/stdlib -rexpr -g -o docs
+}
+
+check() {
+  cd ponyc-$pkgver
+  make config=release prefix=/usr arch=x86-64 verbose= default_pic=true test
+}
+
+package() {
+  cd ponyc-$pkgver
+  # The makefile is very strange and requires almost as much post-correction
+  # as to simply do the installation myself.  Even with patches to the
+  # makefile to stop it attempting to symlink locations it has no business
+  # touching.
+  #make config=release prefix=/usr destdir="$pkgdir"/usr/lib/pony/"$pkgver" install
+
+  install -Dm755 build/release/ponyc "$pkgdir"/usr/lib/pony/"$pkgver"/bin/ponyc
+  install -Dm644 build/release/libponyrt-pic.a "$pkgdir"/usr/lib/libponyrt-pic.a
+  install -Dm644 build/release/libponyc.a "$pkgdir"/usr/lib/libponyc.a
+  install -Dm644 src/libponyrt/pony.h "$pkgdir"/usr/include/pony.h
+
+  # Ponyc is designed to read its standard packages from the same directory.
+  install -dm755 "$pkgdir"/usr/bin
+  ln -sf /usr/lib/pony/"$pkgver"/bin/ponyc "$pkgdir"/usr/bin
+
+  cp -dr --no-preserve=ownership packages "$pkgdir"/usr/lib/pony/"$pkgver"
+
+  # Let's include the examples as documentation is scarce.
+  install -dm755 "$pkgdir"/usr/share/doc/pony
+  cp -dr --no-preserve=ownership examples "$pkgdir"/usr/share/doc/pony
+
+  cp -dr docs/* "$pkgdir"/usr/share/doc/pony
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}

Copied: ponyc/repos/community-staging-x86_64/llvm6.patch (from rev 309103, ponyc/trunk/llvm6.patch)
===================================================================
--- community-staging-x86_64/llvm6.patch	                        (rev 0)
+++ community-staging-x86_64/llvm6.patch	2018-03-19 00:37:27 UTC (rev 309104)
@@ -0,0 +1,15 @@
+diff -upr ponyc-0.21.3.orig/src/libponyc/codegen/host.cc ponyc-0.21.3/src/libponyc/codegen/host.cc
+--- ponyc-0.21.3.orig/src/libponyc/codegen/host.cc	2018-01-14 18:46:16.000000000 +0200
++++ ponyc-0.21.3/src/libponyc/codegen/host.cc	2018-03-19 02:30:12.452611178 +0200
+@@ -79,7 +79,11 @@ char* LLVMGetHostCPUFeatures()
+ 
+ void LLVMSetUnsafeAlgebra(LLVMValueRef inst)
+ {
++#if PONY_LLVM >= 600
++  unwrap<Instruction>(inst)->setFast(true);
++#else
+   unwrap<Instruction>(inst)->setHasUnsafeAlgebra(true);
++#endif
+ }
+ 
+ void LLVMSetNoUnsignedWrap(LLVMValueRef inst)



More information about the arch-commits mailing list