diff options
Diffstat (limited to 'x11-terms/kitty/kitty-9999.ebuild')
-rw-r--r-- | x11-terms/kitty/kitty-9999.ebuild | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild index a0231858ba9b..9e678478d906 100644 --- a/x11-terms/kitty/kitty-9999.ebuild +++ b/x11-terms/kitty/kitty-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -inherit edo flag-o-matic go-env optfeature multiprocessing +inherit edo go-env optfeature multiprocessing inherit python-single-r1 toolchain-funcs xdg if [[ ${PV} == 9999 ]]; then @@ -18,8 +18,6 @@ else verify-sig? ( https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz.sig ) " VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kovidgoyal.gpg - # x86 currently still works but note that upstream has dropped support and - # may ignore issues: https://github.com/kovidgoyal/kitty/commit/29cb128fd KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" fi @@ -42,6 +40,7 @@ RDEPEND=" ${PYTHON_DEPS} dev-libs/openssl:= dev-libs/xxhash + media-fonts/symbols-nerd-font media-libs/fontconfig media-libs/harfbuzz:=[truetype] media-libs/lcms:2 @@ -138,16 +137,6 @@ src_compile() { local -x GOFLAGS="-p=$(makeopts_jobs) -v -x -buildvcs=false" use ppc64 && [[ $(tc-endian) == big ]] || GOFLAGS+=" -buildmode=pie" - # workaround link errors with Go + gcc + -g3 (bug #924436), - # retry now and then to see if can be dropped - tc-is-gcc && - CGO_CFLAGS=$( - CFLAGS=${CGO_CFLAGS} - replace-flags -g3 -g - replace-flags -ggdb3 -ggdb - printf %s "${CFLAGS}" - ) - local conf=( --disable-link-time-optimization --ignore-compiler-warnings @@ -182,11 +171,17 @@ src_test() { src_install() { edo mv linux-package "${ED}"/usr + + # kitty currently detects and copies the system's nerd font at build + # time, then uses that rather than the system's at runtime + dosym -r /usr/share/fonts/symbols-nerd-font/SymbolsNerdFontMono-Regular.ttf \ + /usr/"$(get_libdir)"/kitty/fonts/SymbolsNerdFontMono-Regular.ttf } pkg_postinst() { xdg_pkg_postinst optfeature "audio-based terminal bell support" media-libs/libcanberra + use X && optfeature "X11 startup notification support" x11-libs/startup-notification optfeature "opening links from the terminal" x11-misc/xdg-utils } |