diff options
author | Markus Dittrich <markusle@gentoo.org> | 2007-09-22 12:44:21 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2007-09-22 12:44:21 +0000 |
commit | ab247b7c1f9391273923e13da3a967774fe121a7 (patch) | |
tree | 10c78c2a64bac7c8806beaf83e3722babb19ef8b /sci-mathematics/pari | |
parent | Stable on ppc wrt bug 190796 (diff) | |
download | gentoo-2-ab247b7c1f9391273923e13da3a967774fe121a7.tar.gz gentoo-2-ab247b7c1f9391273923e13da3a967774fe121a7.tar.bz2 gentoo-2-ab247b7c1f9391273923e13da3a967774fe121a7.zip |
Fixed pari's emacs support (see bug #193378).
(Portage version: 2.1.3.9)
Diffstat (limited to 'sci-mathematics/pari')
-rw-r--r-- | sci-mathematics/pari/ChangeLog | 7 | ||||
-rw-r--r-- | sci-mathematics/pari/files/50pari-gentoo.el | 10 | ||||
-rw-r--r-- | sci-mathematics/pari/pari-2.3.2.ebuild | 33 |
3 files changed, 40 insertions, 10 deletions
diff --git a/sci-mathematics/pari/ChangeLog b/sci-mathematics/pari/ChangeLog index ab7c619e78ba..44e11ac5fe40 100644 --- a/sci-mathematics/pari/ChangeLog +++ b/sci-mathematics/pari/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-mathematics/pari # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.44 2007/09/15 12:38:36 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/ChangeLog,v 1.45 2007/09/22 12:44:21 markusle Exp $ + + 22 Sep 2007; Markus Dittrich <markusle@gentoo.org> + +files/50pari-gentoo.el, pari-2.3.2.ebuild: + Fixed pari's emacs support (see bug #193378). Thanks much to + Christian Faulhammer <opfer@gentoo.org> for his patches. 15 Sep 2007; Markus Dittrich <markusle@gentoo.org> pari-2.3.2.ebuild: Added fix to allow test routines to pass on sparc (see bug #141206). diff --git a/sci-mathematics/pari/files/50pari-gentoo.el b/sci-mathematics/pari/files/50pari-gentoo.el new file mode 100644 index 000000000000..2f5b4da9084e --- /dev/null +++ b/sci-mathematics/pari/files/50pari-gentoo.el @@ -0,0 +1,10 @@ + +;; site-init for sci-mathematics/pari + +(add-to-list 'load-path "@SITELISP@") + +(autoload 'gp-mode "pari" nil t) +(autoload 'gp-script-mode "pari" nil t) +(autoload 'gp "pari" nil t) +(autoload 'gpman "pari" nil t) +(add-to-list 'auto-mode-alist '("\\.gp$" . gp-script-mode)) diff --git a/sci-mathematics/pari/pari-2.3.2.ebuild b/sci-mathematics/pari/pari-2.3.2.ebuild index 9f889e9f99f1..bef9370d8ed8 100644 --- a/sci-mathematics/pari/pari-2.3.2.ebuild +++ b/sci-mathematics/pari/pari-2.3.2.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.2.ebuild,v 1.3 2007/09/15 12:38:36 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.2.ebuild,v 1.4 2007/09/22 12:44:21 markusle Exp $ -inherit eutils toolchain-funcs flag-o-matic +inherit elisp-common eutils flag-o-matic multilib toolchain-funcs -DESCRIPTION="pari (or pari-gp) : a software package for computer-aided number theory" +DESCRIPTION="A software package for computer-aided number theory" HOMEPAGE="http://pari.math.u-bordeaux.fr/" SRC_URI="http://pari.math.u-bordeaux.fr/pub/pari/unix/${P}.tar.gz" @@ -15,7 +15,9 @@ IUSE="doc emacs X" DEPEND="doc? ( virtual/tetex ) sys-libs/readline - X? ( x11-libs/libX11 )" + X? ( x11-libs/libX11 ) + emacs? ( virtual/emacs )" +SITEFILE=50${PN}-gentoo.el src_unpack() { unpack ${A} @@ -66,6 +68,11 @@ src_compile() { cd "${S}" emake docpdf || die "Failed to generate docs" fi + + if use emacs; then + cd "${S}/emacs" + elisp-comp *.el || die "elisp-comp failed" + fi } src_test() { @@ -76,23 +83,31 @@ src_test() { } src_install() { - make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install || \ + emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || \ die "Install failed" if use emacs; then - insinto /usr/share/emacs/site-lisp - doins emacs/pari.el + elisp-install ${PN} emacs/*.el emacs/*.elc || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" fi dodoc AUTHORS Announce.2.1 CHANGES README TODO NEW if use doc; then - make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install-doc \ + emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install-doc \ || die "Failed to install docs" insinto /usr/share/doc/${PF} doins doc/*.pdf || die "Failed to install pdf docs" fi #remove superfluous doc directory - rm -fr ${D}/usr/share/${P}/doc || \ + rm -fr "${D}/usr/share/${P}/doc" || \ die "Failed to clean up doc directory" } + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |