summaryrefslogtreecommitdiff
blob: a0c14d1a263cbe4bf260c805b596026b1ee8cdf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="The PicardTagger is the next generation MusicBrainzTagger."
HOMEPAGE="http://wiki.musicbrainz.org/PicardTagger"
SRC_URI="https://helixcommunity.org/download.php/1791/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND=">=dev-lang/python-2.4.0
	>=dev-python/wxpython-2.6.1.0
	=media-libs/musicbrainz-2.1.1*
	=media-libs/tunepimp-0.4.2
	dev-python/python-musicbrainz
	>=dev-python/ctypes-0.9
	"

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 ${P} ${D}/usr/share/${P} || die
	dodir /usr/bin
	dosym /usr/share/${P}/tagger.py /usr/bin/tagger.py
	dosym /usr/share/${P}/tagger.py /usr/bin/picard-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."
}