app-emacs/emhacks: Unconditionally remove jsee.

Byte compilation of jsee.el fails with recent Emacs versions.
After its removal, the jde USE flag is not needed any more.

Closes: https://bugs.gentoo.org/642588
Package-Manager: Portage-2.3.19, Repoman-2.3.6
This commit is contained in:
Ulrich Müller
2018-01-04 01:09:11 +01:00
parent f3f094b4d6
commit d13ac84aa2
4 changed files with 25 additions and 45 deletions

View File

@@ -0,0 +1,25 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit elisp
DESCRIPTION="Useful Emacs Lisp libraries, including gdiff, jjar, jmaker, swbuff, and tabbar"
HOMEPAGE="http://emhacks.sourceforge.net/"
# CVS snapshot
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
SITEFILE="50${PN}-gentoo.el"
DOCS="Changelog"
src_prepare() {
# remove files included in Emacs>=22 or not useful on GNU/Linux
# remove jsee #642588
rm -r findstr* jsee* overlay-fix* recentf* ruler-mode* tree-widget* || die
eapply_user
}

View File

@@ -1,38 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit elisp
DESCRIPTION="Useful Emacs Lisp libraries, including gdiff, jjar, jmaker, swbuff, and tabbar"
HOMEPAGE="http://emhacks.sourceforge.net/"
# CVS snapshot
SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="jde"
DEPEND="jde? ( app-emacs/jde )"
RDEPEND="${DEPEND}"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
# remove files included in Emacs>=22 or not useful on GNU/Linux
rm -r findstr* overlay-fix* recentf* ruler-mode* tree-widget* || die
# this requires jde and cedet, not everyone may want it
use jde || rm jsee.el || die
}
src_install() {
elisp-install ${PN} *.el *.elc
cp "${FILESDIR}/${SITEFILE}" "${T}"
use jde || sed -i -e '/;; jsee/,$d' "${T}/${SITEFILE}"
elisp-site-file-install "${T}/${SITEFILE}"
dodoc Changelog
}

View File

@@ -26,7 +26,3 @@ And update the status window if showing." t)
;; jmaker
(autoload 'jmaker-generate-makefile "jmaker"
"Generate and edit a Java Makefile in directory ROOT." t)
;; jsee
(autoload 'jsee-browse-api-doc "jsee"
"Browse the Java API Documentation of the current Java file." t)

View File

@@ -16,9 +16,6 @@
swbuff, Quick switch between Emacs buffers;
tabbar, Display a tab bar in the header line.
</longdescription>
<use>
<flag name="jde">Enable support for Java Development Environment</flag>
</use>
<upstream>
<remote-id type="sourceforge">emhacks</remote-id>
</upstream>