summaryrefslogtreecommitdiff
blob: 1582bbe33336ab300c3f6acc4125c246d922433f (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils kde

KEYWORDS="~x86"

MY_P=${P/kmp/KmP}

DESCRIPTION="A graphical MPEG2 encoder frontend, for producing 100% DVD compatible MPEG2 streams."
HOMEPAGE="http://kmpg2.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE=""

DEPEND=""
RDEPEND="|| ( kde-base/kommander kde-base/kdewebdev )
	media-video/ffmpeg
	media-video/transcode
	media-sound/sox
	media-video/y4mscaler
	>=media-video/mjpegtools-1.8.0"

need-kde 3.5

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}
	cp "${FILESDIR}/kmpg2.desktop" "${FILESDIR}/kmpg2profiler.desktop" "${S}"
	cd "${S}"

	sed -i \
		-e "s#/\(Profiles\)#/../share/apps/${PN}/\1#" \
		KmPg2.kmdr

	sed -i \
		-e "s|@VERSION@|${PV}|" \
		-e "s|@KDEDIR@|${KDEDIR}|" \
		kmpg2.desktop kmpg2profiler.desktop || die "sed failed"

}

src_compile() {
	einfo "This is a Kommander script, nothing to compile"
}

src_install() {
	insinto "${KDEDIR}/share/apps/${PN}"
	doins -r Profiles

	into ${KDEDIR}
	dobin KmPg2*.kmdr YUV*.sh

	domenu kmpg2.desktop kmpg2profiler.desktop

	dodoc Changelog README
}