diff options
Diffstat (limited to 'kde-base/qtjava/qtjava-3.5.6-r1.ebuild')
-rw-r--r-- | kde-base/qtjava/qtjava-3.5.6-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/kde-base/qtjava/qtjava-3.5.6-r1.ebuild b/kde-base/qtjava/qtjava-3.5.6-r1.ebuild new file mode 100644 index 000000000000..6aa05a8c259a --- /dev/null +++ b/kde-base/qtjava/qtjava-3.5.6-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/qtjava/qtjava-3.5.6-r1.ebuild,v 1.1 2007/02/01 00:44:11 caster Exp $ + +KMNAME=kdebindings +KM_MAKEFILESREV=1 +MAXKDEVER=$PV +KM_DEPRANGE="$PV $MAXKDEVER" +inherit java-pkg-2 kde-meta + +DESCRIPTION="Java bindings for QT" +HOMEPAGE="http://developer.kde.org/language-bindings/java/qtjava.html" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" +DEPEND=">=virtual/jdk-1.4" +RDEPEND=">=virtual/jre-1.4" +PATCHES="${FILESDIR}/no-gtk-glib-check.diff + ${FILESDIR}/${PN}-${SLOT}-javacflags.patch" + +# both eclasses define pkg_setup +pkg_setup() { + kde_pkg_setup + java-pkg-2_pkg_setup +} + +src_unpack() { + kde-meta_src_unpack + + sed -i -e "s#_JAVACFLAGS_#${JAVACFLAGS}#" \ + ${S}/qtjava/javalib/org/kde/qt/Makefile.am || die "sed failed" +} + +src_compile() { + myconf="${myconf} --with-java=${JDK_HOME}" + kde-meta_src_compile +} + +# Doesn't really need kde, only qt? But then, it installs by default into $KDEDIR/... +src_install() { + kde-meta_src_install + + # Is there a cleaner way? + rm -rf ${D}/usr/kde/${SLOT}/lib/java + + java-pkg_dojar ${S}/${PN}/javalib/${PN}.jar + java-pkg_regso "${D}/usr/kde/${SLOT}"/lib/*.so +} |