summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2008-01-29 16:50:39 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2008-01-29 16:50:39 +0000
commitb1e4289cb552c21abb7a848a474e5e5d16c9b0f0 (patch)
treeefef59c7af7a599b9169be1e83c2e8deda2ad0dc /sci-mathematics
parentVersion bump. Thanks much to Andrey Grozin <A.G.Grozin@inp.nsk.su> for taking... (diff)
downloadhistorical-b1e4289cb552c21abb7a848a474e5e5d16c9b0f0.tar.gz
historical-b1e4289cb552c21abb7a848a474e5e5d16c9b0f0.tar.bz2
historical-b1e4289cb552c21abb7a848a474e5e5d16c9b0f0.zip
Version bump. Now supports again multiple lisp simultaneously. Thanks much to Andrey Grozin <A.G.Grozin@inp.nsk.su> to update the ebuild and maintain it in the science overlay.
Package-Manager: portage-2.1.4
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/maxima/ChangeLog10
-rw-r--r--sci-mathematics/maxima/files/digest-maxima-5.14.03
-rw-r--r--sci-mathematics/maxima/files/maxima-5.14.0-xdg-utils.patch31
-rw-r--r--sci-mathematics/maxima/maxima-5.13.0-r1.ebuild6
-rw-r--r--sci-mathematics/maxima/maxima-5.14.0.ebuild216
5 files changed, 262 insertions, 4 deletions
diff --git a/sci-mathematics/maxima/ChangeLog b/sci-mathematics/maxima/ChangeLog
index f524a32e9e52..7812f8cb349d 100644
--- a/sci-mathematics/maxima/ChangeLog
+++ b/sci-mathematics/maxima/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sci-mathematics/maxima
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.46 2008/01/08 01:23:19 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/ChangeLog,v 1.47 2008/01/29 16:50:38 bicatali Exp $
+
+*maxima-5.14.0 (29 Jan 2008)
+
+ 29 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ +files/maxima-5.14.0-xdg-utils.patch, +maxima-5.14.0.ebuild:
+ Version bump. Now supports again multiple lisp simultaneously.
+ Thanks much to Andrey Grozin <A.G.Grozin@inp.nsk.su> to
+ update the ebuild and maintain it in the science overlay.
08 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org>
-files/maxima-emacs.patch, -maxima-5.9.1.ebuild, maxima-5.13.0-r1.ebuild:
diff --git a/sci-mathematics/maxima/files/digest-maxima-5.14.0 b/sci-mathematics/maxima/files/digest-maxima-5.14.0
new file mode 100644
index 000000000000..2a408e30501e
--- /dev/null
+++ b/sci-mathematics/maxima/files/digest-maxima-5.14.0
@@ -0,0 +1,3 @@
+MD5 8afd0efee916c983d875a396ec405ad2 maxima-5.14.0.tar.gz 19349615
+RMD160 237f0b103b04f5b663c86a4fcbf2f8c618da45ef maxima-5.14.0.tar.gz 19349615
+SHA256 0fd0d7af675bafd9ffb31566e837061da47b07fd83e7fe978ac5ce79b2a307a8 maxima-5.14.0.tar.gz 19349615
diff --git a/sci-mathematics/maxima/files/maxima-5.14.0-xdg-utils.patch b/sci-mathematics/maxima/files/maxima-5.14.0-xdg-utils.patch
new file mode 100644
index 000000000000..318d60812deb
--- /dev/null
+++ b/sci-mathematics/maxima/files/maxima-5.14.0-xdg-utils.patch
@@ -0,0 +1,31 @@
+diff -U2 --recursive maxima-5.14.0.orig/interfaces/emacs/misc/bookmode.el maxima-5.14.0/interfaces/emacs/misc/bookmode.el
+--- maxima-5.14.0.orig/interfaces/emacs/misc/bookmode.el 2000-05-08 13:09:44.000000000 +0700
++++ maxima-5.14.0/interfaces/emacs/misc/bookmode.el 2008-01-07 22:47:57.000000000 +0600
+@@ -681,5 +681,5 @@
+ (and tem
+ (list (concat "View "(nth 1 tem))
+- 'call-process "ghostview" nil nil nil
++ 'call-process "xdg-open" nil nil nil
+ (expand-file-name(nth 1 tem))
+ ))
+@@ -706,5 +706,5 @@
+ (cond ((looking-at "%PS") "")
+ (t "gzip -dc | "))
+- "ghostview -")
++ "xdg-open -")
+
+ )))
+diff -U2 --recursive maxima-5.14.0.orig/interfaces/xmaxima/Tkmaxima/Constants.tcl maxima-5.14.0/interfaces/xmaxima/Tkmaxima/Constants.tcl
+--- maxima-5.14.0.orig/interfaces/xmaxima/Tkmaxima/Constants.tcl 2006-10-02 05:42:48.000000000 +0700
++++ maxima-5.14.0/interfaces/xmaxima/Tkmaxima/Constants.tcl 2008-01-07 22:49:43.000000000 +0600
+@@ -144,7 +144,7 @@
+ image/png netmath
+ image/jpeg netmath
+- application/postscript "ghostview -safer %s"
+- application/pdf "acroread %s"
+- application/x-dvi "xdvi %s"
++ application/postscript "xdg-open -safer %s"
++ application/pdf "xdg-open %s"
++ application/x-dvi "xdg-open %s"
+ }
+ set maxima_priv(imagecounter) 0
diff --git a/sci-mathematics/maxima/maxima-5.13.0-r1.ebuild b/sci-mathematics/maxima/maxima-5.13.0-r1.ebuild
index c987cf4f88fc..2dabc398249c 100644
--- a/sci-mathematics/maxima/maxima-5.13.0-r1.ebuild
+++ b/sci-mathematics/maxima/maxima-5.13.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0-r1.ebuild,v 1.9 2008/01/08 01:23:19 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.13.0-r1.ebuild,v 1.10 2008/01/29 16:50:38 bicatali Exp $
inherit eutils elisp-common
@@ -22,14 +22,14 @@ RDEPEND=">=sci-visualization/gnuplot-4.0
app-text/ptex ) )
emacs? ( virtual/emacs
latex? ( || ( app-emacs/auctex app-xemacs/auctex ) ) )
- sbcl? ( dev-lisp/sbcl app-misc/rlwrap )
+ sbcl? ( <dev-lisp/sbcl-1.0.12 app-misc/rlwrap )
!sbcl? (
clisp? ( dev-lisp/clisp )
!clisp? (
cmucl? ( >=dev-lisp/cmucl-19a app-misc/rlwrap )
!cmucl? (
gcl? ( dev-lisp/gcl )
- !gcl? ( dev-lisp/sbcl app-misc/rlwrap )
+ !gcl? ( <dev-lisp/sbcl-1.0.12 app-misc/rlwrap )
)
)
)
diff --git a/sci-mathematics/maxima/maxima-5.14.0.ebuild b/sci-mathematics/maxima/maxima-5.14.0.ebuild
new file mode 100644
index 000000000000..3f42a0b7744e
--- /dev/null
+++ b/sci-mathematics/maxima/maxima-5.14.0.ebuild
@@ -0,0 +1,216 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/maxima/maxima-5.14.0.ebuild,v 1.1 2008/01/29 16:50:38 bicatali Exp $
+inherit eutils elisp-common
+
+DESCRIPTION="Free computer algebra environment based on Macsyma"
+HOMEPAGE="http://maxima.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 AECA"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+# Supported lisps with readline
+SUPP_RL="gcl clisp"
+# Supported lisps without readline
+SUPP_NORL="cmucl sbcl"
+SUPP_LISPS="${SUPP_RL} ${SUPP_NORL}"
+# Default lisp if none selected
+DEF_LISP="sbcl"
+
+IUSE="latex emacs tk nls unicode X ${SUPP_LISPS} ${IUSE}"
+
+# Languages
+LANGS="es pt pt_BR"
+for lang in ${LANGS}; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+# tetex>=3, so no use of virtual/latex-base (bug #203558)
+RDEPEND="X? ( x11-misc/xdg-utils
+ sci-visualization/gnuplot
+ tk? ( dev-lang/tk ) )
+ latex? ( || ( dev-texlive/texlive-latexrecommended
+ >=app-text/tetex-3
+ app-text/ptex ) )
+ emacs? ( virtual/emacs latex? ( app-emacs/auctex ) )
+ xemacs? ( virtual/xemacs latex? ( app-xemacs/auctex ) )"
+
+# create lisp dependencies
+for LISP in ${SUPP_LISPS}; do
+ RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP} )"
+ DEF_DEP="${DEF_DEP} !${LISP}? ( "
+done
+for LISP in ${SUPP_NORL}; do
+ RDEPEND="${RDEPEND} ${LISP}? ( app-misc/rlwrap )"
+ [[ ${LISP} = ${DEF_LISP} ]] && \
+ DEF_DEP="${DEF_DEP} app-misc/rlwrap"
+done
+for LISP in ${SUPP_LISPS}; do
+ DEF_DEP="${DEF_DEP} )"
+done
+
+# nasty hack for sbcl while bug #203748 is not fixed
+RDEPEND="${RDEPEND//dev-lisp\/sbcl/<dev-lisp/sbcl-1.0.12}"
+
+RDEPEND="${RDEPEND}
+ ${DEF_DEP}"
+
+DEPEND="${RDEPEND}
+ sys-apps/texinfo"
+
+pkg_setup() {
+ LISPS=""
+
+ for LISP in ${SUPP_LISPS}; do
+ use ${LISP} && LISPS="${LISPS} ${LISP}"
+ done
+
+ if [ -z "${LISPS}" ]; then
+ ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default"
+ LISPS="${DEF_LISP}"
+ fi
+
+ RL=""
+
+ for LISP in ${SUPP_NORL}; do
+ use ${LISP} && RL="yes"
+ done
+
+ if use gcl; then
+ if ! built_with_use dev-lisp/gcl ansi; then
+ eerror "gcl must be emerged with the USE flag ansi"
+ die "This package needs gcl with USE=ansi"
+ fi
+ fi
+
+ # Calculating MAXIMA_TEXMFDIR
+ if use latex; then
+ local TEXMFPATH="$(kpsewhich -var-value=TEXMFSITE)"
+ local TEXMFCONFIGFILE="$(kpsewhich texmf.cnf)"
+
+ if [ -z "${TEXMFPATH}" ]; then
+ eerror "You haven't defined the TEXMFSITE variable in your TeX config."
+ eerror "Please do so in the file ${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf}"
+ die "Define TEXMFSITE in TeX configuration!"
+ else
+ # go through the colon separated list of directories
+ # (maybe only one) provided in the variable
+ # TEXMFPATH (generated from TEXMFSITE from TeX's config)
+ # and choose only the first entry.
+ # All entries are separated by colons, even when defined
+ # with semi-colons, kpsewhich changes
+ # the output to a generic format, so IFS has to be redefined.
+ local IFS="${IFS}:"
+
+ for strippedpath in ${TEXMFPATH}; do
+ if [ -d ${strippedpath} ]; then
+ MAXIMA_TEXMFDIR="${strippedpath}"
+ break
+ fi
+ done
+
+ # verify if an existing path was chosen to prevent from
+ # installing into the wrong directory
+ if [ -z ${MAXIMA_TEXMFDIR} ]; then
+ eerror "TEXMFSITE does not contain any existing directory."
+ eerror "Please define an existing directory in your TeX config file"
+ eerror "${TEXMFCONFIGFILE:-/var/lib/texmf/web2c/texmf.cnf} or create at least one of the there specified directories"
+ die "TEXMFSITE variable did not contain an existing directory"
+ fi
+ fi
+ fi
+
+ if use X && ! built_with_use sci-visualization/gnuplot gd; then
+ elog "To benefit full plotting capability of maxima,"
+ elog "enable the gd USE flag for sci-visualization/gnuplot"
+ elog "Then re-emerge maxima"
+ epause 5
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ # use xdg-open to view ps, pdf
+ epatch "${FILESDIR}"/${P}-xdg-utils.patch
+ # remove rmaxima if neither cmucl nor sbcl
+ if [ -z "${RL}" ]; then
+ sed -i \
+ -e '/^@WIN32_FALSE@bin_SCRIPTS/s/rmaxima//' \
+ "${S}"/src/Makefile.in \
+ || die "sed for rmaxima failed"
+ fi
+}
+
+src_compile() {
+ local myconf=""
+ for LISP in ${LISPS}; do
+ myconf="${myconf} --enable-${LISP}"
+ done
+
+ # remove xmaxima if no tk
+ if use tk; then
+ myconf="${myconf} --with-wish=wish"
+ else
+ myconf="${myconf} --with-wish=none"
+ sed -i \
+ -e '/^SUBDIRS/s/xmaxima//' \
+ interfaces/Makefile.in || die "sed for tk failed"
+ fi
+
+ # enable existing translated doc
+ if use nls; then
+ for lang in ${LANGS}; do
+ if use "linguas_${lang}"; then
+ myconf="${myconf} --enable-lang-${lang}"
+ use unicode && myconf="${myconf} --enable-lang-${lang}-utf8"
+ fi
+ done
+ fi
+
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall emacsdir="${D}${SITELISP}/${PN}" || die "einstall failed"
+
+ use tk && make_desktop_entry xmaxima xmaxima \
+ /usr/share/${PN}/${PV}/xmaxima/maxima-new.png \
+ "Science;Math;Education"
+
+ use emacs && \
+ elisp-site-file-install "${FILESDIR}"/50maxima-gentoo.el
+
+ if use latex; then
+ insinto "${MAXIMA_TEXMFDIR}"/tex/latex/emaxima
+ doins interfaces/emacs/emaxima/emaxima.sty
+ fi
+
+ # do not use dodoc because interfaces can't read compressed files
+ # read COPYING before attempt to remove it
+ insinto /usr/share/${PN}/${PV}/doc
+ doins AUTHORS COPYING README README.lisps || die
+ dodir /usr/share/doc
+ dosym /usr/share/${PN}/${PV}/doc /usr/share/doc/${PF}
+}
+
+pkg_preinst() {
+ # some lisps do not read compress info files (bug #176411)
+ for infofile in "${D}"/usr/share/info/*.bz2 ; do
+ bunzip2 "${infofile}"
+ done
+ for infofile in "${D}"/usr/share/info/*.gz ; do
+ gunzip "${infofile}"
+ done
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ use latex && mktexlsr
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}