public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tim Harder" <radhermit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/files/, x11-terms/kitty/
Date: Mon,  5 Feb 2018 12:18:08 +0000 (UTC)	[thread overview]
Message-ID: <1517832576.9df975d888eae65bd65a4aeb553ab9b2fb6ad48c.radhermit@gentoo> (raw)

commit:     9df975d888eae65bd65a4aeb553ab9b2fb6ad48c
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  5 12:04:09 2018 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Mon Feb  5 12:09:36 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9df975d8

x11-terms/kitty: initial import

 x11-terms/kitty/Manifest                         |  1 +
 x11-terms/kitty/files/kitty-0.7.1-flags.patch    | 43 +++++++++++++
 x11-terms/kitty/files/kitty-0.7.1-svg-icon.patch | 16 +++++
 x11-terms/kitty/kitty-0.7.1.ebuild               | 79 ++++++++++++++++++++++++
 x11-terms/kitty/metadata.xml                     | 14 +++++
 5 files changed, 153 insertions(+)

diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest
new file mode 100644
index 00000000000..d6aa2678430
--- /dev/null
+++ b/x11-terms/kitty/Manifest
@@ -0,0 +1 @@
+DIST kitty-0.7.1.tar.gz 2535007 BLAKE2B 13c5506b30e54b190d1cec2c2bb5b3b8c76ba3492a065fccae84c84606842b717dc33f74a7b3abf4c0ffec8564c5dd9be4b6ed3972c24cf95662aec594359bc9 SHA512 595e64e49ac940b37ff88d6152006ebfe2722682a8ff6c8bc2514c150a5b51934b9de5b8c99130910e5638f9c1db566abf4adb65f3fdce893708787d1ded59c1

diff --git a/x11-terms/kitty/files/kitty-0.7.1-flags.patch b/x11-terms/kitty/files/kitty-0.7.1-flags.patch
new file mode 100644
index 00000000000..6352ae93f63
--- /dev/null
+++ b/x11-terms/kitty/files/kitty-0.7.1-flags.patch
@@ -0,0 +1,43 @@
+--- kitty-0.7.1/setup.py
++++ kitty-0.7.1/setup.py
+@@ -163,12 +163,12 @@
+     df = '-g3'
+     if ccver >= (5, 0):
+         df += ' -Og'
+-    optimize = df if debug or sanitize else '-O3'
++    optimize = ''
+     sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
+     cflags = os.environ.get(
+         'OVERRIDE_CFLAGS', (
+             '-Wextra -Wno-missing-field-initializers -Wall -std=c99 -D_XOPEN_SOURCE=700'
+-            ' -pedantic-errors -Werror {} {} -D{}DEBUG -fwrapv {} {} -pipe {} -fvisibility=hidden'
++            ' -pedantic {} {} -D{}DEBUG -fwrapv {} {} {} -fvisibility=hidden'
+         ).format(
+             optimize,
+             ' '.join(sanitize_args),
+@@ -183,7 +183,7 @@
+     )
+     ldflags = os.environ.get(
+         'OVERRIDE_LDFLAGS',
+-        '-Wall ' + ' '.join(sanitize_args) + ('' if debug else ' -O3')
++        '-Wall ' + ' '.join(sanitize_args)
+     )
+     ldflags = shlex.split(ldflags)
+     ldflags.append('-shared')
+@@ -455,13 +455,13 @@
+ 
+ 
+ def build_linux_launcher(args, launcher_dir='.', for_bundle=False, sh_launcher=False):
+-    cflags = '-Wall -Werror -fpie'.split()
++    cflags = '-Wall -fpie'.split()
+     libs = []
+     if args.profile:
+         cflags.append('-DWITH_PROFILER'), cflags.append('-g')
+         libs.append('-lprofiler')
+-    else:
+-        cflags.append('-O3')
++    #else:
++    #    cflags.append('-O3')
+     if for_bundle:
+         cflags.append('-DFOR_BUNDLE')
+         cflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version()))

