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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Nov 7 11:30:27 2008 UTC (12 years ago) by coldwind
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Install menu entry (bug #235122).
(Portage version: 2.2_rc13/cvs/Linux 2.6.26-gentoo-r2 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.ebuild,v 1.1 2008/08/17 12:31:53 coldwind 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
71 pkg_postinst() {
72 distutils_pkg_postinst
73 echo
74 elog "You should set the environment variable BROWSER to something like"
75 elog "\"firefox '%s' &\" to let python know which browser to use."
76 }

  ViewVC Help
Powered by ViewVC 1.1.20