--- quantlib-0.3.14.ebuild~ 2006-11-07 23:34:50.000000000 +0100 +++ quantlib-0.3.14.ebuild 2007-07-07 14:50:09.000000000 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/quantlib/quantlib-0.3.14.ebuild,v 1.1 2006/11/07 22:34:50 dev-zero Exp $ -inherit autotools eutils +inherit autotools eutils elisp-common KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" @@ -20,6 +20,8 @@ doc? ( app-doc/doxygen ) ${RDEPEND}" +SITEFILE=50${PN}-gentoo.el + S=${WORKDIR}/${MY_P} src_unpack() { @@ -37,7 +39,7 @@ use emacs || sed -i -e "s/^EMACS=.*/EMACS=no/" configure || die "sed failed" - econf || die "econf failed" + econf --with-lispdir="${SITELISP}/${PN}" || die "econf failed" emake || die "emake failed" if use doc ; then @@ -63,4 +65,16 @@ doins ${example%%/}/*.{cpp,h,txt} done fi + + if use emacs; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen }