--- pspp-0.4.0.ebuild 2007-07-31 08:07:36.000000000 +0200 +++ pspp-0.4.0.ebuild 2007-07-31 08:31:23.000000000 +0200 @@ -21,6 +21,7 @@ # make check gave 39 failures of out 96 tests RESTRICT="test" +SITEFILE=50${PN}-gentoo.el src_compile() { econf \ @@ -32,6 +33,9 @@ if use doc; then emake html || die "emake html failed" fi + + use emacs && elisp-compile *.el + } src_install() { @@ -42,7 +46,10 @@ docinto examples && dodoc examples/{ChangeLog,descript.stat} use doc && dohtml doc/pspp.html/* - use emacs && elisp-site-file-install pspp-mode.el + if use emacs; then + elisp-install ${PN} *.el *.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi } pkg_postinst () {