summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-02-01 00:45:15 +0000
committerVlastimil Babka <caster@gentoo.org>2007-02-01 00:45:15 +0000
commit1dabd41f73fd13b33e116722c6ba3415bbb2a662 (patch)
treede0e17c8433ed13d4b6d34d72fe967872dc99511 /kde-base/kdejava/kdejava-3.5.6-r1.ebuild
parentMigrated to generation-2 java eclasses, bug #114327. This should also fix bug... (diff)
downloadhistorical-1dabd41f73fd13b33e116722c6ba3415bbb2a662.tar.gz
historical-1dabd41f73fd13b33e116722c6ba3415bbb2a662.tar.bz2
historical-1dabd41f73fd13b33e116722c6ba3415bbb2a662.zip
Migrated to generation-2 java eclasses, bug #114327. This should also fix bugs #138924 and #155341.
Package-Manager: portage-2.1.2-r5
Diffstat (limited to 'kde-base/kdejava/kdejava-3.5.6-r1.ebuild')
-rw-r--r--kde-base/kdejava/kdejava-3.5.6-r1.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/kde-base/kdejava/kdejava-3.5.6-r1.ebuild b/kde-base/kdejava/kdejava-3.5.6-r1.ebuild
new file mode 100644
index 000000000000..8c3425dc220d
--- /dev/null
+++ b/kde-base/kdejava/kdejava-3.5.6-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/kdejava/kdejava-3.5.6-r1.ebuild,v 1.1 2007/02/01 00:45:15 caster Exp $
+
+KMNAME=kdebindings
+KMEXTRACTONLY=qtjava
+KMCOPYLIB="libqtjavasupport qtjava/javalib/qtjava"
+KM_MAKEFILESREV=1
+MAXKDEVER=$PV
+KM_DEPRANGE="$PV $MAXKDEVER"
+inherit java-pkg-2 kde-meta
+
+DESCRIPTION="KDE java bindings"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+COMMONDEPEND="$(deprange-dual $PV $MAXKDEVER kde-base/kwin)
+ $(deprange-dual $PV $MAXKDEVER kde-base/kcontrol)
+ $(deprange $PV $MAXKDEVER kde-base/qtjava)"
+DEPEND=">=virtual/jdk-1.4 $COMMONDEPEND"
+RDEPEND=">=virtual/jre-1.4 $COMMONDEPEND"
+OLDDEPEND="~kde-base/kwin-$PV ~kde-base/kcontrol-$PV ~kde-base/qtjava-$PV virtual/jdk"
+
+PATCHES="${FILESDIR}/no-gtk-glib-check.diff
+ ${FILESDIR}/${PN}-${SLOT}-javacflags.patch"
+
+# Probably missing other kdebase, kdepim etc deps
+# Needs to be compiled with just kdelibs installed to make sure
+
+# both eclasses define pkg_setup
+pkg_setup() {
+ kde_pkg_setup
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ kde-meta_src_unpack
+
+ local cp="$(java-pkg_getjars qtjava-${SLOT})"
+ local mf="${S}/kdejava/koala/org/kde/koala/Makefile.am"
+ sed -i -e "s#_CLASSPATH_#${cp}#" "${mf}" \
+ || die "sed CLASSPATH failed"
+ sed -i -e "s#_JAVACFLAGS_#${JAVACFLAGS}#" "${mf}" \
+ || die "sed JAVACFLAGS failed"
+}
+
+src_compile() {
+ myconf="${myconf} --with-java=${JDK_HOME}"
+ kde-meta_src_compile
+}
+
+src_install() {
+ kde-meta_src_install
+
+ rm -rf ${D}/usr/kde/${SLOT}/lib/java
+
+ java-pkg_dojar ${S}/${PN}/koala/koala.jar
+ java-pkg_regso "${D}/usr/kde/${SLOT}"/lib/*.so
+}