blob: 3f983ded13b6237a09596d9e18e0160ddd4b59b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/jde/jde-2.3.6_pre20081208.ebuild,v 1.1 2009/03/28 18:41:17 ulm Exp $
EAPI=2
WANT_ANT_TASKS="ant-nodeps"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2 elisp eutils
DESCRIPTION="Java Development Environment for Emacs"
HOMEPAGE="http://jdee.sourceforge.net/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=virtual/jdk-1.3
app-emacs/elib
>=app-emacs/cedet-1.0_beta3
dev-java/bsh
dev-java/junit:0
dev-util/checkstyle"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
SITEFILE="70${PN}-gentoo.el"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.3.5.1-import.patch"
epatch "${FILESDIR}/${P}-fix-paths-gentoo.patch"
epatch "${FILESDIR}/${P}-classpath-gentoo.patch"
local bshjar csjar
bshjar=$(java-pkg_getjar --build-only bsh bsh.jar) || die
csjar=$(java-pkg_getjar --build-only checkstyle checkstyle.jar) || die
sed -e "s:@BSH_JAR@:${bshjar}:;s:@CHECKSTYLE_JAR@:${csjar}:" \
-e "s:@PF@:${PF}:" "${FILESDIR}/${SITEFILE/.el/-${PV}.el}" \
>"${SITEFILE}" || die
cd java/lib || die
java-pkg_jar-from --build-only checkstyle checkstyle.jar checkstyle-all.jar
java-pkg_jar-from junit
java-pkg_jar-from bsh
}
src_compile() {
eant dist \
-Dcedet.dir="${SITELISP}/cedet" \
-Delib.dir="${SITELISP}/elib"
}
src_install() {
java-pkg_dojar dist/java/lib/jde.jar
insinto "${JAVA_PKG_SHAREPATH}"
doins -r java/bsh-commands || die
use source && java-pkg_dosrc java/src/*
use doc && java-pkg_dojavadoc dist/doc/java/api
elisp-install ${PN} dist/lisp/*.{el,elc} || die
elisp-site-file-install "${SITEFILE}" || die
dobin lisp/jtags || die
dohtml -r dist/doc/html/* || die
dodoc lisp/readme.txt lisp/ChangeLog lisp/ReleaseNotes.txt
}
|