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

Collapse All | Expand All

(-)kdejava-3.5.2.ebuild (-6 / +12 lines)
Lines 8-17 Link Here
8
KM_MAKEFILESREV=1
8
KM_MAKEFILESREV=1
9
MAXKDEVER=3.5.4
9
MAXKDEVER=3.5.4
10
KM_DEPRANGE="$PV $MAXKDEVER"
10
KM_DEPRANGE="$PV $MAXKDEVER"
11
inherit kde-meta
11
inherit java-pkg kde-meta
12
12
13
DESCRIPTION="KDE java bindings"
13
DESCRIPTION="KDE java bindings"
14
KEYWORDS="amd64 ppc ppc64 x86"
14
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15
IUSE=""
15
IUSE=""
16
COMMONDEPEND="$(deprange-dual $PV 3.5.4 kde-base/kwin)
16
COMMONDEPEND="$(deprange-dual $PV 3.5.4 kde-base/kwin)
17
	$(deprange-dual $PV 3.5.4 kde-base/kcontrol)
17
	$(deprange-dual $PV 3.5.4 kde-base/kcontrol)
Lines 31-46 Link Here
31
src_unpack() {
31
src_unpack() {
32
	kde-meta_src_unpack
32
	kde-meta_src_unpack
33
33
34
	local cp="$(java-pkg_getjar qtjava-${SLOT} qtjava.jar)"
35
34
	# $PREFIX-dependant, so don't go into the makefile tarballs
36
	# $PREFIX-dependant, so don't go into the makefile tarballs
35
	cd $S/kdejava/koala/org/kde/koala
37
	cd $S/kdejava/koala/org/kde/koala
36
	for x in Makefile.am Makefile.in; do
38
	for x in Makefile.am Makefile.in; do
37
		mv $x $x.orig
39
		sed -i -e "s#_CLASSPATH_#${cp}#" $x || die "sed ${x} failed"
38
		sed -e "s:_CLASSPATH_:$(java-config -p qtjava):" $x.orig > $x
39
		rm $x.orig
40
	done
40
	done
41
}
41
}
42
42
43
src_compile() {
43
src_compile() {
44
	myconf="$myconf --with-java=`java-config --jdk-home`"
44
	myconf="${myconf} --with-java=$(java-config --jdk-home)"
45
	kde-meta_src_compile
45
	kde-meta_src_compile
46
}
46
}
47
48
src_install() {
49
	kde-meta_src_install
50
	rm -rf ${D}/usr/kde/${SLOT}/lib/java
51
	java-pkg_dojar ${S}/kdejava/koala/koala.jar
52
}

Return to bug 138924