blob: 731b3a6d589d8cdda964eafe9d6209d2349e7b80 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/transkode/transkode-0.7-r1.ebuild,v 1.1 2009/02/13 23:38:47 carlo Exp $
EAPI="1"
ARTS_REQUIRED="never"
inherit kde
DESCRIPTION="transKode is a KDE frontend for various audio transcoding tools."
HOMEPAGE="http://kde-apps.org/content/show.php?content=37669"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="amarok ffmpeg gstreamer mplayer wavpack xine"
RDEPEND="media-libs/taglib
amarok? ( media-sound/amarok:0 )
ffmpeg? ( media-video/ffmpeg )
gstreamer? (
>=media-libs/gstreamer-0.10
>=media-libs/gst-plugins-good-0.10
>=media-plugins/gst-plugins-flac-0.10
>=media-plugins/gst-plugins-lame-0.10
>=media-plugins/gst-plugins-vorbis-0.10
>=media-plugins/gst-plugins-ogg-0.10
>=media-plugins/gst-plugins-faad-0.10
)
mplayer? ( media-video/mplayer )
wavpack? ( media-sound/wavpack )
xine? ( media-sound/xineadump )"
DEPEND="${RDEPEND}"
need-kde 3.5
PATCHES=(
"${FILESDIR}/${P}-gcc-4.3.patch"
"${FILESDIR}/transkode-0.7-desktop-file.diff"
)
S="${WORKDIR}/${PN}"
pkg_setup() {
kde_pkg_setup
if ! use ffmpeg && ! use mplayer && ! use gstreamer && ! use xine; then
echo
ewarn "TransKode should be emerged with at least one of next"
ewarn "use flags: mplayer, ffmpeg, gstreamer or xine!"
ewarn "None of them is mandatory but they install programs that"
ewarn "can be used for decoding of audio formats for which no "
ewarn "other decoder is present."
echo
ebeep
epause 5
fi
}
src_unpack() {
kde_src_unpack
rm -f "${S}"/configure
}
src_compile() {
local myconf="$(use_enable amarok amarokscript)"
kde_src_compile
}
pkg_postinst() {
kde_pkg_postinst
if use amarok; then
elog "If you want to use TransKode to encode audio files on the fly"
elog "when transferring music to a portable media device, remember"
elog "to start the TransKode script through the Script Manager"
elog "on the Tools menu."
fi
}
|