/[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.5 - (show annotations) (download)
Wed Jul 6 20:05:42 2011 UTC (3 years ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Drop KDE 4.6.2

(Portage version: 2.1.10.3/cvs/Linux x86_64)

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.2.ebuild,v 1.4 2011/05/09 23:08:17 hwoarang 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 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 pkg_setup() {
27 kde4-meta_pkg_setup
28 java-pkg-2_pkg_setup
29 }
30
31 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
65 pkg_preinst() {
66 kde4-meta_pkg_preinst
67 java-pkg-2_pkg_preinst
68 }

  ViewVC Help
Powered by ViewVC 1.1.20