2021-07-07 18:20:27 +02:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-03-03 01:08:26 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-11-29 16:31:27 +01:00
|
|
|
EAPI=8
|
2020-03-03 01:08:26 +01:00
|
|
|
|
2021-11-29 16:31:27 +01:00
|
|
|
PYTHON_COMPAT=( python3_{7..9} )
|
2020-03-03 01:08:26 +01:00
|
|
|
|
2020-10-23 16:40:04 +02:00
|
|
|
inherit xdg distutils-r1
|
2020-03-03 01:08:26 +01:00
|
|
|
|
|
|
|
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
|
2020-03-03 01:13:21 +01:00
|
|
|
SRC_URI="https://github.com/axcore/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
2020-03-03 01:08:26 +01:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2021-11-29 16:31:27 +01:00
|
|
|
IUSE="+atomicparsley"
|
2020-03-03 01:08:26 +01:00
|
|
|
|
|
|
|
RDEPEND="
|
2020-08-15 18:37:36 +02:00
|
|
|
dev-python/pygobject[${PYTHON_USEDEP}]
|
2020-03-03 01:08:26 +01:00
|
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
2020-08-15 18:37:36 +02:00
|
|
|
x11-themes/adwaita-icon-theme
|
|
|
|
atomicparsley? (
|
|
|
|
media-video/atomicparsley
|
|
|
|
)
|
2020-03-03 01:08:26 +01:00
|
|
|
"
|
|
|
|
|
|
|
|
DOCS=(
|
|
|
|
AUTHORS
|
|
|
|
CHANGES
|
|
|
|
README.rst
|
|
|
|
)
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
export TARTUBE_PKG_STRICT=1
|
2020-08-15 18:37:36 +02:00
|
|
|
|
2020-03-03 01:08:26 +01:00
|
|
|
distutils-r1_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
distutils-r1_src_install
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_desktop_database_update
|
|
|
|
xdg_icon_cache_update
|
2020-08-15 18:37:36 +02:00
|
|
|
|
2020-03-03 01:08:26 +01:00
|
|
|
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
|
|
|
|
}
|