linamh/net-misc/youtube-dl-gui/youtube-dl-gui-1.1.4.ebuild

57 lines
1.2 KiB
Bash
Raw Normal View History

# Copyright 1999-2022 Gentoo Authors
2021-06-30 18:45:43 +02:00
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2022-07-12 15:04:49 +02:00
PYTHON_COMPAT=( python3_{4,5,6,7,8,9,10} )
2021-06-30 18:45:43 +02:00
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
ffmpeg? ( media-video/ffmpeg )"
python_prepare() {
esetup.py build_trans
}
python_install_all() {
distutils-r1_python_install_all
make_desktop_entry $PN \
"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
}