Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 871486 Details for
Bug 914749
dev-libs/libpeas-2.0.0 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Rebased gentoo-lua patch for 2.0.0
2.0.0-lua.patch (text/plain), 2.62 KB, created by
Blake Batson
on 2023-09-26 17:30:11 UTC
(
hide
)
Description:
Rebased gentoo-lua patch for 2.0.0
Filename:
MIME Type:
Creator:
Blake Batson
Created:
2023-09-26 17:30:11 UTC
Size:
2.62 KB
patch
obsolete
>diff --git a/meson.build b/meson.build >index 0744ba1..95c09c3 100644 >--- a/meson.build >+++ b/meson.build >@@ -138,18 +138,12 @@ if host_machine.system() == 'windows' and not python3_dep.found() > endif > > pygobject_dep = dependency('pygobject-3.0', version: pygobject_req, required: false) >-lua51_dep = dependency('lua51', version: lua_req, required: false) >-if not lua51_dep.found() >- lua51_dep = dependency('lua-5.1', version: lua_req, required: false) >-endif >-luajit_dep = dependency('luajit', version: luajit_req, required: false) >+lua51_dep = dependency('lua', version: lua_req, required: get_option('lua51')) >+luajit_dep = dependency('luajit', version: luajit_req, required: get_option('luajit')) > lua_lgi_found = false > lua_lgi_ver = 'not found' >-lua51_prg = find_program('lua5.1', required: false) >-if not lua51_prg.found() >- lua51_prg = find_program('lua51', required: false) >-endif >-luajit_prg = find_program('luajit', required: false) >+lua51_prg = find_program('lua', required: get_option('lua51')) >+luajit_prg = find_program('luajit', required: get_option('luajit')) > xmllint_prg = find_program('xmllint', required: false) > generate_vapi = get_option('vapi') > vapigen_prg = find_program('vapigen', required: generate_vapi) >@@ -211,6 +205,8 @@ if lua_found > lua51_lgi_dep = declare_dependency(version: lua_lgi_ver) > lua_lgi_found = true > endif >+ else >+ error('lua support requested but lua-lgi not found') > endif > message('lua-lgi version: ' + lua_lgi_ver) > endif >@@ -394,11 +390,7 @@ endif > > build_gjs_loader = get_option('gjs') > >-build_lua51_loader = get_option('lua51') >-lua51_found = (luajit_dep.found() or lua51_dep.found()) and lua_lgi_found >-if build_lua51_loader and not lua51_found >- error('Lua51 requested but failed to locate suitable Lua51 and LGI support') >-endif >+build_lua51_loader = (luajit_dep.found() or lua51_dep.found()) and lua_lgi_found > > build_python3_loader = get_option('python3') > python3_found = python3_dep.found() and pygobject_dep.found() >diff --git a/meson_options.txt b/meson_options.txt >index 48a7e8d..891bf2a 100644 >--- a/meson_options.txt >+++ b/meson_options.txt >@@ -3,9 +3,13 @@ option('gjs', > description: 'Enable GJS support (requires gjs-1.0)') > > option('lua51', >- type: 'boolean', value: true, >+ type: 'feature', value: 'enabled', > description: 'Enable Lua 5.1 support (requires lua-lgi)') > >+option('luajit', >+ type: 'feature', value: 'disabled', >+ description: 'Use LuaJIT for Lua 5.1 support (requires lua-lgi)') >+ > option('python3', > type: 'boolean', value: true, > description: 'Enable Python 3 support (requires pygobject)')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 914749
:
871485
|
871486
|
871495
|
871497
|
871498