# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-emacs/imaxima/imaxima-1.0.ebuild,v 1.8 2009/12/26 19:20:00 pva Exp $ inherit elisp MY_P="${PN}-imath-${PV/_}" DESCRIPTION="Imaxima enables graphical output in Maxima sessions with emacs" HOMEPAGE="http://sites.google.com/site/imaximaimath/" SRC_URI="http://members3.jcom.home.ne.jp/imaxima/Site/Download_and_Install_files/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc sparc x86" IUSE="examples" DEPEND="" RDEPEND="virtual/latex-base app-text/ghostscript-gpl dev-tex/mh sci-mathematics/maxima" SITEFILE="50${PN}-gentoo.el" S="${WORKDIR}/${MY_P}" src_compile() { econf --with-lispdir="${SITELISP}/${PN}" || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die dodoc ChangeLog NEWS README || die if use examples; then docinto imath-example dodoc imath-example/*.txt || die dohtml -r imath-example/. || die fi }