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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Oct 10 10:02:17 2009 UTC (8 years, 10 months ago) by ssuominen
Branch: MAIN
Changes since 1.2: +2 -2 lines
amd64 stable wrt #287697
(Portage version: 2.2_rc44/cvs/Linux x86_64, RepoMan options: --force)

1 tampakrap 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.3 # $Header: /var/cvsroot/gentoo-x86/kde-base/krossjava/krossjava-4.3.1.ebuild,v 1.2 2009/09/02 15:57:43 scarabeus Exp $
4 tampakrap 1.1
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 ssuominen 1.3 KEYWORDS="amd64 ~x86"
13 tampakrap 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     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     export mycmakeargs="-DENABLE_KROSSJAVA=ON"
34     kde4-meta_src_configure
35     java-ant-2_src_configure
36     }
37    
38     src_compile() {
39     kde4-meta_src_compile
40     cd "${S}/java/${PN}/${PN}/java/" || die
41     eant makejar
42     }
43    
44     src_install() {
45     kde4-meta_src_install
46     java-pkg_dojar "${D}/${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
47    
48     cd "${D}${KDEDIR}/$(get_libdir)/kde4/kross/" || die
49     local path_prefix="../../../../"
50    
51     if [[ "${KDEDIR}" != "/usr" ]]; then
52     path_prefix="${path_prefix}../"
53     fi
54    
55     dosym "${path_prefix}usr/share/${PN}-${SLOT}/lib/kross.jar" \
56     "${KDEDIR}/$(get_libdir)/kde4/kross/kross.jar"
57     java-pkg_regso "${D}/${KDEDIR}/$(get_libdir)/kde4/libkrossjava.so"
58     }

  ViewVC Help
Powered by ViewVC 1.1.20