diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /x11-terms/kitty/kitty-9999.ebuild | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'x11-terms/kitty/kitty-9999.ebuild')
-rw-r--r-- | x11-terms/kitty/kitty-9999.ebuild | 59 |
1 files changed, 26 insertions, 33 deletions
diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild index c51e3ffd52d4..6cf7eb8c9ee3 100644 --- a/x11-terms/kitty/kitty-9999.ebuild +++ b/x11-terms/kitty/kitty-9999.ebuild @@ -1,10 +1,11 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 + PYTHON_COMPAT=( python3_{6,7} ) -inherit python-single-r1 toolchain-funcs gnome2-utils +inherit python-single-r1 toolchain-funcs xdg if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" @@ -19,43 +20,43 @@ HOMEPAGE="https://github.com/kovidgoyal/kitty" LICENSE="GPL-3" SLOT="0" -IUSE="debug doc imagemagick wayland" +IUSE="debug imagemagick wayland" REQUIRED_USE="${PYTHON_REQUIRED_USE}" -COMMON_DEPS=" +RDEPEND=" ${PYTHON_DEPS} + media-libs/fontconfig + media-libs/freetype:2 >=media-libs/harfbuzz-1.5.0:= - sys-apps/dbus - sys-libs/zlib media-libs/libcanberra media-libs/libpng:0= - media-libs/freetype:2 - media-libs/fontconfig + x11-libs/libxcb[xkb] x11-libs/libXcursor - x11-libs/libXrandr x11-libs/libXi x11-libs/libXinerama x11-libs/libxkbcommon[X] - x11-libs/libxcb[xkb] + x11-libs/libXrandr + sys-apps/dbus + sys-libs/zlib + imagemagick? ( virtual/imagemagick-tools ) wayland? ( dev-libs/wayland >=dev-libs/wayland-protocols-1.17 ) " -RDEPEND=" - ${COMMON_DEPS} - imagemagick? ( virtual/imagemagick-tools ) -" + DEPEND="${RDEPEND} media-libs/mesa[X(+)] sys-libs/ncurses - virtual/pkgconfig " -[[ ${PV} == *9999 ]] && DEPEND+=" >=dev-python/sphinx-1.7[${PYTHON_USEDEP}]" + +BDEPEND="virtual/pkgconfig" + +[[ ${PV} == *9999 ]] && BDEPEND+=" >=dev-python/sphinx-1.7" PATCHES=( "${FILESDIR}"/${P}-flags.patch - "${FILESDIR}"/${P}-svg-icon.patch + "${FILESDIR}"/${PN}-0.14.4-svg-icon.patch ) src_prepare() { @@ -67,21 +68,16 @@ src_prepare() { fi # respect doc dir - sed -i "/htmldir =/s/appname/'${PF}'/" setup.py + sed -i "/htmldir =/s/appname/'${PF}'/" setup.py || die tc-export CC } -doecho() { - echo "$@" - "$@" || die -} - src_compile() { - doecho "${EPYTHON}" setup.py \ + "${EPYTHON}" setup.py \ --verbose $(usex debug --debug "") \ --libdir-name $(get_libdir) \ - linux-package + linux-package || die "Failed to compile kitty." } src_test() { @@ -90,19 +86,16 @@ src_test() { } src_install() { - mkdir -p "${ED}"usr || die - cp -r linux-package/* "${ED}usr" || die + insinto /usr + doins -r linux-package/* + dobin linux-package/bin/kitty python_fix_shebang "${ED}" - - if ! use doc; then - rm -r "${ED}"/usr/share/doc || die - fi } pkg_postinst() { - gnome2_icon_cache_update + xdg_icon_cache_update } pkg_postrm() { - gnome2_icon_cache_update + xdg_icon_cache_update } |