diff --git a/x11-terms/kitty/files/kitty-0.7.1-svg-icon.patch b/x11-terms/kitty/files/kitty-0.7.1-svg-icon.patch
new file mode 100644
index 00000000000..345ba99a89d
--- /dev/null
+++ b/x11-terms/kitty/files/kitty-0.7.1-svg-icon.patch
@@ -0,0 +1,16 @@
+Use SVG icon instead of PNG.
+
+--- kitty-0.7.1/setup.py
++++ kitty-0.7.1/setup.py
+@@ -507,9 +507,9 @@
+     safe_makedirs(launcher_dir)
+     build_linux_launcher(args, launcher_dir, for_bundle, sh_launcher)
+     if not is_macos:  # {{{ linux desktop gunk
+-        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-0.7.1.ebuild b/x11-terms/kitty/kitty-0.7.1.ebuild
new file mode 100644
index 00000000000..4a24fd5abf5
--- /dev/null
+++ b/x11-terms/kitty/kitty-0.7.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{5,6} )
+
+inherit python-single-r1 toolchain-funcs
+
+DESCRIPTION="a cross-platform, fast, featureful, GPU-based terminal emulator"
+HOMEPAGE="https://github.com/kovidgoyal/kitty"
+SRC_URI="https://github.com/kovidgoyal/kitty/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug imagemagick wayland"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPS="
+	${PYTHON_DEPS}
+	>=media-libs/harfbuzz-1.5.0:=
+	sys-libs/zlib
+	media-libs/libpng:0=
+	media-libs/freetype:2
+	media-libs/fontconfig
+	x11-libs/libXcursor
+	x11-libs/libXrandr
+	x11-libs/libXinerama
+	x11-libs/libxkbcommon
+	wayland? (
+		dev-libs/wayland
+		>=dev-libs/wayland-protocols-1.12
+	)
+"
+RDEPEND="
+	${COMMON_DEPS}
+	imagemagick? ( virtual/imagemagick-tools )
+"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-flags.patch
+	"${FILESDIR}"/${P}-svg-icon.patch)
+
+src_prepare() {
+	default
+
+	# respect libdir
+	sed -i "/libdir =/s/'lib'/'$(get_libdir)'/" setup.py || die
+
+	# disable wayland as required
+	if ! use wayland; then
+		sed -i "/'x11 wayland'/s/ wayland//" setup.py || die
+	fi
+
+	tc-export CC
+}
+
+doecho() {
+	echo "$@"
+	"$@" || die
+}
+
+src_compile() {
+	doecho "${EPYTHON}" setup.py --verbose $(usex debug --debug "") linux-package
+}
+
+src_test() {
+	"${EPYTHON}" test.py || die
+}
+
+src_install() {
+	mkdir -p "${ED}"usr || die
+	cp -r linux-package/* "${ED}usr" || die
+
+	dodoc CHANGELOG.rst *.asciidoc
+}

diff --git a/x11-terms/kitty/metadata.xml b/x11-terms/kitty/metadata.xml
new file mode 100644
index 00000000000..9289a618728
--- /dev/null
+++ b/x11-terms/kitty/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>radhermit@gentoo.org</email>
+		<name>Tim Harder</name>
+	</maintainer>
+	<use>
+		<flag name="imagemagick">Support displaying images in the terminal with icat</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">kovidgoyal/kitty</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2018-02-05 12:18 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-05 12:18 Tim Harder [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-05-07  6:29 [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/files/, x11-terms/kitty/ Tim Harder
2018-06-21 18:02 Tim Harder
2019-01-06  2:56 Tim Harder
2019-06-08  4:31 Matthew Thode
2019-06-15 21:27 Tim Harder
2020-01-14 14:23 Joonas Niilola
2020-02-05  9:09 Tim Harder
2020-03-14 12:07 Joonas Niilola
2020-03-20 14:30 Joonas Niilola
2020-10-17 14:04 Joonas Niilola
2021-02-02 13:08 Joonas Niilola
2021-05-10  8:06 Joonas Niilola
2021-05-10  8:06 Joonas Niilola
2021-06-01  0:02 Sam James
2021-07-14  6:25 Joonas Niilola
2021-11-10 10:59 Ionen Wolkens
2022-09-08 18:23 Ionen Wolkens
2023-07-14  9:32 Ionen Wolkens
2023-12-12 21:25 Ionen Wolkens
2024-03-16  7:25 Ionen Wolkens

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=1517832576.9df975d888eae65bd65a4aeb553ab9b2fb6ad48c.radhermit@gentoo \
    --to=radhermit@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