diff options
author | Patrick Lauer <patrick@gentoo.org> | 2014-02-18 08:54:11 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2014-02-18 08:54:11 +0000 |
commit | 3e3ad6bf2747f003f43fa481822df001b0b489f0 (patch) | |
tree | 23c51d5a12e7298d7fe611251e1d3c2b0613ee28 /dev-lang | |
parent | Bump -7.1 development version (diff) | |
download | gentoo-2-3e3ad6bf2747f003f43fa481822df001b0b489f0.tar.gz gentoo-2-3e3ad6bf2747f003f43fa481822df001b0b489f0.tar.bz2 gentoo-2-3e3ad6bf2747f003f43fa481822df001b0b489f0.zip |
Enable moarvm backend. Still experimental, but passes tests and looks neat
(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/nqp/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/nqp/nqp-2014.01-r1.ebuild | 54 |
2 files changed, 60 insertions, 1 deletions
diff --git a/dev-lang/nqp/ChangeLog b/dev-lang/nqp/ChangeLog index 117301335c54..b6d0619d120f 100644 --- a/dev-lang/nqp/ChangeLog +++ b/dev-lang/nqp/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/nqp # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/nqp/ChangeLog,v 1.38 2014/02/11 02:39:30 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/nqp/ChangeLog,v 1.39 2014/02/18 08:54:11 patrick Exp $ + +*nqp-2014.01-r1 (18 Feb 2014) + + 18 Feb 2014; Patrick Lauer <patrick@gentoo.org> +nqp-2014.01-r1.ebuild: + Enable moarvm backend. Still experimental, but passes tests and looks neat *nqp-2014.01 (11 Feb 2014) diff --git a/dev-lang/nqp/nqp-2014.01-r1.ebuild b/dev-lang/nqp/nqp-2014.01-r1.ebuild new file mode 100644 index 000000000000..190f9c2e8f13 --- /dev/null +++ b/dev-lang/nqp/nqp-2014.01-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/nqp/nqp-2014.01-r1.ebuild,v 1.1 2014/02/18 08:54:11 patrick Exp $ + +EAPI=5 + +inherit eutils multilib + +GITCRAP=d6bd4cf +PARROT_VERSION="5.9.0" + +DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler" +HOMEPAGE="http://rakudo.org/" +SRC_URI="http://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="Artistic-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="doc +parrot java moar" +REQUIRED_USE="|| ( parrot java moar )" + +RDEPEND="parrot? ( >=dev-lang/parrot-${PARROT_VERSION}[unicode] ) + java? ( virtual/jre ) + moar? ( =dev-lang/moarvm-${PV} )" +DEPEND="${RDEPEND} + java? ( virtual/jdk ) + dev-lang/perl" + +S=${WORKDIR}/perl6-nqp-${GITCRAP} + +src_configure() { + use java && myconf+="jvm," + use parrot && myconf+="parrot," + use moar && myconf+="moar," + perl Configure.pl --backend=${myconf} --prefix=/usr || die +} + +src_compile() { + emake -j1 || die +} + +src_test() { + emake -j1 test || die +} + +src_install() { + emake DESTDIR="${ED}" install || die + + dodoc CREDITS README.pod || die + + if use doc; then + dodoc -r docs/* || die + fi +} |