# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ NEED_PYTHON="2.4" inherit python eutils distutils DESCRIPTION="The PicardTagger is the next generation MusicBrainzTagger." HOMEPAGE="http://wiki.musicbrainz.org/PicardTagger" SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${P}.tar.gz" LICENSE="|| ( GPL-2 RPSL RCSL-1.0 )" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND=">=dev-python/wxpython-2.6.1 >=media-libs/tunepimp-0.5 =dev-python/python-musicbrainz2-0.3.1 >=dev-python/ctypes-0.9" DEPEND="${RDEPEND}" DOCS="AUTHORS COPYING README TODO ChangeLog" src_unpack() { unpack ${A} epatch "${FILESDIR}/fix-distutils-build.patch" } pkg_setup() { if ! built_with_use dev-python/wxpython unicode; then eerror "Dependency dev-python/wxpython must be intalled with USE=\"unicode\"" die "Broken depencency" fi if ! built_with_use media-libs/tunepimp python; then eerror "Dependency media-libs/tunepimp must be installed with USE=\"python\"" die "Broken dependency" fi } pkg_postinst() { einfo "You should set the environment variable BROWSER to something like" einfo "\"firefox '%s' &\" to let python know which browser to use." }