diff options
author | Tim Harder <radhermit@gentoo.org> | 2018-06-16 15:38:24 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2018-06-17 05:17:09 -0400 |
commit | eb8eb034f24b8ebb15af1f1e8310c184c7fb4609 (patch) | |
tree | a4617dc08b6b6b4e0bbd8e06835bf2661507c884 /x11-terms | |
parent | apache-2.eclass: Add conditional dependency on sys-libs/gdbm (diff) | |
download | gentoo-eb8eb034f24b8ebb15af1f1e8310c184c7fb4609.tar.gz gentoo-eb8eb034f24b8ebb15af1f1e8310c184c7fb4609.tar.bz2 gentoo-eb8eb034f24b8ebb15af1f1e8310c184c7fb4609.zip |
x11-terms/kitty: version bump to 0.11.0
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/kitty/Manifest | 1 | ||||
-rw-r--r-- | x11-terms/kitty/files/kitty-0.11.0-flags.patch | 47 | ||||
-rw-r--r-- | x11-terms/kitty/files/kitty-0.11.0-svg-icon.patch | 16 | ||||
-rw-r--r-- | x11-terms/kitty/kitty-0.11.0.ebuild | 96 | ||||
-rw-r--r-- | x11-terms/kitty/kitty-9999.ebuild | 10 |
5 files changed, 166 insertions, 4 deletions
diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest index 564ba4283377..bf8f4bdaf657 100644 --- a/x11-terms/kitty/Manifest +++ b/x11-terms/kitty/Manifest @@ -1,2 +1,3 @@ DIST kitty-0.10.1.tar.gz 3844251 BLAKE2B f2b1e523ae48415c410080ae0b419c96e394bfc145da4c3f73fe865e2b1fbd6f7c8ffd18d4e14ea09c0397b8fceb35ebfce72a49d731886588acea5135d4615a SHA512 5341ebdec5356665db5ed0b9f910dac66860b0b39334c0878a3af637bd3da983c11ab8425794e8ea7b3c90f6d64855d8acda4531f25726c01ab355293f033a08 +DIST kitty-0.11.0.tar.gz 3907898 BLAKE2B aed74721a332b41cdfb798097797a4e59c1743d32bf2ae6bf5d90eb571acc5ab93c27f837f17de0f79dcece55ba58b6d178a01df980f19fd5d5c5c11337dba4d SHA512 33e9d0a8de5531d9dad341054dde7986eee9ad9ef1c97809c6ee7f3a5fc5ae210eff59ac02e571c31f233676329143f38f4e95d8971d28b21e6befc362e46984 DIST kitty-0.9.1.tar.gz 3698447 BLAKE2B f7e5c4d365f4fa3f74a348b219ea2433fc1ad05cca68a5ba920b692a4dd5de63fb27cd28159de3af3f11e9a87911bc8600c342ee2bc733317f91e9a7b6226e15 SHA512 3690dd7308f37de3282148c80e2afffde08e4dc2c459f78668d461461ff5dad2b39127635cf22f0f160f40823d2fa1a43a7e83d4bcc0b64e4cbc6e5be1988329 diff --git a/x11-terms/kitty/files/kitty-0.11.0-flags.patch b/x11-terms/kitty/files/kitty-0.11.0-flags.patch new file mode 100644 index 000000000000..44abfb669a0c --- /dev/null +++ b/x11-terms/kitty/files/kitty-0.11.0-flags.patch @@ -0,0 +1,47 @@ +--- kitty-0.11.0/setup.py ++++ kitty-0.11.0/setup.py +@@ -177,7 +177,7 @@ + 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() + cppflags = os.environ.get( + 'OVERRIDE_CPPFLAGS', ( +@@ -190,7 +190,7 @@ + cflags = os.environ.get( + 'OVERRIDE_CFLAGS', ( + '-Wextra -Wno-missing-field-initializers -Wall -std=c99' +- ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden' ++ ' -pedantic {} {} -fwrapv {} {} {} -fvisibility=hidden' + ).format( + optimize, + ' '.join(sanitize_args), +@@ -204,7 +204,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') +@@ -505,14 +505,14 @@ + + + def build_linux_launcher(args, launcher_dir='.', for_bundle=False, sh_launcher=False, for_freeze=False): +- cflags = '-Wall -Werror -fpie'.split() ++ cflags = '-Wall -fpie'.split() + cppflags = [] + libs = [] + if args.profile: + cppflags.append('-DWITH_PROFILER'), cflags.append('-g') + libs.append('-lprofiler') +- else: +- cflags.append('-O3') ++ #else: ++ # cflags.append('-O3') + if for_bundle or for_freeze: + cppflags.append('-DFOR_BUNDLE') + cppflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version())) diff --git a/x11-terms/kitty/files/kitty-0.11.0-svg-icon.patch b/x11-terms/kitty/files/kitty-0.11.0-svg-icon.patch new file mode 100644 index 000000000000..97e45c677f8f --- /dev/null +++ b/x11-terms/kitty/files/kitty-0.11.0-svg-icon.patch @@ -0,0 +1,16 @@ +Use SVG icon instead of PNG. + +--- kitty-0.11.0/setup.py ++++ kitty-0.11.0/setup.py +@@ -605,9 +605,9 @@ + if not is_macos: # {{{ linux desktop gunk + 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-0.11.0.ebuild b/x11-terms/kitty/kitty-0.11.0.ebuild new file mode 100644 index 000000000000..e1bdc32f631a --- /dev/null +++ b/x11-terms/kitty/kitty-0.11.0.ebuild @@ -0,0 +1,96 @@ +# 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 gnome2-utils + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" + inherit git-r3 +else + SRC_URI="https://github.com/kovidgoyal/kitty/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator" +HOMEPAGE="https://github.com/kovidgoyal/kitty" + +LICENSE="GPL-3" +SLOT="0" +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/libXi + x11-libs/libXinerama + x11-libs/libxkbcommon[X] + wayland? ( + dev-libs/wayland + >=dev-libs/wayland-protocols-1.12 + ) +" +RDEPEND=" + ${COMMON_DEPS} + imagemagick? ( virtual/imagemagick-tools ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-python/sphinx[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.11.0-flags.patch + "${FILESDIR}"/${PN}-0.11.0-svg-icon.patch +) + +src_prepare() { + default + + # disable wayland as required + if ! use wayland; then + sed -i "/'x11 wayland'/s/ wayland//" setup.py || die + fi + + # respect doc dir + sed -i "/htmldir =/s/appname/'${PF}'/" setup.py + + tc-export CC +} + +doecho() { + echo "$@" + "$@" || die +} + +src_compile() { + doecho "${EPYTHON}" setup.py --verbose $(usex debug --debug "") --libdir-name $(get_libdir) linux-package +} + +src_test() { + export KITTY_CONFIG_DIRECTORY=${T} + "${EPYTHON}" test.py || die +} + +src_install() { + mkdir -p "${ED}"usr || die + cp -r linux-package/* "${ED}usr" || die + python_fix_shebang "${ED}" +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild index a458d0c67387..e1bdc32f631a 100644 --- a/x11-terms/kitty/kitty-9999.ebuild +++ b/x11-terms/kitty/kitty-9999.ebuild @@ -45,11 +45,12 @@ RDEPEND=" " DEPEND="${RDEPEND} virtual/pkgconfig + dev-python/sphinx[${PYTHON_USEDEP}] " PATCHES=( - "${FILESDIR}"/${PN}-0.9.1-flags.patch - "${FILESDIR}"/${PN}-0.7.1-svg-icon.patch + "${FILESDIR}"/${PN}-0.11.0-flags.patch + "${FILESDIR}"/${PN}-0.11.0-svg-icon.patch ) src_prepare() { @@ -60,6 +61,9 @@ src_prepare() { sed -i "/'x11 wayland'/s/ wayland//" setup.py || die fi + # respect doc dir + sed -i "/htmldir =/s/appname/'${PF}'/" setup.py + tc-export CC } @@ -81,8 +85,6 @@ src_install() { mkdir -p "${ED}"usr || die cp -r linux-package/* "${ED}usr" || die python_fix_shebang "${ED}" - - dodoc CHANGELOG.rst *.asciidoc } pkg_postinst() { |