[packages/aegisub] check "luajit52" when searching for luajit

atler atler at pld-linux.org
Thu Dec 26 18:18:53 CET 2024


commit cfb4d23eafa3c3410ff72e61c2b4cd3b87f3e32f
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Dec 26 17:52:12 2024 +0100

    check "luajit52" when searching for luajit

 aegisub.spec     |  2 ++
 luajit-5.2.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/aegisub.spec b/aegisub.spec
index 38da360..076a9b8 100644
--- a/aegisub.spec
+++ b/aegisub.spec
@@ -18,6 +18,7 @@ Source0:	https://github.com/TypesettingTools/Aegisub/archive/v%{version}/%{name}
 # Source0-md5:	850643f17021294aa14891a3fb200888
 Patch0:		no-tests.patch
 Patch1:		boost-1.87.patch
+Patch2:		luajit-5.2.patch
 URL:		https://aegisub.org/
 # AC_AGI_COMPILE tries to run test program which tries to open device and most likely fails
 #BuildRequires:	OpenAL-devel >= 0.0.8
@@ -92,6 +93,7 @@ obsługa tych zaawansowanych funkcji.
 %setup -q -n Aegisub-%{version}
 %patch -P 0 -p1
 %patch -P 1 -p1
+%patch -P 2 -p1
 
 %build
 ln -sf %{_bindir}/wx-gtk3-unicode-config ./wx-config
diff --git a/luajit-5.2.patch b/luajit-5.2.patch
new file mode 100644
index 0000000..99c341b
--- /dev/null
+++ b/luajit-5.2.patch
@@ -0,0 +1,11 @@
+--- Aegisub-3.4.0/meson.build.orig	2024-12-26 17:30:57.458359507 +0100
++++ Aegisub-3.4.0/meson.build	2024-12-26 17:39:25.050316588 +0100
+@@ -316,7 +316,7 @@
+     deps += [libcurl_dep]
+ endif
+ 
+-luajit = dependency('luajit', version: '>=2.0.0', required: get_option('system_luajit'))
++luajit = dependency('luajit52', 'luajit', version: '>=2.0.0', required: get_option('system_luajit'))
+ if luajit.found() and luajit.type_name() != 'internal'
+     luajit_test = cc.run('''#include <lauxlib.h>
+ int main(void)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/aegisub.git/commitdiff/cfb4d23eafa3c3410ff72e61c2b4cd3b87f3e32f



More information about the pld-cvs-commit mailing list