From f725f67a5d18c58ca541988effe49b2bb9808a12 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 30 Sep 2018 06:33:24 +0000 Subject: [PATCH] luafilesystem, bump version, cleanup (#1955) * luafilesystem, bump version, cleanup * luafilesystem, don't install the docs and header --- .../luafilesystem-1.7.0.2.recipe | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 dev-lua/luafilesystem/luafilesystem-1.7.0.2.recipe diff --git a/dev-lua/luafilesystem/luafilesystem-1.7.0.2.recipe b/dev-lua/luafilesystem/luafilesystem-1.7.0.2.recipe new file mode 100644 index 000000000..1fc4f557c --- /dev/null +++ b/dev-lua/luafilesystem/luafilesystem-1.7.0.2.recipe @@ -0,0 +1,53 @@ +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="2003-2017 Kepler Project" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/keplerproject/luafilesystem/archive/v${portVersion//\./_}.tar.gz" +CHECKSUM_SHA256="23b4883aeb4fb90b2d0f338659f33a631f9df7a7e67c54115775a77d4ac3cc59" +SOURCE_DIR="luafilesystem-${portVersion//\./_}" + +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 +}