1
0
Fork 0
This commit is contained in:
CRy386i 2025-07-21 15:59:52 +03:00
parent 3b5d375683
commit 02f88b3593
11 changed files with 321 additions and 0 deletions

3
dev-lang/luau/Manifest Normal file
View file

@ -0,0 +1,3 @@
DIST luau-0.666.gh.tar.gz 1942716 BLAKE2B 018c395352ebd695782622c53408a5ee4b91d4af1ba0be89eca21a16aab681f88f4adc61b75d5b449ff34128bc73302398f6a27b502b330a6540e5e72c0442a2 SHA512 2d529cc17188f8fdcb881d1004f1f3c9ac4142aaada5d1847863d377ca63d98ec49a3bf8dadd00b954909c4eaaaad3eeff5009020d58105eada0bf02b443d3c8
DIST luau-0.669.gh.tar.gz 1962832 BLAKE2B b265db9330c9a28ba77d3a882c0fce60f4b3528145603e26a8b29f6939e4fae9b4d3e73dbce14ded20811ba317d5947c5c3cb8b74a0788fccd63606d21f50b32 SHA512 eec53ad49d632d9c73eb8df497018c935c5e8b0a75be3c54608c4b0d11c59b47cb546db71c62eab1941974e97af3f8d009a0ac2b2cde933988fa27c1d6a28939
DIST luau-0.679.gh.tar.gz 1996752 BLAKE2B ab13dfa870c49a916b7eb268b51055a77d90adb718422240f9fa234495b22adc0f835e23c654e448bbbf5dc494bbcaafc8b21b73284b8909537a8e39099bb5c3 SHA512 3e8e1342eeb724bd08ee51a96b6b377bb046e2e3898830c15160667e6cbc81b56d16eb1cf3ff7f03ba471e022a6f45e918d37c1b0468b1355237a903ae1e597a

View file

@ -0,0 +1,28 @@
From 0d7ce033b5b4bc33cc02e85a8c56e23e68694211 Mon Sep 17 00:00:00 2001
From: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
Date: Mon, 10 Mar 2025 01:35:36 +0200
Subject: [PATCH] Add #include <cstdint> to fix building with gcc 15
With gcc 15, the C++ Standard Library no longer includes other headers
that were internally used by the library. In luau's case the missing
header is <cstdint>
Downstream Gentoo bug: https://bugs.gentoo.org/938122
Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
---
Analysis/src/TypedAllocator.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Analysis/src/TypedAllocator.cpp b/Analysis/src/TypedAllocator.cpp
index a2f49afbd..16c844e8d 100644
--- a/Analysis/src/TypedAllocator.cpp
+++ b/Analysis/src/TypedAllocator.cpp
@@ -26,6 +26,8 @@ const size_t kPageSize = sysconf(_SC_PAGESIZE);
#include <stdlib.h>
+#include <cstdint>
+
LUAU_FASTFLAG(DebugLuauFreezeArena)
namespace Luau

View file

@ -0,0 +1,19 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ if(EXT_PLATFORM_STRING)
return()
endif()
-cmake_minimum_required(VERSION 3.0)
+cmake_minimum_required(VERSION 3.20)
option(LUAU_BUILD_CLI "Build CLI" ON)
option(LUAU_BUILD_TESTS "Build tests" ON)
@@ -17,7 +17,6 @@ cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0091 NEW)
if(LUAU_STATIC_CRT)
- cmake_minimum_required(VERSION 3.15)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

View file

@ -0,0 +1,19 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ if(EXT_PLATFORM_STRING)
return()
endif()
-cmake_minimum_required(VERSION 3.10)
+cmake_minimum_required(VERSION 3.20)
option(LUAU_BUILD_CLI "Build CLI" ON)
option(LUAU_BUILD_TESTS "Build tests" ON)
@@ -17,7 +17,6 @@ cmake_policy(SET CMP0054 NEW)
cmake_policy(SET CMP0091 NEW)
if(LUAU_STATIC_CRT)
- cmake_minimum_required(VERSION 3.15)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()

