--- pspp-0.4.0.ebuild 2007-07-31 08:07:36.000000000 +0200 +++ /tmp/pspp-0.4.0.ebuild 2007-07-31 08:58:04.000000000 +0200 @@ -17,10 +17,12 @@ >=sys-devel/gettext-0.14.1 >=dev-lang/perl-5.6 ncurses? ( >=sys-libs/ncurses-5.4 ) - plotutils? ( >=media-libs/plotutils-2.4.1 )" + plotutils? ( >=media-libs/plotutils-2.4.1 ) + emacs? ( virtual/emacs )" # make check gave 39 failures of out 96 tests RESTRICT="test" +SITEFILE=50${PN}-gentoo.el src_compile() { econf \ @@ -32,6 +34,9 @@ if use doc; then emake html || die "emake html failed" fi + + use emacs && elisp-compile *.el + } src_install() { @@ -42,7 +47,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 () {