aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/rakudo/rakudo-2016.04-r3.ebuild')
-rw-r--r--dev-lang/rakudo/rakudo-2016.04-r3.ebuild26
1 files changed, 8 insertions, 18 deletions
diff --git a/dev-lang/rakudo/rakudo-2016.04-r3.ebuild b/dev-lang/rakudo/rakudo-2016.04-r3.ebuild
index 7421cad..0255978 100644
--- a/dev-lang/rakudo/rakudo-2016.04-r3.ebuild
+++ b/dev-lang/rakudo/rakudo-2016.04-r3.ebuild
@@ -24,14 +24,12 @@ SLOT="0"
IUSE="clang java +moar test"
REQUIRED_USE="|| ( java moar )"
-CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java=,moar=,clang=]"
-
+CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
RDEPEND="${CDEPEND}
- java? ( >=virtual/jre-1.7:* )"
-
+ java? ( >=virtual/jre-1.7 )"
DEPEND="${CDEPEND}
clang? ( sys-devel/clang )
- java? ( >=virtual/jdk-1.7:* )
+ java? ( >=virtual/jdk-1.7 )
>=dev-lang/perl-5.10"
PATCHES=(
@@ -39,24 +37,16 @@ PATCHES=(
"${FILESDIR}/${PN}-jna-lib.patch"
)
-src_prepare() {
- eapply "${PATCHES[@]}"
-
- # yup, this is ugly. but emake doesn't respect DESTDIR.
- for i in Moar JVM; do
- echo "DESTDIR = ${D}" > "${T}/Makefile-${i}.in" || die
- cat "${S}/tools/build/Makefile-${i}.in" >> "${T}/Makefile-${i}.in" || die
- mv "${T}/Makefile-${i}.in" "${S}/tools/build/Makefile-${i}.in" || die
- done
-
- eapply_user
- java-pkg-opt-2_src_prepare
+pkg_pretend() {
+ if has_version dev-lang/rakudo && use java; then
+ die "Rakudo is known to fail compilation with the jvm backend if it's already installed."
+ fi
}
src_configure() {
local backends
use java && backends+="jvm,"
- use moar && backends+="moar,"
+ use moar && backends+="moar"
local myargs=(
"--prefix=/usr"