mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
luafilesystem: bump version, fix recipe (#1369)
This commit is contained in:
committed by
Jérôme Duval
parent
3d7aa45425
commit
4f3cb8f987
54
dev-lua/luafilesystem/luafilesystem-1.6.3.recipe
Normal file
54
dev-lua/luafilesystem/luafilesystem-1.6.3.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="A Lua library for file system operations"
|
||||
DESCRIPTION="
|
||||
LuaFileSystem is a Lua library developed to complement the set of functions \
|
||||
related to file systems offered by the standard Lua distribution.
|
||||
LuaFileSystem offers a portable way to access the underlying directory \
|
||||
structure and file attributes."
|
||||
HOMEPAGE="http://keplerproject.github.io/luafilesystem/"
|
||||
COPYRIGHT="2004-2012 Kepler Project"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/keplerproject/luafilesystem/archive/v_1_6_3.tar.gz"
|
||||
CHECKSUM_SHA256="5525d2b8ec7774865629a6a29c2f94cb0f7e6787987bf54cd37e011bfb642068"
|
||||
SOURCE_DIR="luafilesystem-v_1_6_3"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
luafilesystem$secondaryArchSuffix = $portVersion
|
||||
lib:lfs$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:liblua$secondaryArchSuffix >= 5.3
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:liblua$secondaryArchSuffix >= 5.3
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:lua5.3$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
LUAVERSION_WITHOUT_DOT=$(lua -v | sed 's/Lua //' | head -c3 | tr -d '.')
|
||||
make LUA_INC="$(finddir B_SYSTEM_HEADERS_DIRECTORY)$secondaryArchSubDir/lua$LUAVERSION_WITHOUT_DOT" \
|
||||
LUA_LIBDIR="$libDir/lua/$LUAVERSION"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
LUAVERSION=$(lua -v | sed 's/Lua //' | head -c3)
|
||||
make LUA_LIBDIR="$libDir/lua/$LUAVERSION" install
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user