--- gle-4.1.2b.ebuild 28 Aug 2008 19:19:26 -0000 1.3 +++ gle-4.1.2b.ebuild 13 Oct 2008 07:09:08 -0000 @@ -18,7 +18,7 @@ vim-syntax? ( http://glx.sourceforge.net/downloads/vim_gle.zip )" SLOT="0" -LICENSE="BSD" +LICENSE="BSD emacs? ( GPL-2 )" KEYWORDS="~amd64 ~x86" IUSE="X qt4 jpeg png tiff doc emacs vim-syntax" @@ -41,6 +41,14 @@ S="${WORKDIR}"/gle4 +src_unpack() { + unpack ${A} + if use emacs; then + cp "${DISTDIR}"/gle-emacs.el gle-mode.el || die "cp gle-mode.el failed" + epatch "${FILESDIR}"/${P}-gle-emacs.patch + fi +} + src_compile() { local qtconf="--without-qt" use qt4 && qtconf="--with-qt=/usr" @@ -53,6 +61,10 @@ # emake failed in src/gui (probably qmake stuff) emake -j1 || die "emake failed" + + if use emacs; then + elisp-compile "${WORKDIR}"/gle-mode.el || die + fi } src_install() { @@ -73,8 +85,8 @@ fi if use emacs ; then - elisp-site-file-install "${DISTDIR}"/gle-emacs.el gle-mode.el - elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el + elisp-install ${PN} "${WORKDIR}"/gle-mode.{el,elc} || die + elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el || die fi if use vim-syntax ; then