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

Contents of /media-sound/picard/picard-0.10.0_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Aug 17 12:31:53 2008 UTC (12 years, 3 months ago) by coldwind
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bump to 0.10 release, fixes #233171, thanks to Vadim Efimov for the hints.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo-r1 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.0_rc1.ebuild,v 1.2 2008/06/30 20:51:11 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-1.13
21 cdaudio? ( >=media-libs/libdiscid-0.1.1 )
22 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326
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 # This raises ffmpeg dep to >=0.4.9_p20080326
51 epatch "${FILESDIR}"/${P}-ffmpeg-headers.patch
52 }
53
54 src_compile() {
55 ${python} setup.py config || die "setup.py config failed"
56 if ! use ffmpeg; then
57 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
58 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
59 build.cfg || die "sed failed"
60 fi
61 ${python} setup.py build $(use nls || echo "--disable-locales") \
62 || die "setup.py build failed"
63 }
64
65 src_install() {
66 distutils_src_install --disable-autoupdate --skip-build \
67 $(use nls || echo "--disable-locales")
68 }
69
70 pkg_postinst() {
71 distutils_pkg_postinst
72 echo
73 elog "You should set the environment variable BROWSER to something like"
74 elog "\"firefox '%s' &\" to let python know which browser to use."
75 }

  ViewVC Help
Powered by ViewVC 1.1.20