/[gentoo-x86]/kde-base/krossjava/krossjava-4.6.0.ebuild
Gentoo

Contents of /kde-base/krossjava/krossjava-4.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Apr 6 14:19:27 2011 UTC (3 years, 7 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
KDE SC 4.6.2 version bump. Drop 4.6.{0,1} and 4.5.5. This is our stable candidate so test and test more. Force due to some unmet deps. Filled as bug #362305.

(Portage version: 2.2.0_alpha29/cvs/Linux x86_64, RepoMan options: --force)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/kde-base/krossjava/krossjava-4.6.0.ebuild,v 1.2 2011/02/03 13:52:08 xarthisius Exp $
4
5 EAPI="3"
6
7 KMNAME="kdebindings"
8 KMMODULE="java/krossjava"
9 inherit java-pkg-2 java-ant-2 kde4-meta eutils
10
11 DESCRIPTION="Java plugin for the kdelibs/kross scripting framework."
12 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
13 IUSE="debug"
14
15 DEPEND="
16 >=virtual/jdk-1.5
17 "
18 RDEPEND="
19 >=virtual/jre-1.5
20 "
21
22 RESTRICT="test"
23
24 PATCHES=( "${FILESDIR}/${PN}-4.2.3_includes.patch" )
25
26 src_prepare() {
27 find "${S}" -iname '*.jar' | xargs rm -v
28 kde4-meta_src_prepare
29 java-pkg-2_src_prepare
30 }
31
32 src_configure() {
33 mycmakeargs=(-DENABLE_KROSSJAVA=ON)
34 export JAVA_HOME=$(java-config -g JAVA_HOME)
35 kde4-meta_src_configure
36 java-ant-2_src_configure
37 }
38
39 src_compile() {
40 kde4-meta_src_compile
41 cd "${S}/java/${PN}/${PN}/java/" || die
42 eant makejar
43 }
44
45 src_install() {
46 kde4-meta_src_install
47 java-pkg_dojar "${ED}/${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
48
49 cd "${ED}${KDEDIR}/$(get_libdir)/kde4/kross/" || die
50 local path_prefix="../../../../"
51
52 if [[ ${KDEDIR} != /usr ]]; then
53 path_prefix="${path_prefix}../"
54 fi
55
56 dosym "${path_prefix}usr/share/${PN}-${SLOT}/lib/kross.jar" \
57 "${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
58 java-pkg_regso "${ED}/${KDEDIR}/$(get_libdir)/kde4/libkrossjava.so"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20