mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
Removed the full-stop and repeating package name in SUMMARY. Removed hard line breaks, broke up some very long paragraphs and use bullet lists where possible. All done by browsing through HaikuDepot. There may be (many) more left in the whole haikuports repo... Included 10 extended desriptions done by soyoye14 for GCI 2014 (https://www.google-melange.com/gci/task/view/google/gci2014/5240373098053632) Removed/insert whitespace where it seems to be the custom in recipes. Sometimes rearranged elements of a recipe (moving license and copyright up, for example).
66 lines
2.0 KiB
Plaintext
66 lines
2.0 KiB
Plaintext
SUMMARY="A powerful, fast, light-weight, embeddable scripting language"
|
|
DESCRIPTION="
|
|
Lua combines simple procedural syntax with powerful data description \
|
|
constructs based on associative arrays and extensible semantics. Lua is \
|
|
dynamically typed, runs by interpreting bytecode for a register-based virtual \
|
|
machine, and has automatic memory management with incremental garbage \
|
|
collection, making it ideal for configuration, scripting, and rapid prototyping.
|
|
"
|
|
HOMEPAGE="http://www.lua.org"
|
|
SRC_URI="http://www.lua.org/ftp/lua-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="13c2fb97961381f7d06d5b5cea55b743c163800896fd5c5e2356201d3619002d"
|
|
LICENSE="MIT"
|
|
COPYRIGHT="1994-2012, Lua.org, PUC-Rio"
|
|
REVISION="1"
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
lua$secondaryArchSuffix = $portVersion compat >= 5.2
|
|
cmd:lua$secondaryArchSuffix = $portVersion compat >= 5.2
|
|
cmd:lua5.2$secondaryArchSuffix = $portVersion compat >= 5.2
|
|
cmd:luac$secondaryArchSuffix = $portVersion compat >= 5.2
|
|
lib:liblua$secondaryArchSuffix = $portVersion compat >= 5.2
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
lua${secondaryArchSuffix}_devel = $portVersion compat >= 5.2
|
|
devel:liblua$secondaryArchSuffix = $portVersion compat >= 5.2
|
|
devel:liblua52$secondaryArchSuffix = $portVersion compat >= 5.2
|
|
"
|
|
REQUIRES_devel="
|
|
lua$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
PATCHES="lua-$portVersion.patchset"
|
|
|
|
BUILD()
|
|
{
|
|
make haiku MYCFLAGS="-DLUA_ROOT='\"$prefix/\"' -DLUA_LDIR='\"$dataDir/lua/5.2/\"'"
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install INSTALL_TOP="$prefix" INSTALL_MAN="$manDir/man1" \
|
|
INSTALL_INC="$includeDir/lua52" INSTALL_LMOD="$dataDir/lua/5.2" \
|
|
INSTALL_LIB="$libDir" INSTALL_BIN="$binDir"
|
|
|
|
ln -s liblua.so $libDir/liblua.so.5.2
|
|
ln -s liblua.a $libDir/liblua52.a
|
|
|
|
mv $binDir/lua $binDir/lua5.2
|
|
ln -s $binDir/lua5.2 $binDir/lua
|
|
|
|
prepareInstalledDevelLib liblua
|
|
prepareInstalledDevelLib liblua52
|
|
packageEntries devel $developDir
|
|
}
|