summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2017-04-25 13:10:12 +0200
committerPatrick Lauer <patrick@gentoo.org>2017-04-25 13:10:30 +0200
commitbefea81e2c5289b1492ade5d804272065e4c7f32 (patch)
treed36197eb30caa4520930a50f954f083faa664610 /dev-lang
parentdev-lang/nqp: Bump (diff)
downloadgentoo-befea81e2c5289b1492ade5d804272065e4c7f32.tar.gz
gentoo-befea81e2c5289b1492ade5d804272065e4c7f32.tar.bz2
gentoo-befea81e2c5289b1492ade5d804272065e4c7f32.zip
dev-lang/rakudo: Bump
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/rakudo/Manifest1
-rw-r--r--dev-lang/rakudo/rakudo-2017.04.2.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-lang/rakudo/Manifest b/dev-lang/rakudo/Manifest
index a5cf337cafdb..9e66647da6b1 100644
--- a/dev-lang/rakudo/Manifest
+++ b/dev-lang/rakudo/Manifest
@@ -4,3 +4,4 @@ DIST rakudo-2016.12.tar.gz 2843706 SHA256 e5b1b7ed8e6e5eb26eae75691e90a61255d87b
DIST rakudo-2017.01.tar.gz 2868425 SHA256 2651f60f3123aeb015e9fa11d55c5b506abb88a1725f1fdd801dd3ea34f2a783 SHA512 4de0ce2534cde19676b7f1d88dd80d1c4ad65ba16c86eba97dac09d703fa0aade6d163ec5cbfc2226b6b6bf096121100c2f3fea4202b6e071b5e96077ecaa6bf WHIRLPOOL 1f749eb30121a1480aca749a0c3a9e71f5e9d637c89e3fbe324030797c6bf3566ebc24e394b36d464460419d1bb40bc7feca3ff924086f0552931e8e0a13b4f9
DIST rakudo-2017.02.tar.gz 2886120 SHA256 475aafbcdaf4c9ed0ac43cafb86e94a204b7124b394b94f3a7657820f3801848 SHA512 67dd0686c0604aebf79e6499c1e6b332e3878a59b8eec25d4993caa00e673597a77391fa69b928b0cec1ab0c6d281a83cfef72f79ed512ee74701712b1446b10 WHIRLPOOL 98fb76e270e36f84f7556aee6a7725f6c8ed2119ae8c12cafa18223ef711b3a5a0a780cfdb8079077214b7e142207dff88ad82b89a1a1bb7ec48a7da40486284
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
diff --git a/dev-lang/rakudo/rakudo-2017.04.2.ebuild b/dev-lang/rakudo/rakudo-2017.04.2.ebuild
new file mode 100644
index 000000000000..926e2b4d18d8
--- /dev/null
+++ b/dev-lang/rakudo/rakudo-2017.04.2.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="${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-2017.04:${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
+}