From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 071C9139694 for ; Mon, 26 Jun 2017 13:50:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 352B52540A9; Mon, 26 Jun 2017 13:50:51 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 02BD221C06D for ; Mon, 26 Jun 2017 13:50:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 993813417B6 for ; Mon, 26 Jun 2017 13:50:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C6BF749B for ; Mon, 26 Jun 2017 13:50:48 +0000 (UTC) From: "Patrick Lauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick Lauer" Message-ID: <1498485040.797414b491d8e692718693afae7e6c5f88772bb7.patrick@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/rakudo/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/rakudo/Manifest dev-lang/rakudo/rakudo-2017.06.ebuild X-VCS-Directories: dev-lang/rakudo/ X-VCS-Committer: patrick X-VCS-Committer-Name: Patrick Lauer X-VCS-Revision: 797414b491d8e692718693afae7e6c5f88772bb7 X-VCS-Branch: master Date: Mon, 26 Jun 2017 13:50:48 +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: 98cfc5cb-9f58-49c2-bfa0-c2695b05c4b8 X-Archives-Hash: eec3efd0d27ab072f65e76a81fee66ee commit: 797414b491d8e692718693afae7e6c5f88772bb7 Author: Patrick Lauer gentoo org> AuthorDate: Mon Jun 26 13:47:01 2017 +0000 Commit: Patrick Lauer gentoo org> CommitDate: Mon Jun 26 13:50:40 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=797414b4 dev-lang/rakudo: Bump Package-Manager: Portage-2.3.6, Repoman-2.3.2 dev-lang/rakudo/Manifest | 1 + dev-lang/rakudo/rakudo-2017.06.ebuild | 72 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest index f92ae729eff..6f551eb9b83 100644 --- a/dev-lang/rakudo/Manifest +++ b/dev-lang/rakudo/Manifest @@ -6,3 +6,4 @@ DIST rakudo-2017.02.tar.gz 2886120 SHA256 475aafbcdaf4c9ed0ac43cafb86e94a204b712 DIST rakudo-2017.03.tar.gz 2901724 SHA256 2dabc619c7ba3a935dd1b12caa8151cd220f18d516d807e268787dd10eefad09 SHA512 1f38db076cfa6932093d96b08573ffa691f7e68a676ce56826d64fc36828c9712f717df0c569d860b364aff587f974854bd47d5fb77b2d0c49e7e0d986466be0 WHIRLPOOL 8662b740870335d75be2b4089c56be565c3cbde673bcf041130c337edb01cf4c6b025112acfbaf4f616a2cd3f023a08309ec76eb2b54cf25248b09b3e4585f9c DIST rakudo-2017.04.2.tar.gz 2937523 SHA256 3085e07241d8c483b8d9c7ca65dbf03c02fc8d22a56f9443e5316f6bd9673b7a SHA512 e4a87b7c8b1b0a51ffa3c20150b0cd8623b8a54d55d3c5bbb369f0ccbc732cd809247a8a4662838b95a8783c750009ea3e5b9db113d699a08a8b3c198e0534d7 WHIRLPOOL 2d2d45e04e7662c44296cd661b3d83311df64c44405967ed131970231c0bd57d6cf30d0363fe36102a5f8bda3f8aa0826bb70e53b593993ad5a13ea3b100a040 DIST rakudo-2017.05.tar.gz 2958481 SHA256 5ec50c0b12255109341eb60535a7dcae0fd68672d272f66ba038521799ae3fe4 SHA512 f285b8920c6f2f5ba8b75c47ab5327470fa08987a207bdb5d0120b89a4b45a3a9a66641887629357889b62957a25fcfc64a88f1af177a5331fc30c3aae72deaa WHIRLPOOL 32a9f90a84d5e39c752d78434a94d85775c621b5aa16334b2e30a72e423cceeeb9ba9e95da642884fe791503196d86d0384265da72d94c17e3f45f166f810799 +DIST rakudo-2017.06.tar.gz 2963199 SHA256 f4ff7b27edcbe44a7e80956f17abf1bb19e6d168d75d61fdd7f59d97988e429b SHA512 fff211f200f9ff949ae7608edae099e08177e0edf6fee4f6dfb5357779f79ea1bb6f6ec629742744d2720979cb9d012f92730d6361e76e87a3550a33e203f6d5 WHIRLPOOL 99b81c465179d78f9557970fa6da5c76298b970173685f9830cb0fba6ba97eeb7fb488604a47061cb80050b17107ea56a5d7e3f2e9d1b074511ec0f87eb357b4 diff --git a/dev-lang/rakudo/rakudo-2017.06.ebuild b/dev-lang/rakudo/rakudo-2017.06.ebuild new file mode 100644 index 00000000000..0916271bb83 --- /dev/null +++ b/dev-lang/rakudo/rakudo-2017.06.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit java-pkg-opt-2 + +DESCRIPTION="A compiler for the Perl 6 programming language" +HOMEPAGE="http://rakudo.org" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/rakudo/${PN}.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="https://rakudo.perl6.org/downloads/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="Artistic-2" +SLOT="0" +# TODO: add USE="javascript" once that's usable in nqp +IUSE="clang java +moar test" +REQUIRED_USE="|| ( java moar )" + +CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]" +RDEPEND="${CDEPEND} + java? ( >=virtual/jre-1.7 )" +DEPEND="${CDEPEND} + clang? ( sys-devel/clang ) + java? ( >=virtual/jdk-1.7 ) + >=dev-lang/perl-5.10" + +pkg_pretend() { + if has_version dev-lang/rakudo; then + ewarn "Rakudo is known to fail compilation/installation with Rakudo" + ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo," + ewarn "then do a new installation." + ewarn "(see Bug #584394)" + fi +} + +src_configure() { + local backends + use moar && backends+="moar," + use java && backends+="jvm" + + local myargs=( + "--prefix=/usr" + "--sysroot=/" + "--sdkroot=/" + "--backends=${backends}" + ) + + perl Configure.pl "${myargs[@]}" || die + + if use java; then + NQP=$(java-pkg_getjars --with-dependencies nqp) + fi +} + +src_compile() { + emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" +} + +src_install() { + emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install +} + +src_test() { + RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default +}