/[gentoo-x86]/media-sound/picard/picard-0.12.1.ebuild
Gentoo

Contents of /media-sound/picard/picard-0.12.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Apr 10 13:42:25 2011 UTC (9 years, 7 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Delete older ebuilds.

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-0.12.1.ebuild,v 1.5 2011/04/04 10:02:00 scarabeus Exp $
4
5 EAPI="2"
6 inherit eutils distutils
7
8 MY_P="${P/_/}"
9 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
10 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
11 SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~x86"
16 IUSE="cdda ffmpeg nls"
17
18 DEPEND=">=dev-lang/python-2.5
19 dev-python/PyQt4[X]
20 media-libs/mutagen
21 cdda? ( >=media-libs/libdiscid-0.1.1 )
22 ffmpeg? ( virtual/ffmpeg
23 >=media-libs/libofa-0.9.2 )"
24 RDEPEND="${DEPEND}"
25
26 DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
27 S="${WORKDIR}/${MY_P}"
28
29 pkg_setup() {
30 if ! use ffmpeg; then
31 ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
32 ewarn "recognition will not be available."
33 fi
34 if ! use cdda; then
35 ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
36 ewarn "identification will not be available. You can get audio CD support"
37 ewarn "by installing media-libs/libdiscid."
38 fi
39 }
40
41 src_configure() {
42 ${python} setup.py config || die "setup.py config failed"
43 if ! use ffmpeg; then
44 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
45 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
46 build.cfg || die "sed failed"
47 fi
48 }
49
50 src_compile() {
51 ${python} setup.py build $(use nls || echo "--disable-locales") \
52 || die "setup.py build failed"
53 }
54
55 src_install() {
56 distutils_src_install --disable-autoupdate --skip-build \
57 $(use nls || echo "--disable-locales")
58
59 doicon picard.ico || die 'doicon failed'
60 domenu picard.desktop || die 'domenu failed'
61 }
62
63 pkg_postinst() {
64 distutils_pkg_postinst
65 echo
66 ewarn "If you are upgrading Picard and it does not start"
67 ewarn "try removing Picard's settings:"
68 ewarn " rm ~/.config/MusicBrainz/Picard.conf"
69 elog
70 elog "You should set the environment variable BROWSER to something like"
71 elog "\"firefox '%s' &\" to let python know which browser to use."
72 }

  ViewVC Help
Powered by ViewVC 1.1.20