1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit elisp readme.gentoo-r1
8 DESCRIPTION="Source code browser for Emacs"
9 HOMEPAGE="http://ecb.sourceforge.net/"
10 # snapshot of https://github.com/ecb-home/ecb.git, created with "make distrib"
11 SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz"
15 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
18 RDEPEND="java? ( app-emacs/jde )"
21 S="${WORKDIR}/${PN}-${PV%_*}"
22 SITEFILE="70${PN}-gentoo.el"
23 DOC_CONTENTS="ECB is autoloaded in site-gentoo.el. Add the line
25 \nto your ~/.emacs file to enable all features on Emacs startup."
28 eapply "${FILESDIR}"/${PN}-2.32-gentoo.patch
29 sed -i -e "s:@PF@:${PF}:" ecb-help.el || die "sed failed"
35 use java && loadpath="${EPREFIX}${SITELISP}"/{elib,jde,jde/lisp}
36 emake LOADPATH="${loadpath}"
42 insinto "${SITEETC}/${PN}"
45 doinfo info-help/ecb.info*
46 dodoc NEWS README RELEASE_NOTES
48 dodoc html-help/*.html