summaryrefslogtreecommitdiff
path: root/kde-misc/kdiff3/kdiff3-0.9.95-r1.ebuild
blob: 63d6abeaa9271015cf4951992a6d81dea8d9c1e1 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/kdiff3/kdiff3-0.9.95.ebuild,v 1.3 2009/06/05 17:50:28 scarabeus Exp $

EAPI="2"

KDE_LINGUAS="ar bg br cs cy da de el en_GB es et fr ga gl hi hu it ja ka lt nb
nds nl pl pt pt_BR ro ru rw sv ta tg tr uk zh_CN"
inherit kde4-base

DESCRIPTION="KDE-based frontend to diff3"
HOMEPAGE="http://kdiff3.sourceforge.net/"
SRC_URI="mirror://sourceforge/kdiff3/${P}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
SLOT="1"
IUSE="debug +handbook konqueror"

DEPEND="
	konqueror? ( >=kde-base/libkonq-${KDE_MINIMAL} )
"
RDEPEND="${DEPEND}
	sys-apps/diffutils
	konqueror? ( >=kde-base/konqueror-${KDE_MINIMAL} )
"

src_prepare() {
	kde4-base_src_prepare

	# Append missing categories
	echo "Categories=Qt;KDE;Development;" >> src-QT4/kdiff3.desktop

	# fix handbook
	if ! use handbook; then
		sed -e "/add_subdirectory(doc)/ s/^#DONOTWANT /" \
			-i CMakeLists.txt || die "removing docs failed"
	fi
}

src_configure() {
	mycmakeargs="${mycmakeargs}
		$(cmake-utils_use_with konqueror LibKonq)"

	kde4-base_src_configure
}