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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Feb 8 18:49:50 2008 UTC (12 years, 9 months ago) by coldwind
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 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_beta1.ebuild,v 1.1 2007/10/28 17:24:35 coldwind Exp $
4
5 inherit eutils distutils
6
7 MY_P="${P/_beta/beta}"
8
9 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
10 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
11 SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/users/luks/picard-qt/${MY_P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE="cdaudio ffmpeg nls"
17
18 RDEPEND=">=dev-lang/python-2.4
19 || ( >=dev-lang/python-2.5 >=dev-python/ctypes-0.9 )
20 >=dev-python/PyQt4-4.2
21 >=x11-libs/qt-4.2
22 >=media-libs/mutagen-1.9
23 cdaudio? ( >=media-libs/libdiscid-0.1.1 )
24 ffmpeg? ( >=media-video/ffmpeg-0.4.9
25 >=media-libs/libofa-0.9.2 )"
26
27 DEPEND="${RDEPEND}"
28
29 DOCS="AUTHORS.txt INSTALL.txt NEWS.txt"
30 S=${WORKDIR}/${MY_P}
31
32 src_compile() {
33 ${python} setup.py config || die "setup.py config failed"
34 if ! use ffmpeg; then
35 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
36 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
37 build.cfg || die "sed failed"
38 fi
39 ${python} setup.py build $(use nls || echo "--disable-locales") \
40 || die "setup.py build failed"
41 }
42
43 src_install() {
44 distutils_src_install --disable-autoupdate --skip-build \
45 $(use nls || echo "--disable-locales")
46 }
47
48 pkg_postinst() {
49 distutils_pkg_postinst
50 echo
51 elog "You should set the environment variable BROWSER to something like"
52 elog "\"firefox '%s' &\" to let python know which browser to use."
53 echo
54 if ! use ffmpeg; then
55 ewarn "The 'ffmpeg' USE flag is disabled. Acoustic fingerprinting and"
56 ewarn "recognition will not be available."
57 echo
58 fi
59 if ! use cdaudio; then
60 ewarn "The 'cdaudio' USE flag is disabled. CD index lookup and"
61 ewarn "identification will not be available. You can get audio CD support"
62 ewarn "by installing media-libs/libdiscid."
63 fi
64 }

  ViewVC Help
Powered by ViewVC 1.1.20