summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2011-12-13 17:29:40 +0000
committerUlrich Müller <ulm@gentoo.org>2011-12-13 17:29:40 +0000
commiteabc6187c5426c18bde78bf66df78b08723b56ca (patch)
tree83f04cf7aadd648786c743d220ab21e231834393 /app-emacs/jde/jde-2.4.1_pre20110622.ebuild
parentVersion bump. (diff)
downloadgentoo-2-eabc6187c5426c18bde78bf66df78b08723b56ca.tar.gz
gentoo-2-eabc6187c5426c18bde78bf66df78b08723b56ca.tar.bz2
gentoo-2-eabc6187c5426c18bde78bf66df78b08723b56ca.zip
Version bump, bug 394365. This version depends on CEDET included with >=emacs-23.2. Thanks to Alex Bennee <alex@bennee.com>.
(Portage version: 2.1.10.40/cvs/Linux x86_64)
Diffstat (limited to 'app-emacs/jde/jde-2.4.1_pre20110622.ebuild')
-rw-r--r--app-emacs/jde/jde-2.4.1_pre20110622.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/app-emacs/jde/jde-2.4.1_pre20110622.ebuild b/app-emacs/jde/jde-2.4.1_pre20110622.ebuild
new file mode 100644
index 000000000000..f3c23ccb308f
--- /dev/null
+++ b/app-emacs/jde/jde-2.4.1_pre20110622.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/jde/jde-2.4.1_pre20110622.ebuild,v 1.1 2011/12/13 17:29:40 ulm Exp $
+
+EAPI=4
+NEED_EMACS=23
+WANT_ANT_TASKS="ant-nodeps ant-contrib"
+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/"
+# taken from: http://jdee.svn.sourceforge.net/viewvc/jdee/trunk/jdee/?view=tar&pathrev=254
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.3
+ app-emacs/elib
+ virtual/emacs-cedet
+ dev-java/bsh
+ dev-java/junit:0
+ dev-util/checkstyle"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/jdee"
+SITEFILE="70${PN}-gentoo.el"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-2.4.0.1-fix-paths-gentoo.patch"
+ epatch "${FILESDIR}/${PN}-2.4.0.1-classpath-gentoo.patch"
+ epatch "${FILESDIR}/${PN}-2.4.1-doc-directory.patch"
+ epatch "${FILESDIR}/${PN}-2.4.1-semantic-emacs-24.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}" >"${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 bindist -Delib.dir="${EPREFIX}${SITELISP}/elib"
+ use doc && eant source-doc
+}
+
+src_install() {
+ local dist="dist/jdee-${PV%_*}"
+
+ java-pkg_dojar ${dist}/java/lib/jde.jar
+ insinto "${JAVA_PKG_SHAREPATH}"
+ doins -r java/bsh-commands
+
+ 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 ${dist}/lisp/jtags
+
+ dohtml -r doc/html/*
+}