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

Return to bug 302935