diff options
author | Patrick Lauer <patrick@gentoo.org> | 2016-10-20 18:43:11 +0200 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2016-10-20 18:49:55 +0200 |
commit | a7296de8d530333a2aaa523bec1c2b148e71de31 (patch) | |
tree | d5cbe3808689d23c104a3112dcc255c5954e9f84 /dev-lang/rakudo | |
parent | dev-lang/nqp: Bump (diff) | |
download | gentoo-a7296de8d530333a2aaa523bec1c2b148e71de31.tar.gz gentoo-a7296de8d530333a2aaa523bec1c2b148e71de31.tar.bz2 gentoo-a7296de8d530333a2aaa523bec1c2b148e71de31.zip |
dev-lang/rakudo: Bump
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-lang/rakudo')
-rw-r--r-- | dev-lang/rakudo/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/rakudo/rakudo-2016.10.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest index 2537bc77f639..8914ba876e86 100644 --- a/dev-lang/rakudo/Manifest +++ b/dev-lang/rakudo/Manifest @@ -5,3 +5,4 @@ DIST rakudo-2016.06.tar.gz 2751927 SHA256 239a0b50cfd60026ba4bb2a20b5130feaee144 DIST rakudo-2016.07.1.tar.gz 2767818 SHA256 dc71e6cccf71da98846800426a3fa260eb5913e7a3c100a89acc11d7d128d0d1 SHA512 ef5360c33c52d2628745d4d2837aca766e710452246a57cf3305d94cbda292d67e3cce31dbb846c5b7e4f68b3db38cf26dce40790a6fc28770c552da509cdece WHIRLPOOL 72ef2f5bbd0e1af5b2157449106c68d7dcc21e7981e658eafa88f0b29f98653bbe5bf15646a71e704c1a622597bbfbe6427e888c77baccfa62a475aa42b897f8 DIST rakudo-2016.08.1.tar.gz 2779156 SHA256 ab0688963b9d19e26cea76eb5e852f6c68da650a9d209b868c21bde904ee34fe SHA512 3edae590c7dd87dfaca821c8676c5256c19e53f93bd5fd534ae235ae5a2449d0329f0b1311b6b344ec7a258f9eeae6a78e904a02d57c49a6b32ab1914ff2ebe8 WHIRLPOOL 9435477144e0dd45e58e831f5239e95104765a3be5411ba9772324af0c803fd43a9f903f107b3b9186409fb3b5af227e923fcf213052603291a242412fe1d2be DIST rakudo-2016.09.tar.gz 2789496 SHA256 fe280bcc511a3f25b805039e842b554f5f0f9c6255043a8fa3d6a1e4f35e47e7 SHA512 68f45dba174d1421b95b30e4ee5aef658576c4d0845d879b6e67e1587166f4438c05da85dee294498da947089c866bbbd29270e967777d72b953557d59943387 WHIRLPOOL b71bc10bcc5f26bd9df8270b10fb4b232df924333628fb32cacb874624604e98f0415aaa7d30ce86bbc0c58152b210a8421996e0bce4cda58055a6118947ee28 +DIST rakudo-2016.10.tar.gz 2798155 SHA256 a1446049610a5de9609a8570be3f916c48fe90027094ae7c30f82ffafcea1a7c SHA512 b9b4ccd4cd3bbc442b2e1989c43ad76e8a2710562f9006bb43052bbdd6b5f70c845ab2d22260167c3a8a95437f6db2f562dc4db613bf95802e35bd3959f255fe WHIRLPOOL 866a0d6723d27d67f5c546984982a48ec4e9599fe98e2be6648e40b01c60fd028eeb63d2f31da7234995f61ad1cd7ca71f38f6fe2f88fd5aeff7cac32288ebff diff --git a/dev-lang/rakudo/rakudo-2016.10.ebuild b/dev-lang/rakudo/rakudo-2016.10.ebuild new file mode 100644 index 000000000000..babfa7fff0bf --- /dev/null +++ b/dev-lang/rakudo/rakudo-2016.10.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="${HOMEPAGE}/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 +} |