summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2007-09-25 12:26:51 +0000
committerMarkus Dittrich <markusle@gentoo.org>2007-09-25 12:26:51 +0000
commitd7dc7cd8e0184ab90db2d7d8242f4e1d632038ee (patch)
tree9393d080624366aaa5a8113f9c15f334a54d9cab /sci-mathematics
parentwpa_supplicant requires libs from /usr so it's moving back. Symlinks are in p... (diff)
downloadgentoo-2-d7dc7cd8e0184ab90db2d7d8242f4e1d632038ee.tar.gz
gentoo-2-d7dc7cd8e0184ab90db2d7d8242f4e1d632038ee.tar.bz2
gentoo-2-d7dc7cd8e0184ab90db2d7d8242f4e1d632038ee.zip
Added proper emacs support (see bug #193411).
(Portage version: 2.1.3.9)
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/singular/ChangeLog7
-rw-r--r--sci-mathematics/singular/files/60singular-gentoo.el10
-rw-r--r--sci-mathematics/singular/singular-3.0.3.ebuild41
3 files changed, 45 insertions, 13 deletions
diff --git a/sci-mathematics/singular/ChangeLog b/sci-mathematics/singular/ChangeLog
index 1b975ccd9c3c..83af77bd4157 100644
--- a/sci-mathematics/singular/ChangeLog
+++ b/sci-mathematics/singular/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-mathematics/singular
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.18 2007/08/08 13:50:04 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.19 2007/09/25 12:26:50 markusle Exp $
+
+ 24 Sep 2007; Markus Dittrich <markusle@gentoo.org>
+ +files/60singular-gentoo.el, singular-3.0.3.ebuild:
+ Added proper emacs support (see bug #193411). Thanks much to
+ Christian Faulhammer <opfer@gentoo.org> for his patches.
08 Aug 2007; Markus Dittrich <markusle@gentoo.org> singular-3.0.3.ebuild:
Disabled building of MP for now since configure fails on amd64
diff --git a/sci-mathematics/singular/files/60singular-gentoo.el b/sci-mathematics/singular/files/60singular-gentoo.el
new file mode 100644
index 000000000000..7be8c08ef7e9
--- /dev/null
+++ b/sci-mathematics/singular/files/60singular-gentoo.el
@@ -0,0 +1,10 @@
+
+;; site-file for sci-mathematics/singular
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'singular "singular"
+ "Start Singular using default values." t)
+(autoload 'singular-other "singular"
+ "Ask for arguments and start Singular." t)
+
+(add-to-list 'auto-mode-alist '("\\.sing\\'" . c++-mode))
diff --git a/sci-mathematics/singular/singular-3.0.3.ebuild b/sci-mathematics/singular/singular-3.0.3.ebuild
index 538d96847f23..fe58e927565f 100644
--- a/sci-mathematics/singular/singular-3.0.3.ebuild
+++ b/sci-mathematics/singular/singular-3.0.3.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-mathematics/singular/singular-3.0.3.ebuild,v 1.2 2007/08/08 13:50:04 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.0.3.ebuild,v 1.3 2007/09/25 12:26:50 markusle Exp $
-inherit eutils flag-o-matic autotools multilib
+inherit eutils elisp-common flag-o-matic autotools multilib
PV_MAJOR=${PV%.*}
MY_PV=${PV//./-}
@@ -21,11 +21,11 @@ IUSE="doc emacs boost"
DEPEND=">=dev-lang/perl-5.6
>=dev-libs/gmp-4.1-r1
- emacs? ( || ( virtual/xemacs
- virtual/emacs ) )
+ emacs? ( virtual/emacs )
boost? ( dev-libs/boost )"
S="${WORKDIR}"/${MY_PN}-${MY_PV}
+SITEFILE=60${PN}-gentoo.el
src_unpack () {
unpack ${A}
@@ -54,6 +54,11 @@ src_compile() {
econf $(use_enable emacs) \
${myconf} || die "econf failed"
emake -j1 || die "make failed"
+
+ if use emacs; then
+ cd "${WORKDIR}"/${MY_PN}/${MY_PV}/emacs/
+ elisp-compile *.el || die "elisp-compile failed"
+ fi
}
src_install () {
@@ -76,10 +81,6 @@ src_install () {
dobin ${MY_PN}* gen_test change_cost solve_IP \
toric_ideal LLL || die "failed to install binaries"
- if use emacs; then
- dobin E${MY_PN} || die "failed to install ESingular"
- fi
-
# install libraries
insinto /usr/$(get_libdir)/${PN}
doins *.so || die "failed to install libraries"
@@ -102,15 +103,31 @@ src_install () {
die "failed to install info files"
fi
- # install emacs specific stuff
+ # install emacs specific stuff here, as we did a directory change
+ # some lines above!
if use emacs; then
- insinto /usr/share/${PN}/emacs
- doins emacs/* && doins emacs/.emacs* || \
- die "failed to set up emacs files"
+ elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* || \
+ die "elisp-install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
}
pkg_postinst() {
einfo "The authors ask you to register as a SINGULAR user."
einfo "Please check the license file for details."
+
+ if use emacs; then
+ echo
+ ewarn "Please note that the ESingular emacs wrapper has been"
+ ewarn "removed in favor of full fledged singular support within"
+ ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
+ ewarn "and you should be good to go! See bug #193411 for more info."
+ echo
+ fi
+
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
}