[arch-commits] Commit in ponyc/repos/community-x86_64 (PKGBUILD PKGBUILD gcc7.patch)
Felix Yan
felixonmars at archlinux.org
Tue Aug 8 18:50:33 UTC 2017
Date: Tuesday, August 8, 2017 @ 18:50:32
Author: felixonmars
Revision: 249613
archrelease: copy trunk to community-x86_64
Added:
ponyc/repos/community-x86_64/PKGBUILD
(from rev 249612, ponyc/trunk/PKGBUILD)
Deleted:
ponyc/repos/community-x86_64/PKGBUILD
ponyc/repos/community-x86_64/gcc7.patch
------------+
PKGBUILD | 130 ++++++++++++++++++++++++++++-------------------------------
gcc7.patch | 34 ---------------
2 files changed, 63 insertions(+), 101 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-08 18:50:12 UTC (rev 249612)
+++ PKGBUILD 2017-08-08 18:50:32 UTC (rev 249613)
@@ -1,67 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=ponyc
-pkgver=0.15.0
-pkgrel=1
-pkgdesc='An actor model, capabilities, high performance programming language'
-url='http://ponylang.org/'
-arch=('x86_64')
-license=('BSD')
-depends=('llvm39-libs')
-makedepends=('llvm39' 'git')
-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"
- gcc7.patch)
-sha512sums=('ddd73714ce2d8b38231b5e45facbc1bf554f4914cf85544ada846e22893927b5e5f81f3edbcbd254ae5d1804e01ce969b3373b48309af1cd5482a0be91a72264'
- '5e13a430396995141591efb1c2194f1a0039119536b7eb7f7278d9535553ee466f2f48b8b90a536039dd78e149575ca0ff456dd1c8f6615d01f75401eedd88d6')
-
-prepare() {
- cd ponyc-$pkgver
- sed -i 's/-Werror //' Makefile
-
- patch -p1 -i "$srcdir"/gcc7.patch
-}
-
-build() {
- cd ponyc-$pkgver
- make config=release prefix=/usr arch=x86-64 verbose=
-
- mkdir docs
- build/release/ponyc packages/stdlib -rexpr -g -o docs
-}
-
-check() {
- cd ponyc-$pkgver
- make config=release prefix=/usr arch=x86-64 verbose= 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.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-x86_64/PKGBUILD (from rev 249612, ponyc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-08-08 18:50:32 UTC (rev 249613)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=ponyc
+pkgver=0.17.0
+pkgrel=1
+pkgdesc='An actor model, capabilities, high performance programming language'
+url='http://ponylang.org/'
+arch=('x86_64')
+license=('BSD')
+depends=('llvm39-libs')
+makedepends=('llvm39' 'git')
+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")
+sha512sums=('bbd4b5a9d042ca7ce958f628e9141341a49e9a304cd36a673f9ad8a7e5d43a12831c28d58fa076b9d3df30ca94d2b7db21120c368592f6c71ed70fa7f6da66b4')
+
+prepare() {
+ cd ponyc-$pkgver
+ sed -i 's/-Werror //' Makefile
+}
+
+build() {
+ cd ponyc-$pkgver
+ make config=release prefix=/usr arch=x86-64 verbose=
+
+ mkdir docs
+ build/release/ponyc packages/stdlib -rexpr -g -o docs
+}
+
+check() {
+ cd ponyc-$pkgver
+ make config=release prefix=/usr arch=x86-64 verbose= 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.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
+}
Deleted: gcc7.patch
===================================================================
--- gcc7.patch 2017-08-08 18:50:12 UTC (rev 249612)
+++ gcc7.patch 2017-08-08 18:50:32 UTC (rev 249613)
@@ -1,34 +0,0 @@
-diff --git a/src/libponyc/codegen/genexe.c b/src/libponyc/codegen/genexe.c
-index 304a6f675..a063818d8 100644
---- a/src/libponyc/codegen/genexe.c
-+++ b/src/libponyc/codegen/genexe.c
-@@ -277,7 +277,7 @@ static bool link_exe(compile_t* c, ast_t* program,
- #ifdef PONY_USE_LTO
- "-flto -fuse-linker-plugin "
- #endif
-- "%s %s %s %s -lpthread %s -lm %s",
-+ "%s %s %s %s -lpthread -latomic %s -lm %s",
- linker, file_exe, arch, mcx16_arg, fuseld, file_o, lib_args, ponyrt, ldl,
- export
- );
-diff --git a/Makefile b/Makefile
-index a795d8f57..dd8923b97 100644
---- a/Makefile
-+++ b/Makefile
-@@ -437,11 +437,11 @@ libponyc.benchmarks.links = libgbenchmark libponyc libponyrt llvm
- libponyrt.benchmarks.links = libgbenchmark libponyrt
-
- ifeq ($(OSTYPE),linux)
-- ponyc.links += libpthread libdl
-- libponyc.tests.links += libpthread libdl
-- libponyrt.tests.links += libpthread libdl
-- libponyc.benchmarks.links += libpthread libdl
-- libponyrt.benchmarks.links += libpthread libdl
-+ ponyc.links += libpthread libdl libatomic
-+ libponyc.tests.links += libpthread libdl libatomic
-+ libponyrt.tests.links += libpthread libdl libatomic
-+ libponyc.benchmarks.links += libpthread libdl libatomic
-+ libponyrt.benchmarks.links += libpthread libdl libatomic
- endif
-
-
\ No newline at end of file
More information about the arch-commits
mailing list