View file

@ -0,0 +1,62 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake edo
DESCRIPTION="Gradually typed embeddable scripting language derived from Lua"
HOMEPAGE="https://luau.org/
https://github.com/luau-lang/luau/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/luau-lang/${PN}"
else
SRC_URI="https://github.com/luau-lang/${PN}/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch"
"${FILESDIR}/luau-0.653-cmake_minimum.patch"
)
DOCS=( CONTRIBUTING.md README.md SECURITY.md )
src_configure() {
local -a mycmakeargs=(
-DLUAU_BUILD_TESTS="$(usex test)"
)
cmake_src_configure
}
src_test() {
edo "${BUILD_DIR}/Luau.UnitTest" --verbose
edo "${BUILD_DIR}/Luau.Conformance" --verbose
}
src_install() {
exeinto /usr/bin
doexe "${BUILD_DIR}"/luau{,-analyze,-ast,-compile,-reduce}
insinto /usr/include/Luau
doins ./CodeGen/include/luacodegen.h
doins ./Compiler/include/luacode.h
doins ./VM/include/*.h
doins ./{Config,Common,Compiler,CodeGen,Ast,Analysis,EqSat}/include/Luau/*.h
if use static-libs ; then
dolib.a "${BUILD_DIR}"/libLuau.*.a
fi
einstalldocs
}

View file

@ -0,0 +1,62 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake edo
DESCRIPTION="Gradually typed embeddable scripting language derived from Lua"
HOMEPAGE="https://luau.org/
https://github.com/luau-lang/luau/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/luau-lang/${PN}"
else
SRC_URI="https://github.com/luau-lang/${PN}/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch"
"${FILESDIR}/luau-0.669-cmake_minimum.patch"
)
DOCS=( CONTRIBUTING.md README.md SECURITY.md )
src_configure() {
local -a mycmakeargs=(
-DLUAU_BUILD_TESTS="$(usex test)"
)
cmake_src_configure
}
src_test() {
edo "${BUILD_DIR}/Luau.UnitTest" --verbose
edo "${BUILD_DIR}/Luau.Conformance" --verbose
}
src_install() {
exeinto /usr/bin
doexe "${BUILD_DIR}"/luau{,-analyze,-ast,-compile,-reduce}
insinto /usr/include/Luau
doins ./CodeGen/include/luacodegen.h
doins ./Compiler/include/luacode.h
doins ./VM/include/*.h
doins ./{Config,Common,Compiler,CodeGen,Ast,Analysis,EqSat}/include/Luau/*.h
if use static-libs ; then
dolib.a "${BUILD_DIR}"/libLuau.*.a
fi
einstalldocs
}

View file

@ -0,0 +1,62 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake edo
DESCRIPTION="Gradually typed embeddable scripting language derived from Lua"
HOMEPAGE="https://luau.org/
https://github.com/luau-lang/luau/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/luau-lang/${PN}"
else
SRC_URI="https://github.com/luau-lang/${PN}/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="static-libs test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch"
"${FILESDIR}/luau-0.669-cmake_minimum.patch"
)
DOCS=( CONTRIBUTING.md README.md SECURITY.md )
src_configure() {
local -a mycmakeargs=(
-DLUAU_BUILD_TESTS="$(usex test)"
)
cmake_src_configure
}
src_test() {
edo "${BUILD_DIR}/Luau.UnitTest" --verbose
edo "${BUILD_DIR}/Luau.Conformance" --verbose
}
src_install() {
exeinto /usr/bin
doexe "${BUILD_DIR}"/luau{,-analyze,-ast,-compile,-reduce}
insinto /usr/include/Luau
doins ./CodeGen/include/luacodegen.h
doins ./Compiler/include/luacode.h
doins ./VM/include/*.h
doins ./{Config,Common,Compiler,CodeGen,Ast,Analysis,EqSat}/include/Luau/*.h
if use static-libs ; then
dolib.a "${BUILD_DIR}"/libLuau.*.a
fi
einstalldocs
}

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@gentoo.org</email>
<name>Maciej Barć</name>
</maintainer>
<longdescription>
Luau is a fast, small, safe, gradually typed embeddable scripting language
derived from Lua. It is designed to be backwards compatible with Lua 5.1,
as well as incorporating some features from future Lua releases, but also
expands the feature set (most notably with type annotations). Luau is
largely implemented from scratch, with the language runtime being a very
heavily modified version of Lua 5.1 runtime, with completely rewritten
interpreter and other performance innovations. The runtime mostly preserves
Lua 5.1 API, so existing bindings should be more or less compatible with a
few caveats.
</longdescription>
<upstream>
<bugs-to>https://github.com/luau-lang/luau/issues/</bugs-to>
<remote-id type="github">luau-lang/luau</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,14 @@
BDEPEND=app-alternatives/ninja >=dev-build/cmake-3.20.5
DEFINED_PHASES=compile configure install prepare test
DESCRIPTION=Gradually typed embeddable scripting language derived from Lua
EAPI=8
HOMEPAGE=https://luau.org/ https://github.com/luau-lang/luau/
INHERIT=cmake edo
IUSE=static-libs test
KEYWORDS=amd64 ~x86
LICENSE=MIT
RESTRICT=!test? ( test )
SLOT=0
SRC_URI=https://github.com/luau-lang/luau/archive/0.666.tar.gz -> luau-0.666.gh.tar.gz
_eclasses_=toolchain-funcs f9d71a6efe9d083aec750dd13968e169 flag-o-matic b892042b2667b8ac69ec8a2571dc290a multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 90d8ee8393c5c815637fd3cb87828c9b edo a5e294016aa84979fcb2459749eb80b2
_md5_=28ed728a726de938c83a9fe39ec73716

View file

@ -0,0 +1,14 @@
BDEPEND=app-alternatives/ninja >=dev-build/cmake-3.20.5
DEFINED_PHASES=compile configure install prepare test
DESCRIPTION=Gradually typed embeddable scripting language derived from Lua
EAPI=8
HOMEPAGE=https://luau.org/ https://github.com/luau-lang/luau/
INHERIT=cmake edo
IUSE=static-libs test
KEYWORDS=amd64 ~x86
LICENSE=MIT
RESTRICT=!test? ( test )
SLOT=0
SRC_URI=https://github.com/luau-lang/luau/archive/0.669.tar.gz -> luau-0.669.gh.tar.gz
_eclasses_=toolchain-funcs f9d71a6efe9d083aec750dd13968e169 flag-o-matic b892042b2667b8ac69ec8a2571dc290a multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 90d8ee8393c5c815637fd3cb87828c9b edo a5e294016aa84979fcb2459749eb80b2
_md5_=1274f582013e59012443ed773e456d27

View file

@ -0,0 +1,14 @@
BDEPEND=app-alternatives/ninja >=dev-build/cmake-3.20.5
DEFINED_PHASES=compile configure install prepare test
DESCRIPTION=Gradually typed embeddable scripting language derived from Lua
EAPI=8
HOMEPAGE=https://luau.org/ https://github.com/luau-lang/luau/
INHERIT=cmake edo
IUSE=static-libs test
KEYWORDS=amd64 ~x86
LICENSE=MIT
RESTRICT=!test? ( test )
SLOT=0
SRC_URI=https://github.com/luau-lang/luau/archive/0.679.tar.gz -> luau-0.679.gh.tar.gz
_eclasses_=toolchain-funcs f9d71a6efe9d083aec750dd13968e169 flag-o-matic b892042b2667b8ac69ec8a2571dc290a multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 90d8ee8393c5c815637fd3cb87828c9b edo a5e294016aa84979fcb2459749eb80b2
_md5_=1274f582013e59012443ed773e456d27