From: "Matthew Thode" <prometheanfire@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/, x11-terms/kitty/files/
Date: Tue, 16 Jul 2019 23:17:02 +0000 (UTC) [thread overview]
Message-ID: <1563319019.59635ed1891743343e8a1750f024a1ccc0153c23.prometheanfire@gentoo> (raw)
commit: 59635ed1891743343e8a1750f024a1ccc0153c23
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 16 23:16:36 2019 +0000
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Tue Jul 16 23:16:59 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59635ed1
x11-terms/kitty: fix git master builds (patch fails)
Package-Manager: Portage-2.3.66, Repoman-2.3.16
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
x11-terms/kitty/files/kitty-9999-flags.patch | 32 ++++++++++++++-----------
x11-terms/kitty/files/kitty-9999-svg-icon.patch | 14 +++++++++++
x11-terms/kitty/kitty-9999.ebuild | 2 +-
3 files changed, 33 insertions(+), 15 deletions(-)
diff --git a/x11-terms/kitty/files/kitty-9999-flags.patch b/x11-terms/kitty/files/kitty-9999-flags.patch
index fe54a959cb7..f7efa3b305b 100644
--- a/x11-terms/kitty/files/kitty-9999-flags.patch
+++ b/x11-terms/kitty/files/kitty-9999-flags.patch
@@ -1,6 +1,6 @@
---- kitty-0.13.2/setup.py
-+++ kitty-0.13.2/setup.py
-@@ -178,7 +178,7 @@
+--- setup.py.orig 2019-07-16 18:04:24.052780940 -0500
++++ setup.py 2019-07-16 18:05:54.564383192 -0500
+@@ -202,7 +202,7 @@
df = '-g3'
if ccver >= (5, 0):
df += ' -Og'
@@ -8,8 +8,8 @@
+ 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 -Wstrict-prototypes -std=c11'
@@ -18,7 +18,7 @@
).format(
optimize,
' '.join(sanitize_args),
-@@ -205,7 +205,7 @@
+@@ -227,7 +227,7 @@
)
ldflags = os.environ.get(
'OVERRIDE_LDFLAGS',
@@ -27,21 +27,25 @@
)
ldflags = shlex.split(ldflags)
ldflags.append('-shared')
-@@ -517,14 +517,14 @@
+@@ -606,20 +606,17 @@
- def build_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:
+ if args.sanitize:
+- cflags.append('-g3')
+ cflags.extend(get_sanitize_args(env.cc, env.ccver))
+ libs += ['-lasan'] if env.cc == 'gcc' and not is_macos else []
+ else:
+ 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-9999-svg-icon.patch b/x11-terms/kitty/files/kitty-9999-svg-icon.patch
new file mode 100644
index 00000000000..ff9e00eb67c
--- /dev/null
+++ b/x11-terms/kitty/files/kitty-9999-svg-icon.patch
@@ -0,0 +1,14 @@
+--- kitty-9999/setup.py.orig 2019-07-16 18:13:07.072868752 -0500
++++ kitty-9999/setup.py 2019-07-16 18:13:40.082039929 -0500
+@@ -705,9 +705,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:
diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild
index b56c1d4487f..f9a458abd9a 100644
--- a/x11-terms/kitty/kitty-9999.ebuild
+++ b/x11-terms/kitty/kitty-9999.ebuild
@@ -54,7 +54,7 @@ DEPEND="${RDEPEND}
PATCHES=(
"${FILESDIR}"/${P}-flags.patch
- "${FILESDIR}"/${PN}-0.11.0-svg-icon.patch
+ "${FILESDIR}"/${P}-svg-icon.patch
)
src_prepare() {
next reply other threads:[~2019-07-16 23:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-16 23:17 Matthew Thode [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-10-05 15:23 [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/, x11-terms/kitty/files/ Ionen Wolkens
2023-08-11 4:59 Ionen Wolkens
2021-11-03 6:41 Ionen Wolkens
2021-11-03 6:41 Ionen Wolkens
2021-10-17 20:39 John Helmert III
2021-06-11 7:21 Joonas Niilola
2021-02-02 13:08 Joonas Niilola
2020-05-01 15:09 Joonas Niilola
2020-04-04 7:39 Joonas Niilola
2020-01-09 6:01 Joonas Niilola
2019-12-03 13:13 Joonas Niilola
2019-11-12 4:00 Tim Harder
2019-08-31 10:28 Tim Harder
2019-08-31 10:28 Tim Harder
2019-06-15 21:27 Tim Harder
2018-06-17 9:18 Tim Harder
2018-06-05 4:34 Tim Harder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1563319019.59635ed1891743343e8a1750f024a1ccc0153c23.prometheanfire@gentoo \
--to=prometheanfire@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox