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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon May 9 08:48:48 2011 UTC (7 years, 7 months ago) by tomka
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable per bug 354033

(Portage version: 2.1.9.46/cvs/Linux i686, RepoMan options: --force)

1 scarabeus 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tomka 1.3 # $Header: /var/cvsroot/gentoo-x86/kde-base/krossjava/krossjava-4.6.2.ebuild,v 1.2 2011/04/11 04:41:26 abcd Exp $
4 scarabeus 1.1
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 tomka 1.3 KEYWORDS="~amd64 ~ppc x86"
13 scarabeus 1.1 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 abcd 1.2 pkg_setup() {
27     kde4-meta_pkg_setup
28     java-pkg-2_pkg_setup
29     }
30    
31 scarabeus 1.1 src_prepare() {
32     find "${S}" -iname '*.jar' | xargs rm -v
33     kde4-meta_src_prepare
34     java-pkg-2_src_prepare
35     }
36    
37     src_configure() {
38     mycmakeargs=(-DENABLE_KROSSJAVA=ON)
39     kde4-meta_src_configure
40     java-ant-2_src_configure
41     }
42    
43     src_compile() {
44     kde4-meta_src_compile
45     cd "${S}/java/${PN}/${PN}/java/" || die
46     eant makejar
47     }
48    
49     src_install() {
50     kde4-meta_src_install
51     java-pkg_dojar "${ED}/${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
52    
53     cd "${ED}${KDEDIR}/$(get_libdir)/kde4/kross/" || die
54     local path_prefix="../../../../"
55    
56     if [[ ${KDEDIR} != /usr ]]; then
57     path_prefix="${path_prefix}../"
58     fi
59    
60     dosym "${path_prefix}usr/share/${PN}-${SLOT}/lib/kross.jar" \
61     "${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
62     java-pkg_regso "${ED}/${KDEDIR}/$(get_libdir)/kde4/libkrossjava.so"
63     }
64 abcd 1.2
65     pkg_preinst() {
66     kde4-meta_pkg_preinst
67     java-pkg-2_pkg_preinst
68     }

  ViewVC Help
Powered by ViewVC 1.1.20