mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
luarocks, bump version, recipe cleanup (#1440)
This commit is contained in:
61
dev-lua/luarocks/luarocks-2.4.2.recipe
Normal file
61
dev-lua/luarocks/luarocks-2.4.2.recipe
Normal file
@@ -0,0 +1,61 @@
|
||||
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="http://luarocks.org"
|
||||
COPYRIGHT="2007-2014 Kepler Project"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://luarocks.org/releases/luarocks-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="0e1ec34583e1b265e0fbafb64c8bd348705ad403fe85967fd05d3a659f74d2e5"
|
||||
SOURCE_DIR="luarocks-$portVersion"
|
||||
|
||||
#check for Lua version
|
||||
LUAVERSION=$(lua -v | sed 's/Lua //' | head -c3)
|
||||
|
||||
GLOBAL_WRITABLE_FILES="
|
||||
settings/config-$LUAVERSION.lua keep-old
|
||||
"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
luarocks$secondaryArchSuffix = $portVersion
|
||||
cmd:luarocks$secondaryArchSuffix = $portVersion
|
||||
cmd:luarocks_admin$secondaryArchSuffix = $portVersion
|
||||
cmd:luarocks_$LUAVERSION$secondaryArchSuffix = $portVersion
|
||||
cmd:luarocks_admin_$LUAVERSION$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:liblua$secondaryArchSuffix >= 5.3
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:liblua$secondaryArchSuffix >= 5.3
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:lua5.3$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:md5sum
|
||||
cmd:sed
|
||||
cmd:wget
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
LUAVERSION_WITHOUT_DOTS=$(lua -v | sed 's/Lua //' | head -c3 | tr -d '.')
|
||||
./configure --prefix=$prefix \
|
||||
--with-lua-include="$(finddir B_SYSTEM_HEADERS_DIRECTORY)$secondaryArchSubDir/lua$LUAVERSION_WITHOUT_DOTS" \
|
||||
--sysconfdir=$settingsDir \
|
||||
--rocks-tree=/boot/home/config/non-packaged/data \
|
||||
--versioned-rocks-dir \
|
||||
--force-config
|
||||
make build
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
make BINDIR=$binDir LUADIR=$libDir/lua/$LUAVERSION install
|
||||
}
|
||||
Reference in New Issue
Block a user