--- autoconf-2.61.ebuild~ 2007-07-04 16:41:08.000000000 +0200 +++ autoconf-2.61.ebuild 2007-07-04 16:50:54.000000000 +0200 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf/autoconf-2.61.ebuild,v 1.10 2007/01/19 23:34:04 vapier Exp $ +inherit elisp-common + DESCRIPTION="Used to create autoconfiguration files" HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html" SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" @@ -17,10 +19,11 @@ RDEPEND="${DEPEND} >=sys-devel/autoconf-wrapper-4-r2" +SITEFILE=50${PN}-gentoo.el + src_compile() { - (use emacs && type -p emacs) \ - && export EMACS=emacs \ - || export EMACS=no + # Disable emacs in the build system since we don't DEPEND on it + export EMACS=no econf --program-suffix="-${PV}" || die # econf updates config.{sub,guess} which forces the manpages # to be regenerated which we dont want to do #146621 @@ -34,4 +37,17 @@ emake DESTDIR="${D}" install || die dodoc AUTHORS BUGS NEWS README TODO THANKS \ ChangeLog ChangeLog.0 ChangeLog.1 ChangeLog.2 + + if use emacs; then + elisp-install ${PN} lib/emacs/*.el + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen }