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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Dec 1 21:19:32 2008 UTC (12 years ago) by coldwind
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Fix bug #246148, thanks to Markus Rathgeb <maggu2810@web.de>.
(Portage version: 2.2_rc16/cvs/Linux 2.6.27-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.9.0.ebuild,v 1.6 2008/06/30 20:51:11 coldwind Exp $
4
5 inherit eutils distutils
6
7 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
8 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
9 SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 x86"
14 IUSE="cdaudio ffmpeg nls"
15
16 RDEPEND=">=dev-lang/python-2.4
17 || ( >=dev-lang/python-2.5 >=dev-python/ctypes-0.9 )
18 >=dev-python/PyQt4-4.2
19 >=media-libs/mutagen-1.9
20 cdaudio? ( >=media-libs/libdiscid-0.1.1 )
21 ffmpeg? ( <media-video/ffmpeg-0.4.9_p20080326
22 >=media-libs/libofa-0.9.2 )"
23
24 DEPEND="${RDEPEND}"
25
26 DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
27
28 pkg_setup() {
29 if ! use ffmpeg; then
30 ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
31 ewarn "recognition will not be available."
32 fi
33 if ! use cdaudio; then
34 ewarn "The 'cdaudio' USE flag is disabled. CD index lookup and"
35 ewarn "identification will not be available. You can get audio CD support"
36 ewarn "by installing media-libs/libdiscid."
37 fi
38
39 if ! built_with_use --missing true dev-lang/python cxx ; then
40 eerror "Please, rebuild dev-lang/python with USE=\"cxx\"."
41 die "dev-lang/python built without cxx support"
42 fi
43 }
44
45 src_compile() {
46 ${python} setup.py config || die "setup.py config failed"
47 if ! use ffmpeg; then
48 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
49 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
50 build.cfg || die "sed failed"
51 fi
52 ${python} setup.py build $(use nls || echo "--disable-locales") \
53 || die "setup.py build failed"
54 }
55
56 src_install() {
57 distutils_src_install --disable-autoupdate --skip-build \
58 $(use nls || echo "--disable-locales")
59 }
60
61 pkg_postinst() {
62 distutils_pkg_postinst
63 echo
64 elog "You should set the environment variable BROWSER to something like"
65 elog "\"firefox '%s' &\" to let python know which browser to use."
66 }

  ViewVC Help
Powered by ViewVC 1.1.20