mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
70 lines
1.8 KiB
Bash
70 lines
1.8 KiB
Bash
SUMMARY="A deployment and management system for Lua modules"
|
|
DESCRIPTION="LuaRocks allows you to install modules as self-contained \
|
|
packages called rocks, which also contain version dependency information."
|
|
HOMEPAGE="https://luarocks.org"
|
|
COPYRIGHT="2007-2014 Kepler Project"
|
|
LICENSE="MIT"
|
|
REVISION="5"
|
|
SOURCE_URI="https://luarocks.org/releases/luarocks-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="245bf6ec560c042cb8948e3d661189292587c5949104677f1eecddc54dbe7e37"
|
|
SOURCE_DIR="luarocks-$portVersion"
|
|
PATCHES="luarocks-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="ALL"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/luarocks/config-5.4.lua keep-old
|
|
settings/luarocks/config-5.3.lua keep-old
|
|
settings/luarocks/config-5.2.lua keep-old
|
|
settings/luarocks/config-5.1.lua keep-old
|
|
"
|
|
|
|
PROVIDES="
|
|
luarocks$secondaryArchSuffix = $portVersion
|
|
cmd:luarocks$secondaryArchSuffix = $portVersion
|
|
cmd:luarocks_admin$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:liblua$secondaryArchSuffix >= 5.4
|
|
# devel:liblua$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:liblua$secondaryArchSuffix >= 5.4
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:lua5.4$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:md5sum
|
|
cmd:sed
|
|
cmd:wget
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
local sysIncDir="$(finddir B_SYSTEM_HEADERS_DIRECTORY)$secondaryArchSubDir"
|
|
./configure --prefix=$prefix \
|
|
--with-lua-include="$sysIncDir/lua54" \
|
|
--sysconfdir=$settingsDir \
|
|
--rocks-tree="$(finddir B_USER_NONPACKAGED_DIRECTORY)" \
|
|
--force-config
|
|
make
|
|
for v in 5.4 5.3 5.2 5.1; do
|
|
make LUA_VERSION=$v LUA=/bin/lua$v LUA_INCDIR="$sysIncDir/lua${v//./}" ./build/config-$v.lua
|
|
done
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make bindir=$binDir install
|
|
for v in 5.4 5.3 5.2 5.1; do
|
|
make LUA_VERSION=$v install-config
|
|
done
|
|
}
|