# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{4..12} ) inherit desktop distutils-r1 xdg-utils DESCRIPTION="A cross platform front-end GUI of the popular youtube-dl" HOMEPAGE="https://github.com/oleksis/youtube-dl-gui/" LICENSE="Unlicense" if [[ ${PV} == *9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/oleksis/youtube-dl-gui.git" else SRC_URI="https://github.com/oleksis/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64 ~x86" fi IUSE="+ffmpeg" SLOT="0" BDEPEND="sys-devel/gettext" DEPEND="${PYTHON_DEPS}" RDEPEND="${DEPEND} dev-python/wxpython:4.0[${PYTHON_USEDEP}] dev-python/twodict[${PYTHON_USEDEP}] dev-python/polib[${PYTHON_USEDEP}] dev-python/pypubsub[${PYTHON_USEDEP}] || ( net-misc/youtube-dl net-misc/yt-dlp net-misc/ytdlp-plugin ) ffmpeg? ( media-video/ffmpeg )" python_prepare() { esetup.py build_trans } python_install_all() { distutils-r1_python_install_all make_desktop_entry yt-dlg \ "Youtube-DLG" \ "youtube-dl-gui" \ "Network;GTK;" } pkg_postinst() { xdg_icon_cache_update xdg_desktop_database_update } pkg_postrm() { xdg_icon_cache_update xdg_desktop_database_update }