summaryrefslogtreecommitdiff
path: root/dev-python/ruamel-yaml/ruamel-yaml-0.15.35.ebuild
blob: 81c30e970ec71ed5487af024cb6186a24c492905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
PYTHON_COMPAT=( python3_{4,5,6} )
inherit distutils-r1
DESCRIPTION="YAML parser/emitter"
HOMEPAGE="https://bitbucket.org/ruamel/yaml"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""

if [ "${PV}" == "9999" ]; then
	inherit git-r3
	EGIT_REPO_URI="https://bitbucket.org/ruamel/yaml"
else
	SRC_URI="https://bitbucket.org/ruamel/yaml/get/${PV}.tar.gz"
fi

DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack "${A}"
	mv "${WORKDIR}"/ruamel-yaml-* "$S"
}

src_install() {
	export RUAMEL_NO_PIP_INSTALL_CHECK=True
	distutils-r1_src_install
}