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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jan 14 04:14:23 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-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-1.0.ebuild,v 1.3 2012/10/17 03:51:09 phajdan.jr Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.5"
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="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="amd64 ~ppc x86"
21 IUSE="+acoustid +cdda +ffmpeg nls"
22
23 DEPEND="dev-python/PyQt4[X]
24 media-libs/mutagen
25 acoustid? ( media-libs/chromaprint[tools] )
26 cdda? ( >=media-libs/libdiscid-0.1.1 )
27 ffmpeg? ( virtual/ffmpeg
28 >=media-libs/libofa-0.9.2 )"
29 RDEPEND="${DEPEND}"
30
31 # doesn't work with ebuilds
32 RESTRICT="test"
33
34 S="${WORKDIR}/${MY_P}"
35
36 DOCS="AUTHORS.txt NEWS.txt"
37
38 pkg_setup() {
39 if ! use acoustid && ! use ffmpeg; then
40 ewarn "The 'acoustid' and 'ffmpeg' USE flag are disabled."
41 ewarn "Acoustic fingerprinting and recognition will not be available."
42 fi
43 if ! use cdda; then
44 ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
45 ewarn "identification will not be available. You can get audio CD support"
46 ewarn "by installing media-libs/libdiscid."
47 fi
48 python_pkg_setup
49 }
50
51 src_configure() {
52 $(PYTHON -f) setup.py config || die "setup.py config failed"
53 if ! use ffmpeg; then
54 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
55 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
56 build.cfg || die "sed failed"
57 fi
58 }
59
60 src_compile() {
61 distutils_src_compile $(use nls || echo "--disable-locales")
62 }
63
64 src_install() {
65 distutils_src_install --disable-autoupdate --skip-build \
66 $(use nls || echo "--disable-locales")
67
68 doicon picard.ico
69 domenu picard.desktop
70 }
71
72 pkg_postinst() {
73 distutils_pkg_postinst
74 echo
75 ewarn "If you are upgrading Picard and it does not start"
76 ewarn "try removing Picard's settings:"
77 ewarn " rm ~/.config/MusicBrainz/Picard.conf"
78 elog
79 elog "You should set the environment variable BROWSER to something like"
80 elog "\"firefox '%s' &\" to let python know which browser to use."
81 }

  ViewVC Help
Powered by ViewVC 1.1.20