commit: 7a07d22ff8bceeeaaca735bd28ced729368eb166 Author: Hans de Graaff <hans <AT> degraaff <DOT> org> AuthorDate: Sun Oct 23 05:28:07 2016 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Oct 23 05:28:07 2016 +0000 URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=7a07d22f
dev-lang/pony: add 0.7.0 Package-Manager: portage-2.3.0 dev-lang/pony/Manifest | 1 + dev-lang/pony/pony-0.7.0.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-lang/pony/Manifest b/dev-lang/pony/Manifest index 38943d6..d68657e 100644 --- a/dev-lang/pony/Manifest +++ b/dev-lang/pony/Manifest @@ -1,3 +1,4 @@ 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 DIST pony-0.6.0.tar.gz 973747 SHA256 7e0269aa95caa49ffaa07ccfcf4ea1ea372d01ed5deda48a48271e62ea852322 SHA512 1f8b3108a64d8927106ae8142c69b919c6916c50bd591438330943c5f25b5c66a0f7e5ccdec7077bf9e77d45a89253c70ccfe85a468bd8f4034c35ba628ca039 WHIRLPOOL 9ec382db07a71f8b53951c24df79f4d206b3130d62d08a24f431518dea5bd4f71168c9cd7b4296488a20eacefa3e87c6a19ce1a9937bee60ee975a2899e8c2f3 +DIST pony-0.7.0.tar.gz 978408 SHA256 22f8564d4b937564840557b8bc5a6f19cf28d4fbe5259921eeb715a9c9d19f7b SHA512 053ed843ef81a32fbcbc50867c448a500fa42016831bb4561385ea862519432b85d3da72ccb4a97ad87a6c867e43cd2a27b9125987d18dde1a4901d77769df57 WHIRLPOOL 2c0991b736ea3234dde463d7a94e138a85308d5943b3943a12524065573db31f71556e6e693a6ae34618a78b269119be4313db628d13133c3b2ced8b3c400cd6 diff --git a/dev-lang/pony/pony-0.7.0.ebuild b/dev-lang/pony/pony-0.7.0.ebuild new file mode 100644 index 0000000..8e196d9 --- /dev/null +++ b/dev-lang/pony/pony-0.7.0.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 +}
