mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
build fails with: ===SORRY!=== The nqp-m binary is too old To automatically clone (git) and build a copy of NQP 2018.04, try re-running Configure.pl with the '--gen-moar' option. Or, use '--prefix=' to explicitly specify the path where the NQP and MoarVM executables can be found that are use to build Rakudo.
56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
|
|
# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
|
|
pkgname=rakudo
|
|
pkgver=2018.04
|
|
pkgrel=0
|
|
pkgdesc="A compiler for the Perl 6 programming language"
|
|
url="http://rakudo.org/"
|
|
arch="all !x86"
|
|
license="Artistic-2.0"
|
|
depends="nqp libffi"
|
|
makedepends="perl-utils moarvm-dev libffi-dev"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="${pkgname}-${pkgver}.tar.gz::https://github.com/rakudo/rakudo/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/rakudo-"$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
perl Configure.pl --prefix=/usr --backends=moar
|
|
make M_INCPATH=/usr/include/moar
|
|
make DESTDIR=install install
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
install -Dm755 install/usr/bin/perl6 "$pkgdir"/usr/bin/perl6
|
|
for file in $(find install/usr/share -type f); do
|
|
install -Dm644 ${file} "$pkgdir"/usr/share/${file#install/usr/share}
|
|
done
|
|
}
|
|
|
|
dev() {
|
|
cd "$builddir"
|
|
install -Dm755 install/usr/bin/perl6-debug-m "$subpkgdir"/usr/bin/perl6-debug-m
|
|
install -Dm755 install/usr/bin/perl6-gdb-m "$subpkgdir"/usr/bin/perl6-gdb-m
|
|
install -Dm755 install/usr/bin/perl6-lldb-m "$subpkgdir"/usr/bin/perl6-lldb-m
|
|
install -Dm755 install/usr/bin/perl6-m "$subpkgdir"/usr/bin/perl6-m
|
|
install -Dm755 install/usr/bin/perl6-valgrind-m "$subpkgdir"/usr/bin/perl6-valgrind-m
|
|
install -Dm755 tools/install-dist.pl "$subpkgdir"/usr/share/perl6/bin/install-dist.pl
|
|
}
|
|
|
|
doc() {
|
|
cd "$builddir"
|
|
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
|
|
for file in CONTRIBUTING.md CREDITS INSTALL.txt LICENSE README.md VERSION docs; do
|
|
cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
|
|
done
|
|
}
|
|
|
|
sha512sums="d3e50fd1378bffbe6a56e948c44128e68fe070c6eba13a0fc4ca70d40d09cd47fd2902586a5f1af70b3c81caa90bdeb86a4e277a5d8fbf9e48e91c05906a801b rakudo-2018.04.tar.gz"
|