1 |
commit: 13a77ff14ee6f1b0fae7ab52aa5f421d57370e39 |
2 |
Author: Hans de Graaff <hans <AT> degraaff <DOT> org> |
3 |
AuthorDate: Sun Aug 28 18:19:44 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 28 18:19:44 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=13a77ff1 |
7 |
|
8 |
dev-lang/pony: add 0.3.0 |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-lang/pony/Manifest | 1 + |
13 |
dev-lang/pony/pony-0.3.0.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 64 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/pony/Manifest b/dev-lang/pony/Manifest |
17 |
index 5c4fd1c..7474693 100644 |
18 |
--- a/dev-lang/pony/Manifest |
19 |
+++ b/dev-lang/pony/Manifest |
20 |
@@ -1,3 +1,4 @@ |
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 |
DIST pony-0.2.1.20160615.tar.gz 915674 SHA256 92950a618c0f822e84d53db66692f0dc207a40cdc66f155f8b2fc4be0cbc322b SHA512 1bcb63621a4cd44eed7da864964d6669f0e55541addd1c36953753f642b927d9e21d8f35f7b37da6f3b2b0db0b321c29a9dc2e8ae640bbde57b49e076366f153 WHIRLPOOL 953ea1b5ddcd668ee7c1ef0a63556541a3953695bafaba6fc6213070ad464dd4a421a2ef6a9c79e40fc9829a05cf6ed5406b669eb9f720c297d24422989bb298 |
24 |
+DIST pony-0.3.0.tar.gz 950828 SHA256 4b0fa26dd194663f648f8782af79e420bc962281f280233cadecbd9b6cad195f SHA512 59e584afb47d64a37282a459e2871c1a353acc12c9b81f7ec4f966229abca091f2d5c91d9b81e1781436c1185b64e4b430903f76c5a31346f4103003a1790e46 WHIRLPOOL f2d7f2941ccafc90cc2e18965c4d739c908ab23ae94d20210218544e41ae9cb26051bcc278f11b6fb6cb65434ca514590439275adc2102d840e40dd3d015cc7c |
25 |
|
26 |
diff --git a/dev-lang/pony/pony-0.3.0.ebuild b/dev-lang/pony/pony-0.3.0.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..8e196d9 |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/pony/pony-0.3.0.ebuild |
31 |
@@ -0,0 +1,63 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+DESCRIPTION="Compiler for the Pony language" |
39 |
+HOMEPAGE="http://www.ponylang.org/" |
40 |
+SRC_URI="https://github.com/ponylang/ponyc/archive/${PV}.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 |
+RDEPEND="dev-libs/libpcre2 |
49 |
+ dev-libs/openssl:= |
50 |
+ sys-devel/llvm:0/3.6 |
51 |
+ sys-libs/ncurses:= |
52 |
+ sys-libs/zlib |
53 |
+" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ virtual/pkgconfig |
56 |
+" |
57 |
+ |
58 |
+S="${WORKDIR}/ponyc-${PV}" |
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 |
+} |