# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"
DISTUTILS_SRC_TEST="setup.py"

inherit distutils versionator

DESCRIPTION="Purchase Invoice Line Standalone"
HOMEPAGE="http://www.tryton.org/"
SRC_URI="http://downloads.tryton.org/$(get_version_component_range 1-2)/trytond_${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="=app-office/trytond-$(get_version_component_range 1-2)*
	=app-tryton/purchase-$(get_version_component_range 1-2)*
	=app-tryton/account_invoice_line_standalone-$(get_version_component_range 1-2)*"
DEPEND="${RDEPEND}
	dev-python/setuptools
	test? ( dev-lang/python[sqlite] )"
RESTRICT_PYTHON_ABIS="2.[45] 3.*"

S=${WORKDIR}/trytond_${P}

PYTHON_MODNAME="trytond/modules/${PN}"

src_install() {
	distutils_src_install

	dodoc CHANGELOG COPYRIGHT INSTALL README
}