1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 inherit eutils multilib versionator
14 DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
15 HOMEPAGE="http://rakudo.org/"
16 SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
20 KEYWORDS="~x86 ~amd64"
22 REQUIRED_USE="|| ( java moar )"
25 java? ( >=virtual/jre-1.7 )
26 moar? ( ~dev-lang/moarvm-${PV} )
29 java? ( >=virtual/jdk-1.7 )
32 S=${WORKDIR}/perl6-nqp-${GITCRAP}
35 use java && myconf+="jvm,"
36 use moar && myconf+="moar,"
37 perl Configure.pl --backend=${myconf} --prefix=/usr || die
38 # dirty hack to make dyncall not fail
39 sed -i -e 's/-Werror=missing-prototypes//' Makefile || die
40 sed -i -e 's/-Werror=missing-declarations//' Makefile || die
41 sed -i -e 's/-Werror=strict-prototypes//' Makefile || die
43 # more dirty hack to allow building with newer gcc
44 sed -i -e 's/-Werror=implicit-function-declaration//' Makefile || die
45 sed -i -e 's/-Werror=nested-externs//' Makefile || die
57 emake DESTDIR="${ED}" install || die
59 dodoc CREDITS README.pod || die
62 dodoc -r docs/* || die