You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
894 B
39 lines
894 B
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
|
|
PYTHON_COMPAT=(python{2_7,3_4})
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="framework for ebuild generators"
|
|
HOMEPAGE="https://github.com/jauhien/g-sorcery"
|
|
SRC_URI="https://github.com/jauhien/g-sorcery/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
IUSE="bson"
|
|
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
|
|
|
|
DEPEND="bson? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
|
|| (
|
|
sys-apps/portage[${PYTHON_USEDEP}]
|
|
sys-apps/portage-mgorny[${PYTHON_USEDEP}]
|
|
)"
|
|
RDEPEND="${DEPEND}"
|
|
PDEPEND=">=app-portage/layman-2.2.0[g-sorcery(-),${PYTHON_USEDEP}]"
|
|
|
|
python_test() {
|
|
PYTHONPATH="." "${PYTHON}" scripts/run_tests.py
|
|
}
|
|
|
|
python_install_all() {
|
|
distutils-r1_python_install_all
|
|
|
|
doman docs/*.8
|
|
dohtml docs/developer_instructions.html
|
|
diropts -m0777
|
|
dodir /var/lib/g-sorcery
|
|
}
|