diff options
Diffstat (limited to 'kde-base/krossjava/krossjava-4.4.5.ebuild')
-rw-r--r-- | kde-base/krossjava/krossjava-4.4.5.ebuild | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/kde-base/krossjava/krossjava-4.4.5.ebuild b/kde-base/krossjava/krossjava-4.4.5.ebuild index 55ce5e963e49..adeb28f6256a 100644 --- a/kde-base/krossjava/krossjava-4.4.5.ebuild +++ b/kde-base/krossjava/krossjava-4.4.5.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/krossjava/krossjava-4.4.5.ebuild,v 1.4 2010/08/09 09:16:49 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/krossjava/krossjava-4.4.5.ebuild,v 1.5 2011/04/11 04:41:26 abcd Exp $ EAPI="3" @@ -23,6 +23,11 @@ RESTRICT="test" PATCHES=( "${FILESDIR}/${PN}-4.2.3_includes.patch" ) +pkg_setup() { + kde4-meta_pkg_setup + java-pkg-2_pkg_setup +} + src_prepare() { find "${S}" -iname '*.jar' | xargs rm -v kde4-meta_src_prepare @@ -31,7 +36,6 @@ src_prepare() { src_configure() { mycmakeargs=(-DENABLE_KROSSJAVA=ON) - export JAVA_HOME=$(java-config -g JAVA_HOME) kde4-meta_src_configure java-ant-2_src_configure } @@ -57,3 +61,8 @@ src_install() { "${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar" java-pkg_regso "${ED}/${KDEDIR}/$(get_libdir)/kde4/libkrossjava.so" } + +pkg_preinst() { + kde4-meta_pkg_preinst + java-pkg-2_pkg_preinst +} |