From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C021059CA3 for ; Tue, 8 Mar 2016 05:49:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41531E080E; Tue, 8 Mar 2016 05:49:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B674E080E for ; Tue, 8 Mar 2016 05:49:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7CDA4340AC7 for ; Tue, 8 Mar 2016 05:49:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A449A16C5 for ; Tue, 8 Mar 2016 05:49:18 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1457210719.592073cec394ff6a79d3dde262c3b77d1561fd6f.graaff@gentoo> Subject: [gentoo-commits] dev/graaff:master commit in: dev-lang/pony/ X-VCS-Repository: dev/graaff X-VCS-Files: dev-lang/pony/Manifest dev-lang/pony/metadata.xml dev-lang/pony/pony-0.2.1.20160303.ebuild X-VCS-Directories: dev-lang/pony/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 592073cec394ff6a79d3dde262c3b77d1561fd6f X-VCS-Branch: master Date: Tue, 8 Mar 2016 05:49:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5fef077d-e0bc-4f5e-bc2a-6a3368715614 X-Archives-Hash: ebabce4e5272b49f1382055810a00c0d commit: 592073cec394ff6a79d3dde262c3b77d1561fd6f Author: Hans de Graaff degraaff org> AuthorDate: Sat Mar 5 20:45:19 2016 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Mar 5 20:45:19 2016 +0000 URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=592073ce dev-lang/pony: add 20160303 snapshot Package-Manager: portage-2.2.26 dev-lang/pony/Manifest | 1 + dev-lang/pony/metadata.xml | 5 +++ dev-lang/pony/pony-0.2.1.20160303.ebuild | 65 ++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/dev-lang/pony/Manifest b/dev-lang/pony/Manifest new file mode 100644 index 0000000..b7c0447 --- /dev/null +++ b/dev-lang/pony/Manifest @@ -0,0 +1 @@ +DIST pony-0.2.1.20160303.tar.gz 846774 SHA256 9c67b4a86b4dc4e2747512224401536180253e97c1c8bffc55e3adc63a7f469f SHA512 8fbdc2fa44ed9e9c38c14f96ca385f6fee3c375008db6882b069aaec9fd36739390503968717ee65766f72e29d89dfe2a034cb7e4c84009b2e6b056f1f4ad240 WHIRLPOOL 2ab7b2808c41cd45cd5363f17c30316112f5aa3e54d006d2cfeccd1992b572ef89a5a84978044ef070def3e76a618a2e7d42fd3f2e6248da5dd31fe62726aed5 diff --git a/dev-lang/pony/metadata.xml b/dev-lang/pony/metadata.xml new file mode 100644 index 0000000..f977299 --- /dev/null +++ b/dev-lang/pony/metadata.xml @@ -0,0 +1,5 @@ + + + +graaff@gentoo.org + diff --git a/dev-lang/pony/pony-0.2.1.20160303.ebuild b/dev-lang/pony/pony-0.2.1.20160303.ebuild new file mode 100644 index 0000000..c98feee --- /dev/null +++ b/dev-lang/pony/pony-0.2.1.20160303.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +COMMIT=d888dab8bdcc4e02ce043f41cad62a9adcc88b5d + +DESCRIPTION="Compiler for the Pony language" +HOMEPAGE="http://www.ponylang.org/" +SRC_URI="https://github.com/CausalityLtd/ponyc/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="strip" + +S="${WORKDIR}/ponyc-${COMMIT}" + +RDEPEND="dev-libs/libpcre2 + dev-libs/openssl:= + sys-devel/llvm:0/3.6 + sys-libs/ncurses:= + sys-libs/zlib +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +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 +}