dev-lang/nqp - 2024.10 (amano-kenji)

Search

Install

Install this version:

emerge -a =dev-lang/nqp-2024.10

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-lang/nqp-2024.10

Or alternatively:

emerge --autounmask-write -a =dev-lang/nqp-2024.10

Package Information

Description:
Not Quite Perl, a Raku bootstrapping compiler
Homepage:
https://rakudo.org https://github.com/Raku/nqp
License:
Artistic-2

Ebuild Details

Version EAPI Keywords Slot
2024.10 8 ~amd64 ~x86 0
View Raw Ebuild
EAPI=8

DESCRIPTION="Not Quite Perl, a Raku bootstrapping compiler"
HOMEPAGE="https://rakudo.org
	https://github.com/Raku/nqp"
SRC_URI="https://github.com/Raku/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="Artistic-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RESTRICT="!test? ( test )"

CDEPEND="
	~dev-lang/moarvm-${PV}
"
RDEPEND="
	${CDEPEND}
"
DEPEND="${CDEPEND}"
BDEPEND="
	${CDEPEND}
	dev-lang/perl
"

pkg_pretend() {
	if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
		ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
		ewarn "already being installed. So if it fails, try uninstalling both"
		ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
		ewarn "(see Bug #584394)"
	fi
}

src_configure() {
	local myconfargs=(
		"--backend=moar"
		"--prefix=${EPREFIX}/usr"
	)

	perl Configure.pl "${myconfargs[@]}" || die
}

src_compile() {
	emake -j1
}

src_test() {
	emake -j1 test
}

src_install() {
	emake DESTDIR="${ED}" install

	dodoc CREDITS README.pod
	use doc && dodoc -r docs/*
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-lang/nqp | euse -E <flag> -p dev-lang/nqp | euse -D <flag> -p dev-lang/nqp

Global/Standard Flags

doc

Dependencies

DEPEND

	~dev-lang/moarvm-2024.10

RDEPEND

	
	~dev-lang/moarvm-2024.10

BDEPEND

	
	~dev-lang/moarvm-2024.10

	dev-lang/perl

Manifest for 2024.10

Type File Size Source URLs
DIST nqp-2024.10.tar.gz 9727368 bytes https://github.com/Raku/nqp/releases/download/2024.10/nqp-2024.10.tar.gz