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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed May 6 09:44:45 2015 UTC (5 years, 6 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/picard/picard-1.1.ebuild,v 1.3 2013/01/13 11:38:09 ago Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="2:2.5"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="2.4 3.*"
10
11 inherit eutils distutils
12
13 MY_P="${P/_/}"
14 DESCRIPTION="An improved rewrite/port of the Picard Tagger using Qt"
15 HOMEPAGE="http://musicbrainz.org/doc/PicardQt"
16 SRC_URI="http://ftp.musicbrainz.org/pub/musicbrainz/picard/${MY_P}.tar.gz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 KEYWORDS="amd64 ~ppc x86"
21 IUSE="+acoustid +cdda +ffmpeg nls"
22
23 DEPEND="dev-python/PyQt4[X]
24 media-libs/mutagen
25 acoustid? ( media-libs/chromaprint[tools] )
26 cdda? ( >=media-libs/libdiscid-0.1.1 )
27 ffmpeg? (
28 virtual/ffmpeg
29 >=media-libs/libofa-0.9.2
30 )"
31 RDEPEND="${DEPEND}"
32
33 # doesn't work with ebuilds
34 RESTRICT="test"
35
36 S="${WORKDIR}/${MY_P}"
37
38 DOCS="AUTHORS.txt NEWS.txt"
39
40 pkg_setup() {
41 if ! use acoustid && ! use ffmpeg; then
42 ewarn "The 'acoustid' and 'ffmpeg' USE flag are disabled."
43 ewarn "Acoustic fingerprinting and recognition will not be available."
44 fi
45 if ! use cdda; then
46 ewarn "The 'cdda' USE flag is disabled. CD index lookup and"
47 ewarn "identification will not be available. You can get audio CD support"
48 ewarn "by installing media-libs/libdiscid."
49 fi
50 python_pkg_setup
51 }
52
53 src_configure() {
54 $(PYTHON -f) setup.py config || die "setup.py config failed"
55 if ! use ffmpeg; then
56 sed -i -e "s:\(^with-avcodec\ =\ \).*:\1False:" \
57 -e "s:\(^with-libofa\ =\ \).*:\1False:" \
58 build.cfg || die "sed failed"
59 fi
60 }
61
62 src_compile() {
63 distutils_src_compile $(use nls || echo "--disable-locales")
64 }
65
66 src_install() {
67 distutils_src_install --disable-autoupdate --skip-build \
68 $(use nls || echo "--disable-locales")
69
70 doicon picard.ico
71 domenu picard.desktop
72 }
73
74 pkg_postinst() {
75 distutils_pkg_postinst
76 echo
77 ewarn "If you are upgrading Picard and it does not start"
78 ewarn "try removing Picard's settings:"
79 ewarn " rm ~/.config/MusicBrainz/Picard.conf"
80 elog
81 elog "You should set the environment variable BROWSER to something like"
82 elog "\"firefox '%s' &\" to let python know which browser to use."
83 }

  ViewVC Help
Powered by ViewVC 1.1.20