# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

PYTHON_COMPAT=( python3_{9..11} )

inherit distutils-r1 python-utils-r1

DESCRIPTION="Python bindings for libversion"
HOMEPAGE="https://pypi.org/project/libversion/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND=">=dev-libs/libversion-2.7.0"
BDEPEND="virtual/pkgconfig"

python_compile(){
	PKG_CONFIG_PATH="/usr/lib/pkgconfig" distutils-r1_python_compile
}

python_install(){
	PKG_CONFIG_PATH="/usr/lib/pkgconfig" distutils-r1_python_install
}