# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/mutagen/mutagen-1.16.ebuild, 2009/07/04 21:37:52 bones7456 Exp $ inherit distutils eutils DESCRIPTION="Mutagen is an audio metadata tag reader and writer implemented in pure Python." HOMEPAGE="http://code.google.com/p/mutagen/" SRC_URI="http://mutagen.googlecode.com/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ~hppa ~ia64 ppc ppc64 sparc x86" IUSE="test" RDEPEND=">=virtual/python-2.4" DEPEND="${RDEPEND} test? ( dev-python/eyeD3 dev-python/pyvorbis media-libs/flac media-sound/vorbis-tools )" DOCS="API-NOTES NEWS README TODO TUTORIAL" src_test() { if ! built_with_use media-libs/flac ogg ; then ewarn "You need media-libs/flac to be built with use ogg in order to" ewarn "run the tests. Please re-install it with the ogg useflag enabled." ewarn "Skipping tests." else python setup.py test || die "src_test failed." fi }