summaryrefslogtreecommitdiff
path: root/app-emacs/jde
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emacs/jde
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/jde')
-rw-r--r--app-emacs/jde/Manifest9
-rw-r--r--app-emacs/jde/files/70jde-gentoo.el10
-rw-r--r--app-emacs/jde/files/jde-2.4.0.1-classpath-gentoo.patch69
-rw-r--r--app-emacs/jde/files/jde-2.4.0.1-fix-paths-gentoo.patch218
-rw-r--r--app-emacs/jde/files/jde-2.4.1-doc-directory.patch53
-rw-r--r--app-emacs/jde/jde-2.4.1.ebuild74
-rw-r--r--app-emacs/jde/metadata.xml31
7 files changed, 464 insertions, 0 deletions
diff --git a/app-emacs/jde/Manifest b/app-emacs/jde/Manifest
new file mode 100644
index 000000000000..66e5dae385f6
--- /dev/null
+++ b/app-emacs/jde/Manifest
@@ -0,0 +1,9 @@
+AUX 70jde-gentoo.el 406 SHA256 fbbd2eed01703b2223751e6df0fd34b2d86e1d10a9f1c6f6332fc351d6ec22ff SHA512 9d7f65d67d897272c4aa24e3fa77abd217b077561d391ccec8181838d4e162f9086f95fb724ee9bba3bdd44f954f14d67c044ebd78a059a69bc0f12c03c0fc28 WHIRLPOOL 0efd3b769c4104f31fb564cbff07ec413d1a1ea55ebcfe21e2c372b316b6b3e2a0d433235ed4b7176bb7916d54579b77fce81f68607097237f2a9757621bfdee
+AUX jde-2.4.0.1-classpath-gentoo.patch 2291 SHA256 2b771ddecbed5ada026a1621ba92bcad29b0155549fa6a1a0495348c0c252504 SHA512 c18378500f04b2f6cbed5c4a20d03600ea01174faf93d460c1ea274c50ca95891096f49e471160255e4ec27cda2330ee6c28fe29e96633994c3d5f910876f848 WHIRLPOOL b6a28b830238c5eee937d59296414df21a61a57afeb842b6f814e8a37750fd02ea2a4cbba861b08e38c593d661ad84b79bae18b41e9faf1494b155902ed7d82b
+AUX jde-2.4.0.1-fix-paths-gentoo.patch 7175 SHA256 aad7376741dfca76781d2e0d4e93a05f6e1b50fad60d2eb826da6550d7d192f0 SHA512 179e6bd8cc0165ee1f0d3383aec76bdb97f6164562663fe577a9ef04ac236afeccf1137594d7d4d8962ce4577befeb81e393d03c08bf68473657de7e18debb7e WHIRLPOOL 7866a33b5f78c5cff9c62a0f405f726f527241c96e39f768e0ee4b9e164206f513524f2bdad7ab3ff1f4d7a55e235dc705ec958aee65ab021fe4307533440e35
+AUX jde-2.4.1-doc-directory.patch 1806 SHA256 1c6b745d3be3b6dd4641a90638d0429dece6f5729dae575b8be0a280400523bc SHA512 3818474077c2f387bdef6fb297a40b94529622e1da3fb31c3d7b3734111fb4e607062f9cdca9f1f5b020dec8d8e9e6601d5bf7831a20415f393f2f029e97c101 WHIRLPOOL 6f14f9a2fe8724fc2f0a896be1d3bdf349425275272f3a6a3ca80f5d2d141139322a11311bc2bdcfe54e878f712e92f89fea06e80f976739c297887a4c543b02
+DIST jdee-2.4.1.tar.xz 2742232 SHA256 24241376837361e23a2c181775423ac248e441e3ced513e21cbef30529cbeb43 SHA512 5ce5f0f84b2502e9af808f33210511e8b7682902b1f342d678fe42dd8f9f3690b90ef7bb22583550eb769818782c50f545d6baf47b52bc7f4502fab411ab5359 WHIRLPOOL c20988fc59fdd453e9942b53d444605dd3738a9978e2bd6a67d30b550e5510926056bc0b7734a9fdf4fd7c4ac09a2bbd1baaf35b92bc94438b378d722ab76a37
+EBUILD jde-2.4.1.ebuild 1927 SHA256 807ebe2e14a2533b6772ff8754dbfdeac5667ca18e2f36c41c81a7b141778a92 SHA512 f4f872602931287fcad579c2b1a15267c07419b3a4822988ec888d861292b86d5ede7dc5882d398b4b3aaa1c363ada64becbc812efcd4b19182f88a37a04a3d4 WHIRLPOOL 12ae02c3ecbceae87c78f712a9698ec586efd970b6e2e4658278b7554d75f3128b03ea2731b0ad4db7c5a1db5599a01b2865e438789de4de4271ea32e5efbcbb
+MISC ChangeLog 2993 SHA256 45e8c44551367afacb468f758fd0ef203f567543b4527940dffa1e4dbe88246d SHA512 7444be369283904815759a7600b6c64086a12db368719018a6afa89c2fb2f11812ea03a9bbc2fb0b871f0bc4ef45c7fe637aa249f23d9acd66517e1d5fd9a135 WHIRLPOOL 78d58dc4ebc429892f782187c83c669a5c8ffbfaaec026d0138ffdab8e6a2861f3c19f5b978119d46ac1ab5d72875b635a5e6ca54c07fc78bb876f3c1eb6d244
+MISC ChangeLog-2015 8651 SHA256 af305ae976efe7690ac98b4d4a8a2149b2906e146d7cbf1adc4da1e1088d3179 SHA512 9d5f5b3f3aa6ac6395736b4726680aac07b12a3c3c6ef13adb026b29e9b8dbd8c41b77aac864760be9c18b0838569a5f8261412eabf5a7263330d4dcc6bab267 WHIRLPOOL 05d5aaa10128bdf12bbae8d8cfd25bd3f1f766efad37bd5546b6ec4fa75cf783250800a3b566e579b3e21128250ebf17b2e6e3b860ee4b0a3e1abf863c5c2180
+MISC metadata.xml 990 SHA256 44341effa7d93361a2b6d9aa2d05ee3f8542243706ef6d2ad360d39febac5802 SHA512 52b53b824f57a5bed2920e3f2f48c6706a26e7e0f4f2e4bfe36ca62a244fe02c1f24daff67e01b4615f84b96911a404e7cd578e7670516914069c65f7508471e WHIRLPOOL 2a44ea1389b7de77b25034c3e431aa5e209369b0d8f220134e692d7f989e1225ad5f62f8cc0ddf7b0c4dbbdc8dc674811f411edca82e6c8b4109513e2e2e042f
diff --git a/app-emacs/jde/files/70jde-gentoo.el b/app-emacs/jde/files/70jde-gentoo.el
new file mode 100644
index 000000000000..c7fff6a61b4d
--- /dev/null
+++ b/app-emacs/jde/files/70jde-gentoo.el
@@ -0,0 +1,10 @@
+(add-to-list 'load-path "@SITELISP@")
+(require 'jde-autoload)
+
+(setq jde-java-directory "/usr/share/jde")
+(setq jde-bsh-jar-file "@BSH_JAR@")
+(setq jde-checkstyle-jar-file "@CHECKSTYLE_JAR@")
+(setq jde-checkstyle-style "/usr/share/checkstyle/checks/sun_checks.xml")
+(setq jde-html-directory "/usr/share/doc/@PF@/html")
+(setq bsh-html-directory "/usr/share/doc/@PF@/html")
+(setq jde-check-version-flag nil)
diff --git a/app-emacs/jde/files/jde-2.4.0.1-classpath-gentoo.patch b/app-emacs/jde/files/jde-2.4.0.1-classpath-gentoo.patch
new file mode 100644
index 000000000000..47fdd4e11e47
--- /dev/null
+++ b/app-emacs/jde/files/jde-2.4.0.1-classpath-gentoo.patch
@@ -0,0 +1,69 @@
+Initialise classpath for beanshell and checkstyle using java-config.
+Gentoo specific patch.
+
+--- jde-orig/lisp/beanshell.el
++++ jde/lisp/beanshell.el
+@@ -809,6 +809,14 @@
+ "BeanShell intended to be used independently of any other
+ Emacs package.")
+
++(defun bsh-get-gentoo-classpath ()
++ (or bsh-classpath
++ (with-temp-buffer
++ (call-process "java-config" nil t nil "-d" "-p" "bsh")
++ (skip-chars-backward "\n")
++ (setq bsh-classpath
++ (split-string (buffer-substring (point-min) (point)) ":+")))))
++
+ (defmethod initialize-instance ((this bsh-standalone-bsh) &rest fields)
+ "Constructor for the standard bsh BeanShell instance."
+ (call-next-method)
+@@ -845,7 +853,7 @@
+ bsh-vm)
+ (executable-find (if (eq system-type 'windows-nt) "javaw" "java"))))
+
+- (oset this cp bsh-classpath)
++ (oset this cp (bsh-get-gentoo-classpath))
+
+ (oset this startup-dir bsh-startup-directory))
+
+--- jde-orig/lisp/jde-bsh.el
++++ jde/lisp/jde-bsh.el
+@@ -187,7 +187,7 @@
+ (jde-get-tools-jar)
+ (if ant-home (expand-file-name "lib" ant-home)))
+ (jde-pi-get-bsh-classpath)
+- bsh-classpath
++ (bsh-get-gentoo-classpath)
+ (jde-expand-classpath (jde-get-global-classpath)))))))
+
+ ;; Create the BeanShell wrapper object.
+--- jde-orig/lisp/jde-checkstyle.el
++++ jde/lisp/jde-checkstyle.el
+@@ -305,6 +305,14 @@
+ (format "-D%s=%s" (car prop) (cdr prop)))
+ jde-checkstyle-expanded-properties))
+
++(defun jde-checkstyle-get-gentoo-classpath ()
++ (or jde-checkstyle-classpath
++ (with-temp-buffer
++ (call-process "java-config" nil t nil "-d" "-p" "checkstyle")
++ (skip-chars-backward "\n")
++ (setq jde-checkstyle-classpath
++ (split-string (buffer-substring (point-min) (point)) ":+")))))
++
+ (defmethod jde-checkstyle-exec ((this jde-checkstyle-checker))
+
+ (jde-checkstyle-create-checker-buffer this)
+@@ -327,9 +335,8 @@
+ (jde-checkstyle-get-property-args this))
+ (oref this :interactive-args)
+ (list "-classpath"
+- (if jde-checkstyle-classpath
+- (jde-build-classpath jde-checkstyle-classpath)
+- (jde-normalize-path jde-checkstyle-jar-file)))
++ (jde-build-classpath
++ (jde-checkstyle-get-gentoo-classpath)))
+ (list jde-checkstyle-class)
+ (list "-c"
+ (if jde-checkstyle-style
diff --git a/app-emacs/jde/files/jde-2.4.0.1-fix-paths-gentoo.patch b/app-emacs/jde/files/jde-2.4.0.1-fix-paths-gentoo.patch
new file mode 100644
index 000000000000..a129b588587c
--- /dev/null
+++ b/app-emacs/jde/files/jde-2.4.0.1-fix-paths-gentoo.patch
@@ -0,0 +1,218 @@
+Make paths of directories and jar files configurable.
+
+Part of this patch was taken from Debian and heavily modified, see:
+http://patch-tracking.debian.net/patch/series/view/jde/2.3.5.1-5/0005-Set-the-location-of-needed-files-for-beanshell.el-an.patch
+
+--- jde-orig/lisp/beanshell.el
++++ jde/lisp/beanshell.el
+@@ -891,14 +891,21 @@
+
+ (add-to-list 'auto-mode-alist '("\\.bsh\\'" . bsh-script-mode))
+
++(defcustom bsh-html-directory
++ (let ((jde-dir (jde-find-jde-doc-directory)))
++ (if jde-dir
++ (expand-file-name "doc/html/bsh-ug" jde-dir)))
++ "Directory of the beanshell HTML documentation."
++ :group 'bsh
++ :type 'directory)
++
+ ;;;###autoload
+ (defun bsh-script-help ()
+ "Display BeanShell User's Guide."
+ (interactive)
+- (let* ((jde-dir (jde-find-jde-doc-directory))
+- (bsh-help
+- (if jde-dir
+- (expand-file-name "doc/html/bsh-ug/bsh-ug.html" jde-dir))))
++ (let ((bsh-help
++ (if bsh-html-directory
++ (expand-file-name "bsh-ug.html" bsh-html-directory))))
+ (if (and
+ bsh-help
+ (file-exists-p bsh-help))
+--- jde-orig/lisp/jde-bsh.el
++++ jde/lisp/jde-bsh.el
+@@ -91,22 +91,59 @@
+ "The single instance of the JDEE's BeanShell."))
+ "Class of JDEE BeanShells. There is only one per Emacs session.")
+
++(defcustom jde-java-directory
++ (expand-file-name "java" (jde-find-jde-data-directory))
++ "Top-level directory of JDE Java files."
++ :group 'jde-project
++ :type 'directory)
++
++(defcustom jde-bsh-commands-directory
++ (expand-file-name "bsh-commands" jde-java-directory)
++ "Directory of beanshell commands."
++ :group 'bsh
++ :type 'directory)
++
++(defcustom jde-classes-directory
++ (expand-file-name "classes" jde-java-directory)
++ "Directory of JDE classes."
++ :group 'jde-project
++ :type 'directory)
++
++(defcustom jde-checkstyle-jar-file
++ (expand-file-name "lib/checkstyle-all.jar" jde-java-directory)
++ "Path of the checkstyle-jar file."
++ :group 'jde-project
++ :type 'file)
++
++(defcustom jde-regexp-jar-file
++ (expand-file-name "lib/jakarta-regexp.jar" jde-java-directory)
++ "Path of the regexp-jar file."
++ :group 'jde-project
++ :type 'file)
++
++(defcustom jde-jde-jar-file
++ (expand-file-name "lib/jde.jar" jde-java-directory)
++ "Path of the jde-jar file."
++ :group 'jde-project
++ :type 'file)
++
++(defcustom jde-bsh-jar-file
++ (expand-file-name "lib/bsh.jar" jde-java-directory)
++ "Path of the bsh-jar file."
++ :group 'jde-project
++ :type 'file)
++
+ (defmethod initialize-instance ((this jde-bsh) &rest fields)
+ "Constructor for the JDEE BeanShell instance."
+ (call-next-method)
+- (let* ((jde-java-directory
+- (concat
+- (jde-find-jde-data-directory)
+- "java/")))
+-
+- (oset this bsh-cmd-dir (expand-file-name "bsh-commands" jde-java-directory))
+- (oset this checkstyle-jar (expand-file-name "lib/checkstyle-all.jar" jde-java-directory))
+- (oset this regexp-jar (expand-file-name "lib/jakarta-regexp.jar" jde-java-directory))
+- (oset this jde-classes-dir (expand-file-name "classes" jde-java-directory))
+- (oset this jde-jar (expand-file-name "lib/jde.jar" jde-java-directory))
+- (oset this jar (expand-file-name "lib/bsh.jar" jde-java-directory))
+- (oset this separate-error-buffer jde-bsh-separate-buffer)
+- (oset-default 'jde-bsh the-bsh this)))
++ (oset this bsh-cmd-dir jde-bsh-commands-directory)
++ (oset this checkstyle-jar jde-checkstyle-jar-file)
++ (oset this regexp-jar jde-regexp-jar-file)
++ (oset this jde-classes-dir jde-classes-directory)
++ (oset this jde-jar jde-jde-jar-file)
++ (oset this jar jde-bsh-jar-file)
++ (oset this separate-error-buffer jde-bsh-separate-buffer)
++ (oset-default 'jde-bsh the-bsh this))
+
+ (defmethod bsh-create-buffer ((this jde-bsh))
+ "Creates the JDEE's beanshell buffer."
+@@ -150,6 +187,7 @@
+ (jde-get-tools-jar)
+ (if ant-home (expand-file-name "lib" ant-home)))
+ (jde-pi-get-bsh-classpath)
++ bsh-classpath
+ (jde-expand-classpath (jde-get-global-classpath)))))))
+
+ ;; Create the BeanShell wrapper object.
+--- jde-orig/lisp/jde-bug.el
++++ jde/lisp/jde-bug.el
+@@ -2438,10 +2438,10 @@
+ (defun jde-bug-help ()
+ "Displays the JDEbug User's Guide."
+ (interactive)
+- (let* ((jde-dir (jde-find-jde-doc-directory))
+- (jdebug-help
+- (if jde-dir
+- (expand-file-name "doc/html/jdebug-ug/jdebug-ug.html" jde-dir))))
++ (let ((jdebug-help
++ (if jde-html-directory
++ (expand-file-name "jdebug-ug/jdebug-ug.html"
++ jde-html-directory))))
+ (if (and
+ jdebug-help
+ (file-exists-p jdebug-help))
+--- jde-orig/lisp/jde-checkstyle.el
++++ jde/lisp/jde-checkstyle.el
+@@ -322,10 +322,6 @@
+ (vm-path (oref (jde-run-get-vm) :path))
+ (source-file
+ (concat (file-name-nondirectory buffer-file-name)))
+- (jde-java-directory
+- (concat
+- (jde-find-jde-data-directory)
+- "java/"))
+ (args (append
+ (unless jde-checkstyle-expanded-properties-file
+ (jde-checkstyle-get-property-args this))
+@@ -333,13 +329,13 @@
+ (list "-classpath"
+ (if jde-checkstyle-classpath
+ (jde-build-classpath jde-checkstyle-classpath)
+- (jde-normalize-path
+- (expand-file-name "lib/checkstyle-all.jar" jde-java-directory))))
++ (jde-normalize-path jde-checkstyle-jar-file)))
+ (list jde-checkstyle-class)
+ (list "-c"
+ (if jde-checkstyle-style
+ (jde-normalize-path jde-checkstyle-style)
+- (concat (jde-find-jde-data-directory) "java/lib/sun_checks.xml")))
++ (expand-file-name "lib/sun_checks.xml"
++ jde-java-directory)))
+ (if jde-checkstyle-expanded-properties-file
+ (list "-p" (jde-normalize-path jde-checkstyle-expanded-properties-file)))
+ (if jde-checkstyle-module-package-names-file
+--- jde-orig/lisp/jde-dbs.el
++++ jde/lisp/jde-dbs.el
+@@ -907,9 +907,6 @@
+ (jde-normalize-path 'jde-run-working-directory)
+ source-directory))
+ (vm (oref (jde-run-get-vm) :path))
+- (jde-java-directory
+- (expand-file-name "java"
+- (jde-find-jde-data-directory)))
+ (vm-args
+ (let (args)
+ (setq args
+--- jde-orig/lisp/jde.el
++++ jde/lisp/jde.el
+@@ -1722,14 +1722,19 @@
+ jde.el."
+ (jde-find-jde-data-directory))
+
++(defcustom jde-html-directory
++ (expand-file-name "doc/html" (jde-find-jde-doc-directory))
++ "Directory of the JDE HTML documentation."
++ :group 'jde-project
++ :type 'directory)
++
+ ;;;###autoload
+ (defun jde-show-help ()
+ "Displays the JDE User's Guide in a browser."
+ (interactive)
+- (let* ((jde-dir (jde-find-jde-doc-directory))
+- (jde-help
+- (if jde-dir
+- (expand-file-name "doc/html/jde-ug/jde-ug.html" jde-dir))))
++ (let ((jde-help
++ (if jde-html-directory
++ (expand-file-name "jde-ug/jde-ug.html" jde-html-directory))))
+ (if (and
+ jde-help
+ (file-exists-p jde-help))
+--- jde-orig/lisp/jde-jdb.el
++++ jde/lisp/jde-jdb.el
+@@ -1459,10 +1459,10 @@
+
+ (defun jde-jdb-help ()
+ (interactive)
+- (let* ((jde-dir (jde-find-jde-doc-directory))
+- (jdb-ug-path
+- (if jde-dir
+- (expand-file-name "doc/html/jdb-ug/jdb-ug-frame.html" jde-dir))))
++ (let ((jdb-ug-path
++ (if jde-html-directory
++ (expand-file-name "jdb-ug/jdb-ug-frame.html"
++ jde-html-directory))))
+ (if (and
+ jdb-ug-path
+ (file-exists-p jdb-ug-path))
diff --git a/app-emacs/jde/files/jde-2.4.1-doc-directory.patch b/app-emacs/jde/files/jde-2.4.1-doc-directory.patch
new file mode 100644
index 000000000000..c96fcd861594
--- /dev/null
+++ b/app-emacs/jde/files/jde-2.4.1-doc-directory.patch
@@ -0,0 +1,53 @@
+Move definition of jde-find-jde-doc-directory to jde-util.el.
+
+--- jdee-orig/lisp/beanshell.el
++++ jdee/lisp/beanshell.el
+@@ -82,7 +82,7 @@
+ (eval-when-compile
+ (require 'cl))
+
+-(declare-function jde-find-jde-doc-directory "jde" nil)
++(require 'jde-util)
+
+ (defgroup bsh nil
+ "Customizations for the Emacs inteface to Pat Neimeyer's Java
+--- jdee-orig/lisp/jde-util.el
++++ jdee/lisp/jde-util.el
+@@ -139,6 +139,17 @@
+ (if dir dir (jde-root)))
+ (jde-root))))
+
++(defun jde-find-jde-doc-directory ()
++ "Return the path of the JDE documentation directory.
++Returns nil if the directory cannot be found. At some
++point, XEmacs will include the JDE. Versions of XEmacs
++that include JDE will store the JDE doc in a data
++directory called jde. On all other Emacs versions, the JDE
++expects to find the documentation in a subdirectory
++named doc of the directory that contains the file
++jde.el."
++ (jde-find-jde-data-directory))
++
+ (defun jde-temp-directory ()
+ "Get the location used by the host system to store temporary files."
+ (or (if (boundp 'temporary-file-directory) temporary-file-directory)
+--- jdee-orig/lisp/jde.el
++++ jdee/lisp/jde.el
+@@ -1762,17 +1762,6 @@
+
+
+ ;; JDE help
+-(defun jde-find-jde-doc-directory ()
+- "Return the path of the JDE documentation directory.
+-Returns nil if the directory cannot be found. At some
+-point, XEmacs will include the JDE. Versions of XEmacs
+-that include JDE will store the JDE doc in a data
+-directory called jde. On all other Emacs versions, the JDE
+-expects to find the documentation in a subdirectory
+-named doc of the directory that contains the file
+-jde.el."
+- (jde-find-jde-data-directory))
+-
+ (defcustom jde-html-directory
+ (expand-file-name "doc/html" (jde-find-jde-doc-directory))
+ "Directory of the JDE HTML documentation."
diff --git a/app-emacs/jde/jde-2.4.1.ebuild b/app-emacs/jde/jde-2.4.1.ebuild
new file mode 100644
index 000000000000..fd50b7af19da
--- /dev/null
+++ b/app-emacs/jde/jde-2.4.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+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/"
+# 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
+ app-emacs/elib
+ 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() {
+ 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"
+
+ 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 -Delib.dir="${EPREFIX}${SITELISP}/elib" \
+ 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
+
+ dohtml -r doc/html/*
+}
diff --git a/app-emacs/jde/metadata.xml b/app-emacs/jde/metadata.xml
new file mode 100644
index 000000000000..3c127a28363d
--- /dev/null
+++ b/app-emacs/jde/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+<longdescription>
+ The Java Development Environment for Emacs is a software package
+ that interfaces Emacs to command-line Java development tools (for
+ example, JavaSoft's JDK). JDEE features include:
+
+ * JDEE menu with compile, run, debug, build, browse, project, and
+ help commands
+ * syntax coloring
+ * auto indentation
+ * compile error to source links
+ * source-level debugging
+ * source code browsing
+ * make file support
+ * automatic code generation
+ * Java source interpreter (Pat Neimeyer's BeanShell)
+</longdescription>
+<upstream>
+ <remote-id type="sourceforge">jdee</remote-id>
+</upstream>
+</pkgmetadata>