34 lines
719 B
Bash
34 lines
719 B
Bash
|
# Copyright 1999-2020 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
PYTHON_COMPAT=( python3_6 )
|
||
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="Instant coding answers via the command line"
|
||
|
HOMEPAGE="https://github.com/gleitz/howdoi"
|
||
|
|
||
|
if [[ "${PV}" == *9999* ]]; then
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/gleitz/${PN}.git"
|
||
|
KEYWORDS=""
|
||
|
RESTRICT="mirror"
|
||
|
else
|
||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||
|
KEYWORDS="~amd64"
|
||
|
fi
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
IUSE=""
|
||
|
|
||
|
RDEPEND="
|
||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||
|
dev-python/pygments[${PYTHON_USEDEP}]
|
||
|
dev-python/cachelib[${PYTHON_USEDEP}]
|
||
|
dev-python/appdirs[${PYTHON_USEDEP}]
|
||
|
dev-python/pyquery[${PYTHON_USEDEP}]
|
||
|
"
|