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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jun 6 14:22:40 2009 UTC (11 years, 5 months ago) by yngwin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old, migrate 0.11 to eapi-2 with use deps, check for X useflag in PyQt4. Fixes bug 272175.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2008 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.10-r1.ebuild,v 1.2 2008/11/09 11:16:36 maekke Exp $
4
5 inherit eutils distutils
6
7 MY_P="${P/_/}"
8 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
9 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
10 SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE="cdaudio ffmpeg nls"
16
17 RDEPEND=">=dev-lang/python-2.4
18 || ( >=dev-lang/python-2.5 >=dev-python/ctypes-0.9 )
19 >=dev-python/PyQt4-4.2
20 media-libs/mutagen
21 cdaudio? ( >=media-libs/libdiscid-0.1.1 )
22 ffmpeg? ( media-video/ffmpeg
23 >=media-libs/libofa-0.9.2 )"
24
25 DEPEND="${RDEPEND}"
26
27 DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
28 S=${WORKDIR}/${MY_P}
29
30 pkg_setup() {
31 if ! use ffmpeg; then
32 ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
33 ewarn "recognition will not be available."
34 fi
35 if ! use cdaudio; then
36 ewarn "The 'cdaudio' USE flag is disabled. CD index lookup and"
37 ewarn "identification will not be available. You can get audio CD support"
38 ewarn "by installing media-libs/libdiscid."
39 fi
40
41 if ! built_with_use --missing true dev-lang/python cxx ; then
42 eerror "Please, rebuild dev-lang/python with USE=\"cxx\"."
43 die "dev-lang/python built without cxx support"
44 fi
45 }
46
47 src_unpack() {
48 unpack ${A}
49 cd "${S}"
50 if has_version '>=media-video/ffmpeg-0.4.9_p20080326' ; then
51 epatch "${FILESDIR}"/${PN}-0.10.0_rc1-ffmpeg-headers.patch
52 fi
53 }
54
55 src_compile() {
56 ${python} setup.py config || die "setup.py config failed"
57 if ! use ffmpeg; then
58 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
59 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
60 build.cfg || die "sed failed"
61 fi
62 ${python} setup.py build $(use nls || echo "--disable-locales") \
63 || die "setup.py build failed"
64 }
65
66 src_install() {
67 distutils_src_install --disable-autoupdate --skip-build \
68 $(use nls || echo "--disable-locales")
69
70 doicon picard-{16,32}.png
71 domenu picard.desktop
72 }
73
74 pkg_postinst() {
75 distutils_pkg_postinst
76 echo
77 elog "You should set the environment variable BROWSER to something like"
78 elog "\"firefox '%s' &\" to let python know which browser to use."
79 }

  ViewVC Help
Powered by ViewVC 1.1.20