Scott Bradnick
38cbaa23f2
- Adding wayland-protocols-1.32.diff patch to account for 'compiler crashes' from wayland-protocols-devel update (#6422) * This is patched upstream via 95d1564 and 7d2dc25 - Removing -Wno-error=switch flag as this was a workaround to deal with scenario from above - Renaming the following files: * fix-librsync-leap.{.patch -> .diff} * optional-disable-docs.{.patch -> diff} - Set -Wno-error=switch flag to prevent compiler crashes for RISCV and ARM - Cleaning up "wayland-devel obsoletes libwayland-egl-devel" - Adding 'Recommends: python3-importlib_resources' - Use python3.11 on Leap 15.5 * python3.11 is the only python3 > 3.6 version would be shipped in Leap 15.5 OBS-URL: https://build.opensuse.org/request/show/1097531 OBS-URL: https://build.opensuse.org/package/show/X11:terminals/kitty?expand=0&rev=119
55 lines
2.1 KiB
Diff
55 lines
2.1 KiB
Diff
Index: kitty-0.27.1/setup.py
|
|
===================================================================
|
|
--- kitty-0.27.1.orig/setup.py
|
|
+++ kitty-0.27.1/setup.py
|
|
@@ -61,6 +61,7 @@
|
|
verbose: int = 0
|
|
sanitize: bool = False
|
|
prefix: str = './linux-package'
|
|
+ no_docs: bool = False
|
|
dir_for_static_binaries: str = 'build/static'
|
|
incremental: bool = True
|
|
profile: bool = False
|
|
@@ -1085,12 +1086,13 @@
|
|
c(base_path, ddir='', rx=exclude, force=True, optimize=optimize, quiet=1, workers=num_workers)
|
|
|
|
|
|
-def create_linux_bundle_gunk(ddir: str, libdir_name: str) -> None:
|
|
- if not os.path.exists('docs/_build/html'):
|
|
- make = 'gmake' if is_freebsd else 'make'
|
|
- run_tool([make, 'docs'])
|
|
- copy_man_pages(ddir)
|
|
- copy_html_docs(ddir)
|
|
+def create_linux_bundle_gunk(ddir: str, libdir_name: str, no_docs=False) -> None:
|
|
+ if not no_docs:
|
|
+ if not os.path.exists('docs/_build/html'):
|
|
+ make = 'gmake' if is_freebsd else 'make'
|
|
+ run_tool([make, 'docs'])
|
|
+ copy_man_pages(ddir)
|
|
+ copy_html_docs(ddir)
|
|
for (icdir, ext) in {'256x256': 'png', 'scalable': 'svg'}.items():
|
|
icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', icdir, 'apps')
|
|
safe_makedirs(icdir)
|
|
@@ -1468,7 +1470,7 @@
|
|
if not for_freeze and not bundle_type.startswith('macos-'):
|
|
build_static_kittens(args, launcher_dir=launcher_dir)
|
|
if not is_macos:
|
|
- create_linux_bundle_gunk(ddir, args.libdir_name)
|
|
+ create_linux_bundle_gunk(ddir, args.libdir_name, args.no_docs)
|
|
|
|
if bundle_type.startswith('macos-'):
|
|
create_macos_bundle_gunk(ddir, for_freeze, args)
|
|
@@ -1564,6 +1566,12 @@
|
|
help='Where to create the linux package'
|
|
)
|
|
p.add_argument(
|
|
+ '--no-docs',
|
|
+ default=Options.no_docs,
|
|
+ action='store_true',
|
|
+ help='Disable building documentation when creating the linux package'
|
|
+ )
|
|
+ p.add_argument(
|
|
'--dir-for-static-binaries',
|
|
default=Options.dir_for_static_binaries,
|
|
help='Where to create the static kitten binary'
|