Commit 59e37c7f authored by Natanael Copa's avatar Natanael Copa

main/lua-penlight: reintroduce the subpackages for lua versions

Add subpackages for each lua version with the right direct dependency of
lua-filesystem. This avoids surprises and is more robust than rely on
indirect install_if in lua-filesystem.

It fixes the dependency chain for aconf that has no direct dependency of
lua interpreter, but uses uwsgi-lua.

Fixes commit b106a06b (main/lua-penlight: modernize abuild, remove
subpkgs, add rock_manifest, 2018-04-16)
parent aa584d7c
......@@ -2,7 +2,7 @@
pkgname=lua-penlight
_rockname=penlight
pkgver=1.7.0
pkgrel=0
pkgrel=1
pkgdesc="Lua libraries for extended operations on tables, lists and strings"
options="!check" # Requires lua-coveralls
url="http://stevedonovan.github.io/Penlight"
......@@ -20,7 +20,7 @@ replaces="$pkgname-shared" # for backward compatibility
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
checkdepends="$checkdepends lua$_v"
provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel" # for backward compatibility
subpackages="$subpackages lua$_v-penlight:_split"
done
check() {
......@@ -43,4 +43,16 @@ package() {
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
_split() {
local _lua=${subpkgname%%-*}
local _ver=${_lua#lua}
pkgdesc="Lua $—ver libraries for extended operations on tables, lists and strings"
depends="${_lua}-filesystem"
mkdir -p "$subpkgdir"/usr/share/lua/$_ver
# keep this so abuild pulls in the right dependency with the common
# files
ln -s ../common/pl "$subpkgdir"/usr/share/lua/$_ver/pl
}
sha512sums="edeb09307c9feb5da6bccd82216a6ad71db988c433245d72d28abb6c555004f77eebba556928b0912937b29ef93e065ad491368041e17730610813de8e595d7d penlight-1.7.0.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment