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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Nov 4 17:09:06 2011 UTC (9 years ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

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.14.ebuild,v 1.1 2011/05/26 04:33:52 aballier Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9
10 inherit eutils distutils
11
12 MY_P="${P/_/}"
13 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
14 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
15 SRC_URI="
16 http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz
17 coverart? ( http://users.musicbrainz.org/~outsidecontext/picard/plugins/coverart.py )"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="~amd64 ~ppc ~x86"
22 IUSE="cdda coverart ffmpeg nls"
23
24 DEPEND="
25 dev-python/PyQt4[X]
26 media-libs/mutagen
27 cdda? ( >=media-libs/libdiscid-0.1.1 )
28 ffmpeg? (
29 virtual/ffmpeg
30 >=media-libs/libofa-0.9.2 )"
31 RDEPEND="${DEPEND}"
32
33 # doesn't work with ebuilds
34 RESTRICT="test"
35
36 RESTRICT_PYTHON_ABIS="2.4 3.*"
37
38 S="${WORKDIR}/${MY_P}"
39
40 DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
41
42 pkg_setup() {
43 if ! use ffmpeg; then
44 ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
45 ewarn "recognition will not be available."
46 fi
47 if ! use cdda; then
48 ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
49 ewarn "identification will not be available. You can get audio CD support"
50 ewarn "by installing media-libs/libdiscid."
51 fi
52 }
53
54 src_unpack() {
55 unpack ${MY_P}.tar.gz
56 if use coverart; then
57 cp "${DISTDIR}"/coverart.py "${S}"/${PN}/plugins/coverart.py || die "Copy of coverart plugin failed"
58 fi
59 }
60
61 src_prepare() {
62 epatch "${FILESDIR}/${PN}-0.13-ffmpeg.patch"
63 distutils_src_prepare
64 }
65
66 src_configure() {
67 $(PYTHON -f) setup.py config || die "setup.py config failed"
68 if ! use ffmpeg; then
69 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
70 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
71 build.cfg || die "sed failed"
72 fi
73 }
74
75 src_compile() {
76 distutils_src_compile $(use nls || echo "--disable-locales")
77 }
78
79 src_install() {
80 distutils_src_install --disable-autoupdate --skip-build \
81 $(use nls || echo "--disable-locales")
82
83 doicon picard.ico || die 'doicon failed'
84 domenu picard.desktop || die 'domenu failed'
85 }
86
87 pkg_postinst() {
88 distutils_pkg_postinst
89 echo
90 ewarn "If you are upgrading Picard and it does not start"
91 ewarn "try removing Picard's settings:"
92 ewarn " rm ~/.config/MusicBrainz/Picard.conf"
93 elog
94 elog "You should set the environment variable BROWSER to something like"
95 elog "\"firefox '%s' &\" to let python know which browser to use."
96 if use coverart; then
97 ewarn "You have downloaded and installed the coverart downloader plugin."
98 ewarn "If you expect it to work please enable it in Options->Plugins."
99 fi
100 }

  ViewVC Help
Powered by ViewVC 1.1.20