summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-07-31 12:07:37 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-07-31 12:07:37 +0000
commitefcc1a9491e4522c95b2a8d3b008dba90362873c (patch)
tree17797e70f832a8314254576cb4f9c26e3e65b08e /sci-mathematics/pspp
parentAdd 1.0.20070621 and remove nvidia-legacy-drivers from deps. (diff)
downloadgentoo-2-efcc1a9491e4522c95b2a8d3b008dba90362873c.tar.gz
gentoo-2-efcc1a9491e4522c95b2a8d3b008dba90362873c.tar.bz2
gentoo-2-efcc1a9491e4522c95b2a8d3b008dba90362873c.zip
Added patch emacs support, thanks to Christian Faulhammer <opfer@gentoo.org>. Closing bug #187212
(Portage version: 2.1.2.9)
Diffstat (limited to 'sci-mathematics/pspp')
-rw-r--r--sci-mathematics/pspp/ChangeLog7
-rw-r--r--sci-mathematics/pspp/files/50pspp-gentoo.el5
-rw-r--r--sci-mathematics/pspp/pspp-0.4.0.ebuild14
3 files changed, 22 insertions, 4 deletions
diff --git a/sci-mathematics/pspp/ChangeLog b/sci-mathematics/pspp/ChangeLog
index d344c4d1ab93..7077a8a61811 100644
--- a/sci-mathematics/pspp/ChangeLog
+++ b/sci-mathematics/pspp/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-mathematics/pspp
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pspp/ChangeLog,v 1.2 2007/03/21 12:48:39 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pspp/ChangeLog,v 1.3 2007/07/31 12:07:37 bicatali Exp $
+
+ 31 Jul 2007; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/50pspp-gentoo.el, pspp-0.4.0.ebuild:
+ Added patch emacs support, thanks to Christian Faulhammer
+ <opfer@gentoo.org>. Closing bug #187212
20 Mar 2007; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml:
herd sci -> sci-mathematics
diff --git a/sci-mathematics/pspp/files/50pspp-gentoo.el b/sci-mathematics/pspp/files/50pspp-gentoo.el
new file mode 100644
index 000000000000..2f5034cb3d27
--- /dev/null
+++ b/sci-mathematics/pspp/files/50pspp-gentoo.el
@@ -0,0 +1,5 @@
+
+; pspp site-initialisation
+
+(add-to-list 'load-path "@SITELISP@")
+(add-to-list 'auto-mode-alist '("\\.sps\\'" . pspp-mode))
diff --git a/sci-mathematics/pspp/pspp-0.4.0.ebuild b/sci-mathematics/pspp/pspp-0.4.0.ebuild
index 912459603f2d..790a3de2341a 100644
--- a/sci-mathematics/pspp/pspp-0.4.0.ebuild
+++ b/sci-mathematics/pspp/pspp-0.4.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pspp/pspp-0.4.0.ebuild,v 1.2 2007/07/13 05:28:09 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pspp/pspp-0.4.0.ebuild,v 1.3 2007/07/31 12:07:37 bicatali Exp $
inherit elisp-common
@@ -17,10 +17,12 @@ DEPEND=">=sci-libs/gsl-1.6
>=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 @@ src_compile() {
if use doc; then
emake html || die "emake html failed"
fi
+
+ use emacs && elisp-compile *.el
+
}
src_install() {
@@ -42,7 +47,10 @@ src_install() {
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 () {