1
0

- update to 2.01:

* Fixed crash on macOS Sonoma (fixes #1163).
  * Allowed using SelectAll/Ctrl-A in search/replace boxes
    (closes #1165).
  * Upgraded libwx on macOS (wxwidgets 3.2.1, wxlua 3.2.0.2) to
    fix crash on Sonoma (fixes #1163).
  * Upgraded Mobdebug (0.805) to fix Love2d livecoding (fixes
    #1164 and #992).
  * Updated icon generation to work with wxwidgets 3.2+.
  * Updated Windows, macOS and Linux binaries for Lua 5.4.
  * Updated luasocket to 3.1.0 though it reports as 3.0.0.
  * Upgraded lfs to 1.8.0.
  * Added luasec for Lua 5.4 for Windows (#1075).
  * Added Lua 5.4, luasocket and lpeg for Windows (#1075).
  * Added reset of luacheck cache on project change (#1151).
  * Added Moonscript highlighting for Yuescript (#1134).
  * Added shortcut reference to the `Show tooltip` suggestion
    (#1135).
  * Added support for font weight suffix in font editor (closes
    #1082).
  * Added handling of fractional font sizes in editor styles.
  * Added returning empty string for non-existing properties for
    scintillua lexers.
  * Disabled showing edge line in printed output by default.
  * Improved auto-complete for local assignments (closes #1148).
  * Improved handling of comments with mixed end-of-line markers.
  * Replaced assertion with explicit check in luainspect (fixes
    #1120).
  * Skip binary check for known extensions during search in files
    (closes #1046).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/zerobranestudio?expand=0&rev=24
This commit is contained in:
Matej Cepl 2024-09-09 20:48:33 +00:00 committed by Git OBS Bridge
commit 5520658509
7 changed files with 1171 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
1.90.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62307538cb1daa8c298c838f124f7cfff13c29e4c64c4ffea72191a6f1347ff2
size 30155146

3
2.01.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2570b3fec51414572fde6cfd4c633b904f00d5eb387b7bc3296ffb07730d4e28
size 30634714

20
zbstudio.patch Normal file
View File

@ -0,0 +1,20 @@
From 3467fa72180e6f6a133311c925a5b4bda5723860 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?=
<Mailaender@users.noreply.github.com>
Date: Sat, 13 Jun 2020 19:13:45 +0200
Subject: [PATCH] Use system Lua.
---
zbstudio/zbstudio.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zbstudio/zbstudio.in b/zbstudio/zbstudio.in
index 68b1e103..b8e5a52d 100644
--- a/zbstudio/zbstudio.in
+++ b/zbstudio/zbstudio.in
@@ -3,4 +3,4 @@
if [[ "$(uname -m)" == "x86_64" ]]; then ARCH="x64"; else ARCH="x86"; fi
CWD="$PWD" # save the current directory, as it's going to change
-(cd "@IDE_DATADIR@"; bin/linux/$ARCH/lua src/main.lua zbstudio -cwd "$CWD" "$@" 2>/dev/null) &
+(cd "@IDE_DATADIR@"; @LUA_EXECUTABLE@ src/main.lua zbstudio -cwd "$CWD" "$@" 2>/dev/null) &

1002
zerobranestudio.changes Normal file

File diff suppressed because it is too large Load Diff

119
zerobranestudio.spec Normal file
View File

@ -0,0 +1,119 @@
#
# spec file for package zerobranestudio
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} < 1550
%define lua_version 5.1
%define lua_version_nodots 51
%else
%define lua_version_nodots %{nil}
%endif
Name: zerobranestudio
Version: 2.01
Release: 0
Summary: Lightweight Lua IDE
License: MIT
Group: Development/Tools/IDE
URL: https://studio.zerobrane.com/
Source: https://github.com/pkulchenko/ZeroBraneStudio/archive/%{version}.tar.gz
# PATCH-FIX-OPENSUSE use system Lua
Patch0: zbstudio.patch
BuildRequires: cmake >= 2.8
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: lua%{lua_version_nodots}-bit32
BuildRequires: lua%{lua_version_nodots}-copas
BuildRequires: lua%{lua_version_nodots}-devel
BuildRequires: lua%{lua_version_nodots}-lpeg
BuildRequires: lua%{lua_version_nodots}-luafilesystem
BuildRequires: lua%{lua_version_nodots}-luasec
BuildRequires: wxlua-devel
# Yes, we have to include this explicit Require
Requires: libwxlua
Requires: lua%{lua_version_nodots}-copas
Requires: lua%{lua_version_nodots}-lpeg
Requires: lua%{lua_version_nodots}-luafilesystem
Requires: lua%{lua_version_nodots}-luasec
Requires: Lua(API) = %{lua_version}
Recommends: luajit
Provides: zbstudio
Provides: zerobrane-studio
BuildArch: noarch
%if 0%{?suse_version} < 1550
BuildRequires: lua%{lua_version_nodots}-luasocket
%else
BuildRequires: luasocket
%endif
%if 0%{?suse_version} < 1550
Requires: lua%{lua_version_nodots}-luasocket
%else
Requires: luasocket
%endif
%description
ZeroBrane Studio is a lightweight cross-platform Lua IDE with code completion,
syntax highlighting, remote debugger, code analyzer, live coding, and debugging
support for several Lua engines (LuaJIT, Love 2D, Moai, Gideros, Corona,
Marmalade Quick, Cocos2d-x, GSL-shell, Adobe Lightroom, OpenResty/Nginx and
others). It originated from the Estrela Editor.
%prep
%autosetup -p1 -n ZeroBraneStudio-%{version}
# remove pre-built binaries
rm -rf bin zbstudio/ZeroBraneStudio.app zbstudio.exe
%build
cd build
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLUA_EXECUTABLE=%{_bindir}/lua%{lua_version}
%cmake_build
%install
( cd build
%cmake_install
)
cat >> %{buildroot}%{_datadir}/zbstudio/cfg/user.lua <<EOF
path.lua = '%{_bindir}/lua%{lua_version}'
path.lua52 = '%{_bindir}/lua5.2'
EOF
cp lualibs/lua_parser_loose.lua %{buildroot}%{_datadir}/zbstudio/lualibs/
cp lualibs/lua_lexer_loose.lua %{buildroot}%{_datadir}/zbstudio/lualibs/
# unbundle system provided libraries
rm -rf %{buildroot}%{_datadir}/zbstudio/lualibs/{copas,coxpcall}
# use the doc macro to put it in the right location
rm -rf %{buildroot}%{_datadir}/doc
%fdupes %{buildroot}%{_prefix}
%files
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/zbstudio
%{_datadir}/zbstudio
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/*.desktop
%dir %{_datadir}/appdata/
%{_datadir}/appdata/zbstudio.appdata.xml
%changelog