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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Dec 13 07:35:18 2008 UTC (11 years, 11 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6/cvs/Linux 2.6.27.7 i686)

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-r2.ebuild,v 1.1 2008/12/01 21:19:32 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 epatch "${FILESDIR}"/${P}-ffmpeg-avcodec_decode_audio2.patch
54 }
55
56 src_compile() {
57 ${python} setup.py config || die "setup.py config failed"
58 if ! use ffmpeg; then
59 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
60 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
61 build.cfg || die "sed failed"
62 fi
63 ${python} setup.py build $(use nls || echo "--disable-locales") \
64 || die "setup.py build failed"
65 }
66
67 src_install() {
68 distutils_src_install --disable-autoupdate --skip-build \
69 $(use nls || echo "--disable-locales")
70
71 doicon picard-{16,32}.png
72 domenu picard.desktop
73 }
74
75 pkg_postinst() {
76 distutils_pkg_postinst
77 echo
78 elog "You should set the environment variable BROWSER to something like"
79 elog "\"firefox '%s' &\" to let python know which browser to use."
80 }

  ViewVC Help
Powered by ViewVC 1.1.20