diff options
author | Marshall Brewer <tomboy64@sina.cn> | 2016-06-01 18:28:56 +0200 |
---|---|---|
committer | Amy Winston <amynka@gentoo.org> | 2016-06-02 14:52:38 +0200 |
commit | 2b5ad3fed30af0773ac7ecdd43f7325f68d8cede (patch) | |
tree | 7d9236f24c82528272e691edb5835a40be013c75 /dev-lang | |
parent | dev-lang/rakudo: version bump 2016.05 (diff) | |
download | gentoo-2b5ad3fed30af0773ac7ecdd43f7325f68d8cede.tar.gz gentoo-2b5ad3fed30af0773ac7ecdd43f7325f68d8cede.tar.bz2 gentoo-2b5ad3fed30af0773ac7ecdd43f7325f68d8cede.zip |
dev-lang/rakudo: update 9999 to reflect 2016.05
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/rakudo/rakudo-9999.ebuild | 67 |
1 files changed, 32 insertions, 35 deletions
diff --git a/dev-lang/rakudo/rakudo-9999.ebuild b/dev-lang/rakudo/rakudo-9999.ebuild index c6696c6c104f..821e32f1ac93 100644 --- a/dev-lang/rakudo/rakudo-9999.ebuild +++ b/dev-lang/rakudo/rakudo-9999.ebuild @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=6 +EAPI=5 -inherit java-pkg-2 +inherit java-pkg-opt-2 DESCRIPTION="A compiler for the Perl 6 programming language" HOMEPAGE="http://rakudo.org" @@ -21,63 +21,60 @@ fi LICENSE="Artistic-2" SLOT="0" # TODO: add USE="javascript" once that's usable in nqp -IUSE="clang java moar test" +IUSE="clang java +moar test" +REQUIRED_USE="|| ( java moar )" -RDEPEND="~dev-lang/nqp-${PV}:=[java=,moar=,clang=]" -DEPEND="${RDEPEND} +CDEPEND="~dev-lang/nqp-${PV}:${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" -REQUIRED_USE="|| ( java moar )" -PATCHES=( "${FILESDIR}/${PN}-2016.04-Makefile.in.patch" ) +PATCHES=( "${FILESDIR}/${PN}-2016.04-jna-lib.patch" ) 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." + 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 } -pkg_setup() { - use java && java-pkg-2_pkg_setup -} - 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 - use java && java-pkg-2_src_prepare + epatch "${PATCHES[@]}" + epatch_user } src_configure() { local backends - use java && backends+="jvm," use moar && backends+="moar," - local myargs=( "--prefix=/usr" + use java && backends+="jvm" + + local myargs=( + "--prefix=/usr" "--sysroot=/" "--sdkroot=/" - "--make-install" - "--sdkroot=/" "--backends=${backends}" ) - perl Configure.pl "${myargs[@]}" + + perl Configure.pl "${myargs[@]}" || die + + if use java; then + NQP=$(java-pkg_getjars --with-dependencies nqp) + fi } src_compile() { - emake DESTDIR="${D}" + emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" } -src_test() { - export RAKUDO_PRECOMP_PREFIX=$(mktemp -d) - default +src_install() { + emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install } -src_install() { - emake DESTDIR="${D}" install +src_test() { + RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default } |