summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-visualization/epix/epix-1.2.7.ebuild')
-rw-r--r--sci-visualization/epix/epix-1.2.7.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/sci-visualization/epix/epix-1.2.7.ebuild b/sci-visualization/epix/epix-1.2.7.ebuild
new file mode 100644
index 000000000000..7c42433bc3bb
--- /dev/null
+++ b/sci-visualization/epix/epix-1.2.7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/epix/epix-1.2.7.ebuild,v 1.1 2010/05/04 22:38:17 bicatali Exp $
+
+EAPI=2
+inherit elisp-common bash-completion autotools
+
+DESCRIPTION="2- and 3-D plotter for creating images (to be used in LaTeX)"
+HOMEPAGE="http://mathcs.holycross.edu/~ahwang/current/ePiX.html"
+SRC_URI="http://mathcs.holycross.edu/~ahwang/epix/${P}_withpdf.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc emacs examples"
+
+DEPEND="virtual/latex-base
+ || ( ( dev-texlive/texlive-pstricks
+ dev-texlive/texlive-pictures
+ dev-texlive/texlive-latexextra
+ dev-tex/xcolor )
+ app-text/ptex )
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+SITEFILE=50${PN}-gentoo.el
+
+src_prepare() {
+ # disable automatic install of doc and examples
+ epatch "${FILESDIR}"/${P}-doc-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir=/usr/share/doc/${PF} \
+ --disable-epix-el
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ if use emacs; then
+ # do compilation here as the make install target will
+ # create the .el file
+ elisp-compile *.el || die "elisp-compile failed!"
+ elisp-install ${PN} *.elc *.el || die "elisp-install failed!"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+ dobashcompletion bash_completions \
+ || die "install of bash completions failed"
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins doc/*gz || die
+ fi
+ if use examples; then
+ cd samples
+ insinto /usr/share/doc/${PF}/examples
+ doins *.xp *.flx *c *h README || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}