diff options
author | Ulrich Müller <ulm@gentoo.org> | 2019-11-26 11:10:49 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2019-11-26 11:38:59 +0100 |
commit | b21e4c74285c8dd5fa00243c3ad136085bf9a675 (patch) | |
tree | 87780a24e3e1e7a2e71ec07f8793658626f776ee /app-emacs/jde/jde-2.4.1-r1.ebuild | |
parent | app-crypt/yubikey-manager: x86 stable (bug #701164) (diff) | |
download | gentoo-b21e4c74285c8dd5fa00243c3ad136085bf9a675.tar.gz gentoo-b21e4c74285c8dd5fa00243c3ad136085bf9a675.tar.bz2 gentoo-b21e4c74285c8dd5fa00243c3ad136085bf9a675.zip |
app-emacs/jde: Drop dependency on app-emacs/elib.
avltree.el from elib was only required for compatibility with old
Emacs versions. All versions >=emacs-23 include avl-tree.el, which
will be properly detected in jde-parse.el.
Other minor fixes to make repoman happy.
Bug: https://bugs.gentoo.org/701160
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'app-emacs/jde/jde-2.4.1-r1.ebuild')
-rw-r--r-- | app-emacs/jde/jde-2.4.1-r1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/app-emacs/jde/jde-2.4.1-r1.ebuild b/app-emacs/jde/jde-2.4.1-r1.ebuild new file mode 100644 index 000000000000..bddc407a7439 --- /dev/null +++ b/app-emacs/jde/jde-2.4.1-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 elisp + +DESCRIPTION="Java Development Environment for Emacs" +HOMEPAGE="http://jdee.sourceforge.net/" +# snapshot of svn://svn.code.sf.net/p/jdee/code/branches/2.4.1 (rev 292) +# (upstream's distfile misses build.xml) +SRC_URI="mirror://gentoo/jdee-${PV}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +RDEPEND=">=virtual/jdk-1.3:= + dev-java/bsh:0 + dev-java/junit:0 + dev-util/checkstyle:0" +DEPEND="${RDEPEND} + dev-java/ant-contrib:0" + +S="${WORKDIR}/jdee-${PV}" +SITEFILE="70${PN}-gentoo.el" + +pkg_setup() { + java-pkg-2_pkg_setup + elisp_pkg_setup +} + +src_prepare() { + eapply "${FILESDIR}/${PN}-2.4.0.1-fix-paths-gentoo.patch" + eapply "${FILESDIR}/${PN}-2.4.0.1-classpath-gentoo.patch" + eapply "${FILESDIR}/${PN}-2.4.1-doc-directory.patch" + eapply_user + + 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() { + ANT_TASKS="ant-contrib" \ + eant bindist $(usex doc 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} + elisp-site-file-install "${SITEFILE}" + + dobin ${dist}/lisp/jtags + + dodoc -r doc/html + find "${ED}"/usr/share/doc -iname "*makefile" -delete || die +} |