blob: f453bb2ef8a0441734b579bf603c1717a80e05bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/flacon/flacon-0.7.2.ebuild,v 1.2 2013/05/29 10:11:23 nimiux Exp $
EAPI="4"
PYTHON_DEPEND="2"
inherit python
DESCRIPTION="Extracts audio tracks from audio CD image to separate tracks"
HOMEPAGE="https://code.google.com/p/flacon/"
SRC_URI="https://flacon.googlecode.com/files/${P}.tgz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="flac mac mp3 mp4 ogg replaygain tta wavpack"
RDEPEND="
dev-python/PyQt4[X]
dev-python/chardet
media-sound/shntool[mac?]
flac? ( media-libs/flac )
mac? ( media-sound/mac )
mp3? ( media-sound/lame )
mp4? ( media-libs/faac )
ogg? ( media-sound/vorbis-tools )
tta? ( media-sound/ttaenc )
wavpack? ( media-sound/wavpack )
replaygain? (
mp3? ( media-sound/mp3gain )
ogg? ( media-sound/vorbisgain )
)
"
DEPEND="${RDEPEND}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
python_convert_shebangs -r 2 .
sed -e '/cd $(INST_DIR) && python -mcompileall ./d' -i Makefile || die
}
src_compile() { :; }
pkg_postinst() {
python_mod_optimize /usr/share/${PN}
}
pkg_postrm() {
python_mod_cleanup /usr/share/${PN}
}
|