# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils DESCRIPTION="Python bindings for musicbrainz client library" HOMEPAGE="http://musicbrainz.org/" SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/python-musicbrainz2/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="nomirror" IUSE="doc examples" DEPEND=">=media-libs/musicbrainz-2.1.1 >=dev-lang/python-2.3 || ( >=dev-lang/python-2.5 >=dev-python/ctypes-0.9.6 ) doc? ( dev-python/epydoc )" DOCS="AUTHORS.txt CHANGES.txt COPYING.txt" src_install() { distutils_src_install if use doc; then python setup.py docs docinto html dohtml html/* fi if use examples; then dodir /usr/share/doc/${PF}/examples cp examples/* "${D}"/usr/share/doc/${PF}/examples/ fi }