summaryrefslogtreecommitdiff
blob: f3f230462d0679c9f9133352e4af1fdbbe2ebeac (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/kplayer/kplayer-0.7.ebuild,v 1.8 2011/04/03 16:32:01 dilfridge Exp $

EAPI=3

KDE_LINGUAS="be br ca cs cy da de el en_GB es et eu fi fr ga gl he hu it ja nb
	nds nl oc pa pl pt pt_BR ru sr sv tr zh_CN"
inherit kde4-base

DESCRIPTION="KPlayer is a KDE media player based on mplayer."
HOMEPAGE="http://kplayer.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="4"
KEYWORDS="amd64 x86"
IUSE="debug"

RDEPEND="${DEPEND}
	>=media-video/mplayer-1.0_rc1
"

PATCHES=( "${FILESDIR}/${P}"-enablefinal.patch )

CMAKE_IN_SOURCE_BUILD="1"

src_prepare() {
	# doc not working
	sed -i \
		-e "s:set(CMAKE_VERBOSE_MAKEFILE ON):#nada:g" \
		-e "s:add_subdirectory(doc):#nada:g" \
		"${S}"/CMakeLists.txt

	# linking against X11 libraries
	sed -i "s:target_link_libraries(kplayerpart :target_link_libraries(kplayerpart \${X11_LIBRARIES} :" \
		"${S}"/kplayer/CMakeLists.txt

	kde4-base_src_prepare
}