# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="${PN}-0.5.0-test2" DESCRIPTION="The PicardTagger is the next generation MusicBrainzTagger." HOMEPAGE="http://wiki.musicbrainz.org/PicardTagger" SRC_URI="https://helixcommunity.org/download.php/1413/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-lang/python-2.4.0 >=dev-python/wxpython-2.6.1.0 =media-libs/musicbrainz-2.1.1* python-musicbrainz =media-libs/tunepimp-0.4.0_pre5 " RDEPEND="${DEPEND}" S="${WORKDIR}" 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 } src_install() { dodir /usr/share cp -vr ${MY_P} ${D}/usr/share/${P} || die dodir /usr/bin dosym /usr/share/${P}/tagger.py /usr/bin/tagger.py } pkg_postinst() { einfo "You should set the environment variable BROWSER to something like" einfo "\"firefox %s &\" to let python know which browser to use." }