commit:     5138906abf43e308f60962fe015fa4d455c1623e
Author:     Hans de Graaff <hans <AT> degraaff <DOT> org>
AuthorDate: Sun Oct 16 05:23:17 2016 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 05:23:17 2016 +0000
URL:        https://gitweb.gentoo.org/dev/graaff.git/commit/?id=5138906a

dev-lang/pony: add 0.5.1

Package-Manager: portage-2.3.0

 dev-lang/pony/Manifest          |  1 +
 dev-lang/pony/metadata.xml      |  2 +-
 dev-lang/pony/pony-0.5.1.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 65 insertions(+), 1 deletion(-)

diff --git a/dev-lang/pony/Manifest b/dev-lang/pony/Manifest
index 7474693..51c5770 100644
--- a/dev-lang/pony/Manifest
+++ b/dev-lang/pony/Manifest
@@ -2,3 +2,4 @@ DIST pony-0.2.1.20160303.tar.gz 846774 SHA256 
9c67b4a86b4dc4e2747512224401536180
 DIST pony-0.2.1.20160331.tar.gz 862815 SHA256 
a773855e038ff345c2387ae9eb67be74791e5684cb694a0029ef6930255e88dd SHA512 
602b9159466c81f2473974b04cd53340e8aa018ba6faae7029e430cd5aad164f0892dc79e972dd973d0d3177f09793afd4878a8f545f557aea0b5a5dc6ac5e2d
 WHIRLPOOL 
ffc6a4c68f9eaff901d792d498d95812aa3c8f072c02df1e3ee5341b74df3fa40e7f1954b068dbb039bdfd5e898d8e668eb5acebcaab3a87a404121f1812838c
 DIST pony-0.2.1.20160615.tar.gz 915674 SHA256 
92950a618c0f822e84d53db66692f0dc207a40cdc66f155f8b2fc4be0cbc322b SHA512 
1bcb63621a4cd44eed7da864964d6669f0e55541addd1c36953753f642b927d9e21d8f35f7b37da6f3b2b0db0b321c29a9dc2e8ae640bbde57b49e076366f153
 WHIRLPOOL 
953ea1b5ddcd668ee7c1ef0a63556541a3953695bafaba6fc6213070ad464dd4a421a2ef6a9c79e40fc9829a05cf6ed5406b669eb9f720c297d24422989bb298
 DIST pony-0.3.0.tar.gz 950828 SHA256 
4b0fa26dd194663f648f8782af79e420bc962281f280233cadecbd9b6cad195f SHA512 
59e584afb47d64a37282a459e2871c1a353acc12c9b81f7ec4f966229abca091f2d5c91d9b81e1781436c1185b64e4b430903f76c5a31346f4103003a1790e46
 WHIRLPOOL 
f2d7f2941ccafc90cc2e18965c4d739c908ab23ae94d20210218544e41ae9cb26051bcc278f11b6fb6cb65434ca514590439275adc2102d840e40dd3d015cc7c
+DIST pony-0.5.1.tar.gz 967344 SHA256 
3d78952ca0912ca1a3b3a6d8c51a87c9bcfcb03666eb9880b76d0f9755843786 SHA512 
8bae478241f4a238d9243b756dd5b7c505b5bfd9d26730127eda425e946ae49efc3269dad26811855f48da8fa01114c82f779e17e4cda2f0a44850d544058187
 WHIRLPOOL 
cf7b23cc36fd7962db743f8da96891ebe625572f71fa48c1daa4f576ee2e846a7b48f27d4269b3f4f0b3b7cc59799bee0523ce524b50eed7fe8314260834dc2d

diff --git a/dev-lang/pony/metadata.xml b/dev-lang/pony/metadata.xml
index f977299..bd70e45 100644
--- a/dev-lang/pony/metadata.xml
+++ b/dev-lang/pony/metadata.xml
@@ -1,5 +1,5 @@
 <?xml version = '1.0' encoding = 'UTF-8'?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<maintainer><email>gra...@gentoo.org</email></maintainer>
+<maintainer type="person"><email>gra...@gentoo.org</email></maintainer>
 </pkgmetadata>

diff --git a/dev-lang/pony/pony-0.5.1.ebuild b/dev-lang/pony/pony-0.5.1.ebuild
new file mode 100644
index 0000000..8e196d9
--- /dev/null
+++ b/dev-lang/pony/pony-0.5.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Compiler for the Pony language"
+HOMEPAGE="http://www.ponylang.org/";
+SRC_URI="https://github.com/ponylang/ponyc/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="strip"
+
+RDEPEND="dev-libs/libpcre2
+       dev-libs/openssl:=
+       sys-devel/llvm:0/3.6
+       sys-libs/ncurses:=
+       sys-libs/zlib
+"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+"
+
+S="${WORKDIR}/ponyc-${PV}"
+
+src_prepare() {
+       # bug #457530 means that '-ltinfo' might be needed besides '-lncurses' 
if a USE flag is enabled
+       # for sys-libs/ncurses, so we use pkg-config to get the ncurses libs
+       sed -i \
+               -e 's/-Werror//' \
+               -e 's/-O3//' \
+               -e 's/LINKER_FLAGS =/LINKER_FLAGS = $(LDFLAGS)/' \
+               -e 's/-march=$(arch)/$(CFLAGS)/' \
+               -e 's#ln -sf $(destdir)#ln -sf ../lib/pony/$(tag)#' \
+               -e "s#-lncurses#$(pkg-config ncurses --libs)#" \
+               Makefile
+
+       gcc_lib_dir="$(gcc-config -L | cut -d ':' -f 1)"
+       sed -i \
+               -e "s#/lib/x86_64-linux-gnu#${gcc_lib_dir}#" \
+               src/libponyc/codegen/genexe.c
+
+       # Avoid net/Broadcast test since it requires a working network
+       # connection.
+       sed -i -e '/test(_TestBroadcast)/d' packages/net/_test.pony || die
+}
+
+common_make_args="config=release prefix=\"${D}usr\" verbose=yes"
+
+src_compile() {
+       emake ${common_make_args}
+}
+
+src_test() {
+       emake ${common_make_args} test
+}
+
+src_install() {
+       emake ${common_make_args} install
+}

Reply via email to