aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Brewer <tomboy64@sina.cn>2016-05-18 19:43:55 +0200
committerMatthew Brewer <tomboy64@sina.cn>2016-05-18 19:44:55 +0200
commit93e8b224454bfdb38b22a8572eadafce6410e358 (patch)
tree7b30664fb2ccef0f27e035676a44ec20183b4717 /dev-lang/nqp/nqp-9999.ebuild
parentchroot-here.sh v1.0 (diff)
downloadtbc-93e8b224454bfdb38b22a8572eadafce6410e358.tar.gz
tbc-93e8b224454bfdb38b22a8572eadafce6410e358.tar.bz2
tbc-93e8b224454bfdb38b22a8572eadafce6410e358.zip
dev-lang/nqp: 2016.04 (experimental\!)
Diffstat (limited to 'dev-lang/nqp/nqp-9999.ebuild')
-rw-r--r--dev-lang/nqp/nqp-9999.ebuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/dev-lang/nqp/nqp-9999.ebuild b/dev-lang/nqp/nqp-9999.ebuild
index 4354072..6351216 100644
--- a/dev-lang/nqp/nqp-9999.ebuild
+++ b/dev-lang/nqp/nqp-9999.ebuild
@@ -20,26 +20,27 @@ HOMEPAGE="http://rakudo.org/"
LICENSE="Artistic-2"
SLOT="0"
-IUSE="doc clang java +moar test"
+IUSE="doc clang java +moar +system-libs test"
REQUIRED_USE="|| ( java moar )"
RDEPEND="java? ( >=virtual/jre-1.7:*
- dev-java/asm:4
- dev-java/jline:0 )
+ system-libs? (
+ dev-java/asm:4
+ dev-java/jline:0
+ )
+ )
moar? ( ~dev-lang/moarvm-${PV}[clang=] )
dev-libs/libffi"
DEPEND="${RDEPEND}
clang? ( sys-devel/clang )
java? ( >=virtual/jdk-1.7:* )
dev-lang/perl"
-PATCHES=( "${FILESDIR}/enable-external-jars.patch" )
pkg_setup() {
use java && java-pkg-2_pkg_setup
}
src_prepare() {
- eapply "${PATCHES[@]}"
eapply_user
use java && java-pkg-2_src_prepare
}
@@ -54,17 +55,20 @@ src_unpack() {
}
src_configure() {
- # 2016.04 doesn't like our jna-3.4.1
- # keep testing against it
local backends
use java && backends+="jvm,"
use moar && backends+="moar"
local myconfargs=(
"--backend=${backends}"
+ "--prefix=/usr" )
+
+ # 2016.04 doesn't like our jna-3.4.1
+ # keep testing against it
+ use system-libs && myconfargs+=(
"--with-asm=$(echo $(java-pkg_getjars asm-4) | tr : '\n' | grep '/asm\.jar$')"
"--with-asm-tree=$(echo $(java-pkg_getjars asm-4) | tr : '\n' | grep '/asm-tree\.jar$')"
- "--with-jline=$(echo $(java-pkg_getjars jline) | tr : '\n' | grep '/jline\.jar$')"
- "--prefix=/usr" )
+ "--with-jline=$(echo $(java-pkg_getjars jline) | tr : '\n' | grep '/jline\.jar$')" )
+
perl Configure.pl "${myconfargs[@]}" || die
}