diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
commit | f1af93971b7490792d8541bc790e0d8c6d787059 (patch) | |
tree | a38046712bbc3a3844d77452d16c84e716caa3d4 /x11-terms/kitty/files | |
parent | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff) |
gentoo resync : 06.08.2019
Diffstat (limited to 'x11-terms/kitty/files')
-rw-r--r-- | x11-terms/kitty/files/kitty-0.14.4-flags.patch (renamed from x11-terms/kitty/files/kitty-0.13.2-flags.patch) | 32 | ||||
-rw-r--r-- | x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch | 16 |
2 files changed, 33 insertions, 15 deletions
diff --git a/x11-terms/kitty/files/kitty-0.13.2-flags.patch b/x11-terms/kitty/files/kitty-0.14.4-flags.patch index b79edaf884fa..5bf301efd5a8 100644 --- a/x11-terms/kitty/files/kitty-0.13.2-flags.patch +++ b/x11-terms/kitty/files/kitty-0.14.4-flags.patch @@ -1,6 +1,8 @@ ---- kitty-0.13.2/setup.py -+++ kitty-0.13.2/setup.py -@@ -178,7 +178,7 @@ +Respect user CFLAGS. + +--- kitty-0.14.4/setup.py ++++ kitty-0.14.4/setup.py +@@ -202,7 +202,7 @@ df = '-g3' if ccver >= (5, 0): df += ' -Og' @@ -8,17 +10,17 @@ + optimize = '' sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set() cppflags = os.environ.get( - 'OVERRIDE_CPPFLAGS', ( -@@ -191,7 +191,7 @@ + 'OVERRIDE_CPPFLAGS', '-D{}DEBUG'.format('' if debug else 'N'), +@@ -213,7 +213,7 @@ cflags = os.environ.get( 'OVERRIDE_CFLAGS', ( - '-Wextra -Wno-missing-field-initializers -Wall -std=c11' + '-Wextra -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11' - ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden' + ' -pedantic-errors {} {} -fwrapv {} {} {} -fvisibility=hidden' ).format( optimize, ' '.join(sanitize_args), -@@ -205,7 +205,7 @@ +@@ -227,7 +227,7 @@ ) ldflags = os.environ.get( 'OVERRIDE_LDFLAGS', @@ -27,21 +29,21 @@ ) ldflags = shlex.split(ldflags) ldflags.append('-shared') -@@ -517,14 +517,14 @@ +@@ -608,7 +608,7 @@ - def build_linux_launcher(args, launcher_dir='.', for_bundle=False, sh_launcher=False, for_freeze=False): + def build_launcher(args, launcher_dir='.', bundle_type='source'): - cflags = '-Wall -Werror -fpie'.split() + cflags = '-Wall -fpie'.split() cppflags = [] libs = [] - if args.profile: - cppflags.append('-DWITH_PROFILER'), cflags.append('-g') - libs.append('-lprofiler') + if args.profile or args.sanitize: +@@ -620,8 +620,6 @@ + cflags.append('-g') + if args.profile: + libs.append('-lprofiler') - else: - cflags.append('-O3') -+ #else: -+ # cflags.append('-O3') - if for_bundle or for_freeze: + if bundle_type.endswith('-freeze'): cppflags.append('-DFOR_BUNDLE') cppflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version())) diff --git a/x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch b/x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch new file mode 100644 index 000000000000..13f874dd3c14 --- /dev/null +++ b/x11-terms/kitty/files/kitty-0.14.4-svg-icon.patch @@ -0,0 +1,16 @@ +Use SVG icon instead of PNG. + +--- kitty-0.14.4/setup.py ++++ kitty-0.14.4/setup.py +@@ -710,9 +710,9 @@ + run_tool(['make', 'docs']) + copy_man_pages(ddir) + copy_html_docs(ddir) +- icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps') ++ icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', 'scalable', 'apps') + safe_makedirs(icdir) +- shutil.copy2('logo/kitty.png', icdir) ++ shutil.copy2('logo/kitty.svg', icdir) + deskdir = os.path.join(ddir, 'share', 'applications') + safe_makedirs(deskdir) + with open(os.path.join(deskdir, 'kitty.desktop'), 'w') as f: |