From 1b09215e217d68f0f1617a453f3184af30ae22ef Mon Sep 17 00:00:00 2001
From: jeremy <jeremy@openbsd.org>
Date: Thu, 13 Jan 2011 00:21:03 +0000
Subject: [PATCH] Enable llvm use by rubinius, now that llvm has been updated
 to 2.8. This enables the JIT compiler, which provides dramatic speedups (~8x
 for some simple tests).

OK @sthen
---
 lang/rubinius/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lang/rubinius/Makefile b/lang/rubinius/Makefile
index 23473b86ce9..3a8032fa11c 100644
--- a/lang/rubinius/Makefile
+++ b/lang/rubinius/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2011/01/07 19:18:43 jeremy Exp $
+# $OpenBSD: Makefile,v 1.7 2011/01/13 00:21:03 jeremy Exp $
 
 SHARED_ONLY=	Yes
 
@@ -7,7 +7,7 @@ COMMENT =	Ruby virtual machine and core library
 V=		1.2.0
 DISTNAME =	rubinius-${V}-20101221
 PKGNAME =	rubinius-$V
-REVISION =	1
+REVISION =	2
 
 CATEGORIES =	lang lang/ruby
 
@@ -28,7 +28,8 @@ MASTER_SITES =	http://asset.rubini.us/
 
 BUILD_DEPENDS =	devel/bison \
 		devel/ruby-rake \
-		devel/libffi
+		devel/libffi \
+		devel/llvm
 LIB_DEPENDS =	databases/gdbm \
 		databases/db/v4 \
 		${MODRUBY_LIB_DEPENDS}
@@ -53,8 +54,7 @@ MAKE_ENV +=		CC="${CC}"
 do-configure:
 	${SUBST_CMD} ${WRKSRC}/rakelib/vm.rake
 	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${MAKE_ENV} ${RUBY} configure \
-		--prefix=${PREFIX}/lib/rubinius --skip-prebuilt --disable-llvm \
-		--rake=${RAKE}
+		--prefix=${PREFIX}/lib/rubinius --skip-prebuilt --rake=${RAKE}
 
 do-build:
 	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} build