summaryrefslogtreecommitdiff
path: root/app-emacs/jde
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2021-11-13 13:10:00 +0000
committerV3n3RiX <venerix@koprulu.sector>2021-11-13 13:10:00 +0000
commite9d044d4b9b71200a96adfa280848858c0f468c9 (patch)
tree1bd8ef816043a8cd340f1d774e79553a1a7d31d8 /app-emacs/jde
parentfc2f1018fc323ef2c6572734a9b130427cba76a6 (diff)
gentoo resync : 13.11.2021
Diffstat (limited to 'app-emacs/jde')
-rw-r--r--app-emacs/jde/Manifest1
-rw-r--r--app-emacs/jde/jde-2.4.1-r2.ebuild77
2 files changed, 78 insertions, 0 deletions
diff --git a/app-emacs/jde/Manifest b/app-emacs/jde/Manifest
index 208f73a89717..4b97724e69a0 100644
--- a/app-emacs/jde/Manifest
+++ b/app-emacs/jde/Manifest
@@ -4,4 +4,5 @@ AUX jde-2.4.0.1-fix-paths-gentoo.patch 7175 BLAKE2B ee0e51e50afb1bcd86432f6546a0
AUX jde-2.4.1-doc-directory.patch 1806 BLAKE2B 6e13265c71beb4247aba97ddb05f7b500822f7a8f619c40dca229533497c101b93ee6d891a3c85e51f9d56f39b2fec229c44f922f1bc2d79b3b5942bed6913a5 SHA512 3818474077c2f387bdef6fb297a40b94529622e1da3fb31c3d7b3734111fb4e607062f9cdca9f1f5b020dec8d8e9e6601d5bf7831a20415f393f2f029e97c101
DIST jdee-2.4.1.tar.xz 2742232 BLAKE2B f022cb55583acc7846bc04b59e843050947819c6bb2494bbe08ac3895c15d914df28d3c3a50cfd945efa7ed507cda9906a42866c85463907544095377cc1bf07 SHA512 5ce5f0f84b2502e9af808f33210511e8b7682902b1f342d678fe42dd8f9f3690b90ef7bb22583550eb769818782c50f545d6baf47b52bc7f4502fab411ab5359
EBUILD jde-2.4.1-r1.ebuild 1920 BLAKE2B fbf084dda9082c3374bdec24ceec2cc27ebc4730f6c3bf2043518b8f3060c01e4d90b53069375c096f148a5d0134d374641232640b94e01b1203d1c38b4b8536 SHA512 9f4725ef6aea9edd7349f0bffe618d16813ea19102d4b1e15aac5ec1d3a9ffb3be0f09e2146e02a9a02ded64e9014b311623dbef4d0c989752bdbcb08783903c
+EBUILD jde-2.4.1-r2.ebuild 1910 BLAKE2B fa20414a475685f05e6c163e0444b3455653ab6fc2e8bdcabca7bfab48bec128bfe80095b5291e7547aaeadadfe889765c464dd86a177101a02e806f44bc51ab SHA512 a3cfc2ca92a334d3d9c31072ebf78588601c96484ef5dd7434a6b16e8b2bcaef62ad41fe0889bedd21312a372313669873f1b403987eb31eaf3ee80e9e959751
MISC metadata.xml 991 BLAKE2B 657c5e22e11e634944730d2e8de9db43efa34950c8986fd8c856a0953a98659d648d57046a9a4b4890c3d6b7097a1d4cae3f4359c21d937466c35d5e4b7ba42e SHA512 86ff31fc86cc49666bcab4f446491dd56862b144a3e05f7e88723a500be82be12fffa909230b5a74a2fd67fbd7a9f20c9da9f44d0d264dfa84bc3b8423201e64
diff --git a/app-emacs/jde/jde-2.4.1-r2.ebuild b/app-emacs/jde/jde-2.4.1-r2.ebuild
new file mode 100644
index 000000000000..c1e9b794808b
--- /dev/null
+++ b/app-emacs/jde/jde-2.4.1-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+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"
+
+RDEPEND=">=virtual/jdk-1.8:*
+ 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"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.4.0.1-fix-paths-gentoo.patch"
+ "${FILESDIR}/${PN}-2.4.0.1-classpath-gentoo.patch"
+ "${FILESDIR}/${PN}-2.4.1-doc-directory.patch"
+)
+
+pkg_setup() {
+ java-pkg-2_pkg_setup
+ elisp_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ 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
+}