aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-02-22 23:46:57 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-02-22 23:49:34 +0100
commit795e06d487e2bdba2a0be9fc4183deb03efcc91a (patch)
treea5350ffe6694eb1a5b1eadbcf3d9c16d4e37d3cd /testing
parentd39c8abd885282971e97620bfd5f78310bee3845 (diff)
downloadaports-795e06d487e2bdba2a0be9fc4183deb03efcc91a.tar.bz2
aports-795e06d487e2bdba2a0be9fc4183deb03efcc91a.tar.xz
community/lua-binaryheap: move from testing
This aport is needed for lua-http 0.3.
Diffstat (limited to 'testing')
-rw-r--r--testing/lua-binaryheap/APKBUILD54
1 files changed, 0 insertions, 54 deletions
diff --git a/testing/lua-binaryheap/APKBUILD b/testing/lua-binaryheap/APKBUILD
deleted file mode 100644
index d5014e6a48..0000000000
--- a/testing/lua-binaryheap/APKBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# Contributor: Jakub Jirutka <jakub@jirutka.cz>
-# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
-pkgname=lua-binaryheap
-_rockname=binaryheap
-pkgver=0.4
-_pkgver=${pkgver%%.*}v${pkgver#*.}
-pkgrel=0
-pkgdesc="Binary heap implementation in Lua"
-url="https://tieske.github.io/binaryheap.lua/"
-arch="noarch"
-license="MIT"
-depends="lua"
-checkdepends="lua-busted"
-source="https://github.com/Tieske/binaryheap.lua/archive/version_$_pkgver/binaryheap.lua-$pkgver.tar.gz"
-builddir="$srcdir/binaryheap.lua-version_$_pkgver"
-
-case "$CARCH" in
- # luajit is not available for s390x
- s390x) _luajit="";;
- *) checkdepends="$checkdepends luajit" _luajit="jit";;
-esac
-
-_luaversions="5.1 5.2 5.3"
-for _v in $_luaversions; do
- checkdepends="$checkdepends lua$_v lua$_v-busted"
-done
-
-prepare() {
- default_prepare
- rm .busted
-}
-
-check() {
- local lver; for lver in $_luaversions $_luajit; do
- msg "Testing on lua$lver"
- lua$lver /usr/bin/busted || {
- # FIXME: Allow failure on Lua 5.3.
- # https://github.com/Tieske/binaryheap.lua/issues/17
- [ $lver = 5.3 ] || return 1
- }
- done
-}
-
-package() {
- local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$pkgver-1"
-
- install -m 644 -D "$builddir"/src/binaryheap.lua \
- "$pkgdir"/usr/share/lua/common/binaryheap.lua
-
- mkdir -p "$rockdir"
- echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
-}
-
-sha512sums="2d26108af024f6de5873d9ad2a10dc2fec5b603770c5ff3b3b36289c73261ad6952ed790caad6886bd313a41f9bd42a8257585dd653508d7f1bcd5d1236d2e12 binaryheap.lua-0.4.tar.gz"