1 |
commit: 01dd5b656880fcb6382548f1167e269625f4040c |
2 |
Author: Hans de Graaff <hans <AT> degraaff <DOT> org> |
3 |
AuthorDate: Fri Apr 1 07:18:14 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 1 07:18:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=01dd5b65 |
7 |
|
8 |
dev-lang/pony: add latest version |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
dev-lang/pony/Manifest | 1 + |
13 |
dev-lang/pony/pony-0.2.1.20160331.ebuild | 65 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 66 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/pony/Manifest b/dev-lang/pony/Manifest |
17 |
index b7c0447..de7e179 100644 |
18 |
--- a/dev-lang/pony/Manifest |
19 |
+++ b/dev-lang/pony/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pony-0.2.1.20160303.tar.gz 846774 SHA256 9c67b4a86b4dc4e2747512224401536180253e97c1c8bffc55e3adc63a7f469f SHA512 8fbdc2fa44ed9e9c38c14f96ca385f6fee3c375008db6882b069aaec9fd36739390503968717ee65766f72e29d89dfe2a034cb7e4c84009b2e6b056f1f4ad240 WHIRLPOOL 2ab7b2808c41cd45cd5363f17c30316112f5aa3e54d006d2cfeccd1992b572ef89a5a84978044ef070def3e76a618a2e7d42fd3f2e6248da5dd31fe62726aed5 |
22 |
+DIST pony-0.2.1.20160331.tar.gz 862815 SHA256 a773855e038ff345c2387ae9eb67be74791e5684cb694a0029ef6930255e88dd SHA512 602b9159466c81f2473974b04cd53340e8aa018ba6faae7029e430cd5aad164f0892dc79e972dd973d0d3177f09793afd4878a8f545f557aea0b5a5dc6ac5e2d WHIRLPOOL ffc6a4c68f9eaff901d792d498d95812aa3c8f072c02df1e3ee5341b74df3fa40e7f1954b068dbb039bdfd5e898d8e668eb5acebcaab3a87a404121f1812838c |
23 |
|
24 |
diff --git a/dev-lang/pony/pony-0.2.1.20160331.ebuild b/dev-lang/pony/pony-0.2.1.20160331.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..a7c7521 |
27 |
--- /dev/null |
28 |
+++ b/dev-lang/pony/pony-0.2.1.20160331.ebuild |
29 |
@@ -0,0 +1,65 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+COMMIT=e4427917a3cccc04dd3633777a31e17b5133a743 |
37 |
+ |
38 |
+DESCRIPTION="Compiler for the Pony language" |
39 |
+HOMEPAGE="http://www.ponylang.org/" |
40 |
+SRC_URI="https://github.com/CausalityLtd/ponyc/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="test" |
46 |
+RESTRICT="strip" |
47 |
+ |
48 |
+S="${WORKDIR}/ponyc-${COMMIT}" |
49 |
+ |
50 |
+RDEPEND="dev-libs/libpcre2 |
51 |
+ dev-libs/openssl:= |
52 |
+ sys-devel/llvm:0/3.6 |
53 |
+ sys-libs/ncurses:= |
54 |
+ sys-libs/zlib |
55 |
+" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ virtual/pkgconfig |
58 |
+" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ # bug #457530 means that '-ltinfo' might be needed besides '-lncurses' if a USE flag is enabled |
62 |
+ # for sys-libs/ncurses, so we use pkg-config to get the ncurses libs |
63 |
+ sed -i \ |
64 |
+ -e 's/-Werror//' \ |
65 |
+ -e 's/-O3//' \ |
66 |
+ -e 's/LINKER_FLAGS =/LINKER_FLAGS = $(LDFLAGS)/' \ |
67 |
+ -e 's/-march=$(arch)/$(CFLAGS)/' \ |
68 |
+ -e 's#ln -sf $(destdir)#ln -sf ../lib/pony/$(tag)#' \ |
69 |
+ -e "s#-lncurses#$(pkg-config ncurses --libs)#" \ |
70 |
+ Makefile |
71 |
+ |
72 |
+ gcc_lib_dir="$(gcc-config -L | cut -d ':' -f 1)" |
73 |
+ sed -i \ |
74 |
+ -e "s#/lib/x86_64-linux-gnu#${gcc_lib_dir}#" \ |
75 |
+ src/libponyc/codegen/genexe.c |
76 |
+ |
77 |
+ # Avoid net/Broadcast test since it requires a working network |
78 |
+ # connection. |
79 |
+ sed -i -e '/test(_TestBroadcast)/d' packages/net/test.pony || die |
80 |
+} |
81 |
+ |
82 |
+common_make_args="config=release prefix=\"${D}usr\" verbose=yes" |
83 |
+ |
84 |
+src_compile() { |
85 |
+ emake ${common_make_args} |
86 |
+} |
87 |
+ |
88 |
+src_test() { |
89 |
+ emake ${common_make_args} test |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ emake ${common_make_args} install |
94 |
+} |