Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 302935 | Differences between
and this patch

Collapse All | Expand All

(-)kdiff3-0.9.95.ebuild (-5 / +35 lines)
Lines 4-29 Link Here
4
4
5
EAPI="2"
5
EAPI="2"
6
6
7
KDE_REQUIRED="optional"
7
KDE_LINGUAS="ar bg br cs cy da de el en_GB es et fr ga gl hi hu it ja ka lt nb
8
KDE_LINGUAS="ar bg br cs cy da de el en_GB es et fr ga gl hi hu it ja ka lt nb
8
nds nl pl pt pt_BR ro ru rw sv ta tg tr uk zh_CN"
9
nds nl pl pt pt_BR ro ru rw sv ta tg tr uk zh_CN"
9
inherit kde4-base
10
inherit kde4-base
11
inherit qt4-r2
10
12
11
DESCRIPTION="KDE-based frontend to diff3"
13
DESCRIPTION="Qt- or KDE-based frontend to diff3"
12
HOMEPAGE="http://kdiff3.sourceforge.net/"
14
HOMEPAGE="http://kdiff3.sourceforge.net/"
13
SRC_URI="mirror://sourceforge/kdiff3/${P}.tar.gz"
15
SRC_URI="mirror://sourceforge/kdiff3/${P}.tar.gz"
14
16
15
SLOT="1"
17
SLOT="1"
16
LICENSE="GPL-2"
18
LICENSE="GPL-2"
17
KEYWORDS="amd64 ~ppc ~ppc64 x86"
19
KEYWORDS="amd64 ~ppc ~ppc64 x86"
18
IUSE="debug handbook konqueror"
20
IUSE="debug handbook kde konqueror"
19
21
20
PATCHES=( "${FILESDIR}/${P}-desktop-entry.patch" )
22
PATCHES=( "${FILESDIR}/${P}-desktop-entry.patch" )
21
23
22
RDEPEND="konqueror? ( >=kde-base/libkonq-${KDE_MINIMAL} )
24
DEPEND=">=x11-libs/qt-core-4.4.0
25
	>=x11-libs/qt-gui-4.4.0
26
	kde? (
27
		>= kde-base/kde-libs-${KDE_MINIMAL}
28
		konqueror? ( >=kde-base/libkonq-${KDE_MINIMAL} )
29
	)"
30
31
RDEPEND="${DEPEND}
23
	sys-apps/diffutils
32
	sys-apps/diffutils
24
	!kde-misc/kdiff3:0"
33
	!kde-misc/kdiff3:0"
25
34
35
pkg_setup() {
36
	if use kde; then
37
		kde4-base_pkg_setup
38
	fi
39
}
40
26
src_configure() {
41
src_configure() {
27
	mycmakeargs="${mycmakeargs} $(cmake-utils_use_with konqueror LibKonq)"
42
	if use kde; then
28
	kde4-base_src_configure
43
		mycmakeargs="${mycmakeargs} $(cmake-utils_use_with konqueror LibKonq)"
44
		kde4-base_src_configure
45
	else
46
		# adapt to Gentoo paths
47
		sed -e s,documentation.path.*$,documentation.path\ =\ /usr/share/doc/${PF}, \
48
			-e s,target.path.*$,target.path\ =\ /usr/bin,                           \
49
			"${S}"/src-QT4/kdiff3.pro > "${S}"/src-QT4/kdiff3_fixed.pro
50
		eqmake4 "${S}"/src-QT4/kdiff3_fixed.pro
51
	fi
52
}
53
54
pkg_postinst() {
55
	# circumvent warning about missing KDE stuff
56
	if use kde; then
57
		kde4-base_pkg_postinst
58
	fi
29
}
59
}

Return to bug 302935