kitty/buildmode-and-skip_docs.diff
Scott Bradnick 61d0617c81 - Adding 'BuildRequires: symbols-only-nerd-fonts' as it's looked for at build
time
- Explicitly setting go1.22 (Base version required to build)
- Update to 0.36.0:
  * Support OpenType Variable fonts (#3711)
  * A new choose-fonts kitten that provides a UI with font previews to ease
    selection of fonts. Also has support for font features and variable fonts
  * Allow animating the blinking of the cursor. See cursor_blink_interval for
    how to configure it
  * Add NERD fonts builtin so that users don’t have to install them to use
    NERD symbols in kitty. The builtin font is used only if the symbols are
    not available in some system font
  * launch command: A new launch --bias option to adjust the size of newly
    created windows declaratively (#7634)
  * A new option second_transparent_bg to make a second background color
    semi-transparent via background_opacity. Useful for things like cursor
    line highlight in editors (#7646)
  * A new notify kitten to show desktop notifications from the command line
    with support for icons, buttons and more.
  * Desktop notifications protocol: Add support for icons, buttons, closing of
    notifications, expiry of notifications, updating of notifications and
    querying if the terminal emulator supports the
    protocol (#7657, #7658, #7659)
  * A new option filter_notification to filter out or perform arbitrary
    actions on desktop notifications based on sophisticated criteria (#7670)
  * A new protocol to allow terminal applications to change colors in the
    terminal more robustly than with the legacy XTerm protocol (Setting and
    querying colors)
  * Sessions: A new command focus_matching_window to shift focus to a specific
    window, useful when creating complex layouts with splits (#7635)

OBS-URL: https://build.opensuse.org/package/show/X11:terminals/kitty?expand=0&rev=157
2024-08-17 20:23:20 +00:00

29 lines
1.2 KiB
Diff

--- setup.py.smb 2024-01-19 09:43:25.073225511 -0500
+++ setup.py 2024-01-19 10:26:09.830214118 -0500
@@ -980,7 +980,7 @@
if args.skip_building_kitten:
print('Skipping building of the kitten binary because of a command line option. Build is incomplete', file=sys.stderr)
return ''
- cmd = [go, 'build', '-v']
+ cmd = [go, 'build', '-buildmode=pie', '-v']
vcs_rev = args.vcs_rev or get_vcs_rev()
ld_flags: List[str] = []
binary_data_flags = [f"-X kitty.VCSRevision={vcs_rev}"]
@@ -1165,13 +1165,14 @@
base = Path(ddir)
in_src_launcher = base / (f'{libdir_name}/kitty/kitty/launcher/kitty')
launcher = base / 'bin/kitty'
- skip_docs = False
+ skip_docs = True
if not os.path.exists('docs/_build/html'):
kitten_exe = os.path.join(os.path.dirname(str(launcher)), 'kitten')
if os.path.exists(kitten_exe):
os.environ['KITTEN_EXE_FOR_DOCS'] = kitten_exe
make = 'gmake' if is_freebsd else 'make'
- run_tool([make, 'docs'])
+ if not skip_docs:
+ run_tool([make, 'docs'])
else:
if args.skip_building_kitten:
skip_docs = True