summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2014-05-26 03:36:21 +0000
committerPatrick Lauer <patrick@gentoo.org>2014-05-26 03:36:21 +0000
commit9cf096e691b7c868fd3630aebe6366f29babd281 (patch)
tree42728754bb70ba3b211c78f0d2fd85c0559969a6 /dev-lang
parentVersion bump. (diff)
downloadgentoo-2-9cf096e691b7c868fd3630aebe6366f29babd281.tar.gz
gentoo-2-9cf096e691b7c868fd3630aebe6366f29babd281.tar.bz2
gentoo-2-9cf096e691b7c868fd3630aebe6366f29babd281.zip
Bump, add moarvm support
(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/rakudo/ChangeLog8
-rw-r--r--dev-lang/rakudo/metadata.xml1
-rw-r--r--dev-lang/rakudo/rakudo-2014.05.ebuild53
3 files changed, 61 insertions, 1 deletions
diff --git a/dev-lang/rakudo/ChangeLog b/dev-lang/rakudo/ChangeLog
index 7a40f0fe8153..ce38e16f5b91 100644
--- a/dev-lang/rakudo/ChangeLog
+++ b/dev-lang/rakudo/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/rakudo
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/rakudo/ChangeLog,v 1.55 2014/04/18 03:39:17 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/rakudo/ChangeLog,v 1.56 2014/05/26 03:36:21 patrick Exp $
+
+*rakudo-2014.05 (26 May 2014)
+
+ 26 May 2014; Patrick Lauer <patrick@gentoo.org> +rakudo-2014.05.ebuild,
+ metadata.xml:
+ Bump, add moarvm support
*rakudo-2014.04 (18 Apr 2014)
diff --git a/dev-lang/rakudo/metadata.xml b/dev-lang/rakudo/metadata.xml
index e83c0705335f..75666cc2c24c 100644
--- a/dev-lang/rakudo/metadata.xml
+++ b/dev-lang/rakudo/metadata.xml
@@ -8,5 +8,6 @@
</maintainer>
<use>
<flag name='parrot'>Build the parrot backend (default)</flag>
+ <flag name='moar'>Build the MoarVM backend (experimental)</flag>
</use>
</pkgmetadata>
diff --git a/dev-lang/rakudo/rakudo-2014.05.ebuild b/dev-lang/rakudo/rakudo-2014.05.ebuild
new file mode 100644
index 000000000000..628891ec76d6
--- /dev/null
+++ b/dev-lang/rakudo/rakudo-2014.05.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/rakudo/rakudo-2014.05.ebuild,v 1.1 2014/05/26 03:36:21 patrick Exp $
+
+EAPI=5
+
+PARROT_VERSION="5.9.0"
+# hack for this specific version, don't copy to future releases
+NQP_VERSION="${PV/01/}"
+
+inherit eutils multilib
+
+DESCRIPTION="A Perl 6 implementation built on the Parrot virtual machine"
+HOMEPAGE="http://rakudo.org/"
+SRC_URI="http://rakudo.org/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +parrot java moar"
+
+RDEPEND=">=dev-lang/parrot-${PARROT_VERSION}:=[unicode]
+ >=dev-lang/nqp-${NQP_VERSION}[parrot?,java?]"
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+src_prepare() {
+ sed -i "s,\$(DOCDIR)/rakudo$,&-${PVR}," tools/build/Makefile-Parrot.in || die
+}
+
+src_configure() {
+ use parrot && myconf+="parrot,"
+ use java && myconf+="jvm,"
+ use moar && myconf+="moar,"
+ perl Configure.pl --backends=${myconf} --prefix=/usr || die
+}
+
+src_test() {
+ emake -j1 test || die
+}
+
+src_install() {
+ emake -j1 DESTDIR="${ED}" install || die
+
+ dodoc CREDITS README.md docs/ChangeLog docs/ROADMAP || die
+
+ if use doc; then
+ dohtml -A svg docs/architecture.html docs/architecture.svg || die
+ dodoc docs/*.pod || die
+ docinto announce
+ dodoc docs/announce/* || die
+ fi
+}