pentoo-overlay/app-misc/gplaycli/gplaycli-3.22-r1.ebuild
2018-05-11 10:51:47 +08:00

37 lines
1.1 KiB
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{5,6} )
inherit distutils-r1
DESCRIPTION="Google Play Downloader via Command line"
HOMEPAGE="https://github.com/matlink/gplaycli"
SRC_URI="https://github.com/matlink/gplaycli/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pyaxmlparser"
#https://github.com/matlink/gplaycli/issues/182
change_deps() {
PATCHES=( "${FILESDIR}/pyaxmlparser.patch" )
}
RDEPEND="dev-python/protobuf-python[${PYTHON_USEDEP}]
>=dev-python/gpapi-0.4.2[${PYTHON_USEDEP}]
pyaxmlparser? ( dev-python/pyaxmlparser[${PYTHON_USEDEP}] )
!pyaxmlparser? ( dev-python/androguard[${PYTHON_USEDEP}] )
dev-python/clint[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
python_prepare_all() {
use pyaxmlparser && change_deps
# disarm pycrypto dep to allow || ( pycryptodome pycrypto )
sed -i -e "s|os.path.expanduser('~')+'/.config/|'/etc/|" setup.py || die
distutils-r1_python_prepare_all
}