mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
lua*, rename recipes, fix conflict for cmd's in lua5.3 and lua5.4 (#6946)
This commit is contained in:
87
dev-lang/lua/lua5.1-5.1.5.recipe
Normal file
87
dev-lang/lua/lua5.1-5.1.5.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
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"
|
||||
COPYRIGHT="1994-2009, Lua.org, PUC-Rio"
|
||||
LICENSE="MIT"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://www.lua.org/ftp/lua-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333"
|
||||
SOURCE_DIR="lua-$portVersion"
|
||||
PATCHES="lua-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
||||
|
||||
PROVIDES="
|
||||
lua5.1${secondaryArchSuffix} = $portVersion compat >= 5.1
|
||||
cmd:lua5.1${secondaryArchSuffix} = $portVersion compat >= 5.1
|
||||
cmd:luac5.1${secondaryArchSuffix} = $portVersion compat >= 5.1
|
||||
lib:liblua${secondaryArchSuffix} = $portVersion compat >= 5.1
|
||||
"
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
lua5.1${secondaryArchSuffix}_devel = $portVersion compat >= 5.1
|
||||
devel:liblua$secondaryArchSuffix = $portVersion compat >= 5.1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
lua5.1$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
CONFLICTS_devel="
|
||||
lua${secondaryArchSuffix}_devel
|
||||
lua5.2${secondaryArchSuffix}_devel
|
||||
lua5.4${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc${secondaryArchSuffix}
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make haiku
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install INSTALL_TOP="$prefix" INSTALL_MAN="$manDir/man1" \
|
||||
INSTALL_INC="$includeDir/lua5.1" INSTALL_LMOD="$dataDir/lua/5.1" \
|
||||
INSTALL_LIB="$libDir" INSTALL_BIN="$binDir"
|
||||
|
||||
mkdir -p $libDir/pkgconfig
|
||||
cp etc/lua.pc $libDir/pkgconfig/lua.pc
|
||||
|
||||
mv $libDir/liblua.so $libDir/liblua.so.5.1
|
||||
ln -s liblua.so.5.1 $libDir/liblua.so
|
||||
|
||||
mv $binDir/lua $binDir/lua5.1
|
||||
mv $binDir/luac $binDir/luac5.1
|
||||
mv $manDir/man1/lua.1 $manDir/man1/lua51.1
|
||||
mv $manDir/man1/luac.1 $manDir/man1/luac51.1
|
||||
|
||||
mkdir -p $docDir
|
||||
cp doc/{*.html,logo.gif,lua.css,manual.css} $docDir
|
||||
|
||||
rm -r $dataDir #empty directory
|
||||
rm -r $prefix/lib/lua #empty directory
|
||||
|
||||
prepareInstalledDevelLib liblua
|
||||
fixPkgconfig
|
||||
|
||||
# The includes are in a subdirectory of includeDir, and fixPkgconfig breaks
|
||||
# that.
|
||||
sed -i -e "s,^includedir=.*,includedir=$prefix/$relativeIncludeDir/lua5.1," \
|
||||
$developLibDir/pkgconfig/lua.pc
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
Reference in New Issue
Block a user