summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2007-09-11 01:31:32 +0000
committerMarkus Dittrich <markusle@gentoo.org>2007-09-11 01:31:32 +0000
commitd03df32efa12d33620364a2132fed8eab87e9d2e (patch)
tree5b32df73276fe87e7e215e084f681349efa3e345 /sci-visualization
parentstable for x86 (diff)
downloadgentoo-2-d03df32efa12d33620364a2132fed8eab87e9d2e.tar.gz
gentoo-2-d03df32efa12d33620364a2132fed8eab87e9d2e.tar.bz2
gentoo-2-d03df32efa12d33620364a2132fed8eab87e9d2e.zip
Added emacs support (see bug #182056).
(Portage version: 2.1.3.9)
Diffstat (limited to 'sci-visualization')
-rw-r--r--sci-visualization/epix/ChangeLog6
-rw-r--r--sci-visualization/epix/epix-1.1.15.ebuild25
2 files changed, 26 insertions, 5 deletions
diff --git a/sci-visualization/epix/ChangeLog b/sci-visualization/epix/ChangeLog
index 35873ec62384..44edbef41278 100644
--- a/sci-visualization/epix/ChangeLog
+++ b/sci-visualization/epix/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-visualization/epix
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/epix/ChangeLog,v 1.14 2007/09/09 14:09:50 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/epix/ChangeLog,v 1.15 2007/09/11 01:31:32 markusle Exp $
+
+ 11 Sep 2007; Markus Dittrich <markusle@gentoo.org> epix-1.1.15.ebuild:
+ Added emacs support (see bug #182056). Thanks much to
+ <opfer@gentoo.org> for his patch.
*epix-1.1.15 (09 Sep 2007)
diff --git a/sci-visualization/epix/epix-1.1.15.ebuild b/sci-visualization/epix/epix-1.1.15.ebuild
index 127829e6d115..782b9d59a30b 100644
--- a/sci-visualization/epix/epix-1.1.15.ebuild
+++ b/sci-visualization/epix/epix-1.1.15.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-visualization/epix/epix-1.1.15.ebuild,v 1.1 2007/09/09 14:09:50 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-visualization/epix/epix-1.1.15.ebuild,v 1.2 2007/09/11 01:31:32 markusle Exp $
-inherit toolchain-funcs flag-o-matic
+inherit elisp-common flag-o-matic toolchain-funcs
DESCRIPTION="2- and 3-D plotter for creating images (to be used in LaTeX)"
HOMEPAGE="http://mathcs.holycross.edu/~ahwang/current/ePiX.html"
@@ -11,9 +11,11 @@ LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE=""
+IUSE="emacs"
DEPEND="virtual/tetex"
+RDEPEND="emacs? ( virtual/emacs )"
+SITEFILE=50${PN}-gentoo.el
src_unpack() {
unpack ${A}
@@ -24,5 +26,20 @@ src_unpack() {
}
src_install() {
- make DESTDIR="${D}" install || die "install failed"
+ 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
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
}