View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10,11,12,13,14} )
inherit xdg distutils-r1
DESCRIPTION="A GUI front-end for youtube-dl"
HOMEPAGE="https://tartube.sourceforge.io"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/axcore/${PN}.git"
else
SRC_URI="https://github.com/axcore/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
RESTRICT="mirror"
LICENSE="GPL-3"
SLOT="0"
IUSE="+atomicparsley +ffmpeg"
RDEPEND="
dev-python/pygobject[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
net-misc/yt-dlp
x11-themes/adwaita-icon-theme
atomicparsley? (
media-video/atomicparsley
)
ffmpeg? (
media-video/ffmpeg
)
"
DOCS=(
AUTHORS
CHANGES
README.rst
)
export TARTUBE_PKG_STRICT=1
SAVEME=""
python_compile() {
SAVEME="$(python_get_sitedir)"
distutils-r1_python_compile
}
src_install() {
distutils-r1_src_install
dosym "${SAVEME}/usr/share/tartube/" "/usr/share/tartube"
}
pkg_postinst() {
xdg_desktop_database_update
xdg_icon_cache_update
elog "You may need to set path to (system) youtube-dl"
elog "in Tartube's System preferences"
}
pkg_postrm() {
xdg_desktop_database_update
xdg_icon_cache_update
}