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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 14 11:25:49 2009 UTC (5 years, 6 months ago) by alexxy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
[kde-base/krossjava] Drop KDE 4.2.3
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.2.3.ebuild,v 1.1 2009/05/23 07:07:47 ali_bush Exp $
4
5 EAPI="2"
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"
13 IUSE="debug"
14
15 RDEPEND=">=virtual/jre-1.5"
16 DEPEND=">=virtual/jdk-1.5"
17
18 RESTRICT="test"
19
20 PATCHES=( "${FILESDIR}/${P}_includes.patch" )
21
22 src_prepare() {
23 find "${S}" -iname '*.jar' | xargs rm -v
24 kde4-meta_src_prepare
25 java-pkg-2_src_prepare
26 }
27
28 src_configure() {
29 export mycmakeargs="-DENABLE_KROSSJAVA=on"
30 kde4-meta_src_configure
31 java-ant-2_src_configure
32 }
33
34 src_compile() {
35 kde4-meta_src_compile
36 cd "${S}/java/${PN}/${PN}/java/" || die
37 eant makejar
38 }
39
40 src_install() {
41 kde4-meta_src_install
42 java-pkg_dojar "${D}/${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
43
44 cd "${D}${KDEDIR}/$(get_libdir)/kde4/kross/" || die
45 local path_prefix="../../../../"
46
47 if [[ "${KDEDIR}" != "/usr" ]]; then
48 path_prefix="${path_prefix}../"
49 fi
50
51 dosym "${path_prefix}usr/share/${PN}-${SLOT}/lib/kross.jar" \
52 "${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
53 java-pkg_regso "${D}/${KDEDIR}/$(get_libdir)/kde4/libkrossjava.so"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20