# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.*" inherit distutils python DESCRIPTION="Generate an XML description of a C++ program from GCC's internal representation" HOMEPAGE="http://www.language-binding.net/" SRC_URI="mirror://sourceforge/pygccxml/${P}.zip" LICENSE="freedist Boost-1.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc examples" DEPEND="doc? ( >=dev-python/epydoc-3 ) app-arch/unzip" RDEPEND=">=dev-cpp/gccxml-0.6" src_compile() { distutils_src_compile if use doc; then "$(PYTHON)" setup.py doc || die "creation of docs failed" dohtml -r docs/apidocs/* || die "creation of docs failed" fi if use examples; then docinto /usr/share/doc/${PF} || die "creation of docs failed" doins -r docs/example || die "creation of examples failed" fi } src_test() { testing() { PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" unittests/test_all.py } python_execute_function testing }