Index: librep-0.17_p20070101.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-libs/librep/librep-0.17_p20070101.ebuild,v retrieving revision 1.4 diff -u -B -r1.4 librep-0.17_p20070101.ebuild --- librep-0.17_p20070101.ebuild 14 Jan 2008 20:04:29 -0000 1.4 +++ librep-0.17_p20070101.ebuild 16 Aug 2008 14:14:24 -0000 @@ -7,7 +7,7 @@ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" -inherit autotools eutils toolchain-funcs multilib +inherit autotools eutils toolchain-funcs multilib elisp-common DESCRIPTION="Shared library implementing a Lisp dialect" HOMEPAGE="http://librep.sourceforge.net/" @@ -17,9 +17,10 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha ~amd64 ia64 ppc ~ppc64 sparc x86" -IUSE="readline" +IUSE="emacs readline" RDEPEND=">=sys-libs/gdbm-1.8.0 + emacs? ( virtual/emacs ) readline? ( sys-libs/readline )" DEPEND="${RDEPEND} sys-apps/texinfo" @@ -32,6 +33,7 @@ epatch "${DISTDIR}"/${P}.patch.bz2 epatch "${FILESDIR}"/${P}-libtool.patch epatch "${FILESDIR}"/rep_file_fdopen.patch + epatch "${FILESDIR}"/${P}-disable-elisp.patch eautoreconf || die "eautoreconf failed" } @@ -43,6 +45,10 @@ $(use_with readline) || die "configure failed" LC_ALL=C emake || die "make failed" + + if use emacs; then + elisp-compile rep-debugger.el || die "elisp-compile failed" + fi } src_install() { @@ -50,4 +56,18 @@ dodoc AUTHORS BUGS ChangeLog NEWS README THANKS TODO TREE docinto doc dodoc doc/* + + if use emacs; then + elisp-install ${PN} rep-debugger.{el,elc} || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ + || die "elisp-site-file-install failed" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen }