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

Contents of /media-sound/picard/picard-0.15.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jan 14 04:14:22 2013 UTC (7 years, 10 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha151/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

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

  ViewVC Help
Powered by ViewVC 1.1.20