aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/moarvm/APKBUILD48
-rw-r--r--testing/nqp/APKBUILD28
-rw-r--r--testing/rakudo/APKBUILD55
3 files changed, 89 insertions, 42 deletions
diff --git a/testing/moarvm/APKBUILD b/testing/moarvm/APKBUILD
index 5b53fa3749..9c9dd23947 100644
--- a/testing/moarvm/APKBUILD
+++ b/testing/moarvm/APKBUILD
@@ -8,48 +8,48 @@ url="http://moarvm.org/"
arch="all"
license="Artistic-2.0"
depends=""
-makedepends="perl gcc musl-dev make"
+makedepends="perl libffi-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
-source="${pkgname}-${pkgver}.tar.gz::http://moarvm.org/releases/MoarVM-$pkgver.tar.gz"
+source="http://moarvm.org/releases/MoarVM-$pkgver.tar.gz"
builddir="$srcdir"/MoarVM-"$pkgver"
build() {
cd "$builddir"
- unset CPPFLAGS CFLAGS
- perl Configure.pl --prefix=/usr
- make
+ unset CPPFLAGS CFLAGS
+ perl Configure.pl --prefix=/usr --has-libffi
+ make
}
check() {
- cd "$builddir"
- LD_LIBRARY_PATH=. ./moar --version
+ cd "$builddir"
+ LD_LIBRARY_PATH=. ./moar --version
}
package() {
cd "$builddir"
- install -Dm755 moar "$pkgdir"/usr/bin/moar
- install -Dm755 libmoar.so "$pkgdir"/usr/lib/libmoar.so
+ install -Dm755 moar "$pkgdir"/usr/bin/moar
+ install -Dm755 libmoar.so "$pkgdir"/usr/lib/libmoar.so
}
dev() {
- cd "$builddir"
- make DESTDIR="$builddir"/install install
- for file in $(find install/usr/include/ -type f); do
- install -Dm644 ${file} "$subpkgdir"/usr/include/moar/${file#install/usr/include}
- done
- for file in $(find install/usr/share/nqp -type f); do
- install -Dm644 ${file} "$subpkgdir"/usr/share/nqp/${file#install/usr/share/nqp}
- done
- install -Dm644 install/usr/share/pkgconfig/moar.pc "$subpkgdir"/usr/share/pkgconfig/moar.pc
+ cd "$builddir"
+ make DESTDIR="$builddir"/install install
+ for file in $(find install/usr/include/ -type f); do
+ install -Dm644 ${file} "$subpkgdir"/usr/include/moar/${file#install/usr/include}
+ done
+ for file in $(find install/usr/share/nqp -type f); do
+ install -Dm644 ${file} "$subpkgdir"/usr/share/nqp/${file#install/usr/share/nqp}
+ done
+ install -Dm644 install/usr/share/pkgconfig/moar.pc "$subpkgdir"/usr/share/pkgconfig/moar.pc
}
doc() {
- cd "$builddir"
- mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
- for file in Artistic2.txt CREDITS LICENSE MANIFEST README.markdown VERSION docs; do
- cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
- done
+ cd "$builddir"
+ mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
+ for file in Artistic2.txt CREDITS LICENSE MANIFEST README.markdown VERSION docs; do
+ cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
+ done
}
-sha512sums="3364a1af68b828de30affa4c21fe691d10353175cc18e815f962f8dcafb63947ce3fd3ae5c10c656b90f4cb02f3fd008a9a99f832d76098c12525b36e46924d0 moarvm-2018.02.tar.gz"
+sha512sums="3364a1af68b828de30affa4c21fe691d10353175cc18e815f962f8dcafb63947ce3fd3ae5c10c656b90f4cb02f3fd008a9a99f832d76098c12525b36e46924d0 MoarVM-2018.02.tar.gz"
diff --git a/testing/nqp/APKBUILD b/testing/nqp/APKBUILD
index dd7763a549..ae266acb0b 100644
--- a/testing/nqp/APKBUILD
+++ b/testing/nqp/APKBUILD
@@ -9,42 +9,34 @@ arch="all"
options="!archcheck" # Arch dependencies are embedded
license="Artistic-2.0"
depends="moarvm"
-makedepends="perl-utils gcc musl-dev make moarvm-dev"
+makedepends="perl-utils moarvm-dev"
install=""
-subpackages="$pkgname-doc $pkgname-examples"
+subpackages="$pkgname-doc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/perl6/nqp/archive/${pkgver}.tar.gz"
builddir="$srcdir"/"$pkgname"-"$pkgver"
build() {
cd "$builddir"
- perl Configure.pl --prefix=/usr --backends=moar
- make
+ perl Configure.pl --prefix=/usr --backends=moar
+ make
}
check() {
- cd "$builddir"
- make test
+ cd "$builddir"
+ make test
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install
}
doc() {
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
- for file in CREDITS LICENSE README.pod VERSION docs; do
- cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
- done
-}
-
-examples() {
- cd "$builddir"
- mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
- for file in examples; do
- cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
- done
+ for file in CREDITS LICENSE README.pod VERSION docs examples; do
+ cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
+ done
}
sha512sums="6e12bd191522c1acc4195dfb98982b6ddc54decb5a40b9995ffc16fb0988bb96fb27057e77dedcbf2dfbc1b222a4fe92df19cb585ed53bb021b9d07b20275efc nqp-2018.02.tar.gz"
diff --git a/testing/rakudo/APKBUILD b/testing/rakudo/APKBUILD
new file mode 100644
index 0000000000..cccddf99d8
--- /dev/null
+++ b/testing/rakudo/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
+# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
+pkgname=rakudo
+pkgver=2018.02.1
+pkgrel=0
+pkgdesc="A compiler for the Perl 6 programming language"
+url="http://rakudo.org/"
+arch="all"
+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="8c7bdd69ff7765d15ec4a522448039ac7c08f8e24a22bf5e24dc3a4897f18011ae2a87f5524f167e8dcc1a8d55792e18b67cb20b0cdb40782edd844620050901 rakudo-2018.02.1.tar.gz"