summaryrefslogtreecommitdiff
path: root/sci-mathematics/fricas
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/fricas
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/fricas')
-rw-r--r--sci-mathematics/fricas/Manifest10
-rw-r--r--sci-mathematics/fricas/files/64fricas-gentoo.el2
-rw-r--r--sci-mathematics/fricas/fricas-1.3.0-r1.ebuild101
-rw-r--r--sci-mathematics/fricas/fricas-1.3.1.ebuild101
-rw-r--r--sci-mathematics/fricas/fricas-1.3.2.ebuild101
-rw-r--r--sci-mathematics/fricas/metadata.xml32
6 files changed, 347 insertions, 0 deletions
diff --git a/sci-mathematics/fricas/Manifest b/sci-mathematics/fricas/Manifest
new file mode 100644
index 000000000000..88a5a9c6c842
--- /dev/null
+++ b/sci-mathematics/fricas/Manifest
@@ -0,0 +1,10 @@
+AUX 64fricas-gentoo.el 101 SHA256 b41c5e5323b2e2f38f04856fdff293c110bbc6016cab84f7af29772ef3366b2a SHA512 be36ef5bfb525aa054cd3881ece83d47ee3a9cb7ef1b0c26215d449ddcad8f9f57045b29ab9063a62f43caa764abb251e5fcd04cf1d15bcc423e40d9e69239ef WHIRLPOOL 8c45eb3935184310180ba2f03bc3c182d57d373063daa8094d3737d82828e50d87222a17f2a880450b9aeec6d0be2763b0f0cdc5dfab26fb01d92a2833ece505
+DIST fricas-1.3.0-full.tar.bz2 10459788 SHA256 d4ceb6bcf4049196130d463dc7442dd206fd9cde0634f3e2f70add2e2c774f03 SHA512 fd084c3d3ada76424b0159eff76660872da63c1e25f392d98bc7175b37c05fe23a117587addc89828ff38a368f5161d34febcc269f530710ff7da6b53860653f WHIRLPOOL c334c42ee83f676ce9640870e4ddf42a2a3c034570c173ec633c6eecf45d3e2d14f9e6e9fa4240d4f090fa0b1ddfaa3e4b117d530dc6f3c9d70a9b1a399cd188
+DIST fricas-1.3.1-full.tar.bz2 10522387 SHA256 7d4a768aed086aefa332930787dbc1be810aeded9385ae2b7205d6c1827c5c30 SHA512 d492686fc03ed704cc015ec0ba250ab7928b637ff6ef8cf1aa924190e7fe22bd63a512074439dbf7ce44dce786d51ad5e27857522a1e21136b4b8d6cf014c486 WHIRLPOOL 143c7ef847292ac37ae9f1322ec4d93e3879e0fc9b602d727b870c808569aa2dc6c4f76e0f1880ec3bb2915e713fa773c1e936be2b9059b73e7d5786efeef297
+DIST fricas-1.3.2-full.tar.bz2 10523665 SHA256 798b123e61f3566e6b1b367c235f5b4599a9c737b938aa71f32d0aabb7db439d SHA512 679dffbe8a991d4ae3d6667a6163337ffa24d48b9d1d776ba1a39569cb3b9f17e8d484075746b75b7eb6bbe5b9d26af3e526850a19118274988b9e88ad52a679 WHIRLPOOL 2ce62a2917a6378d75e844ba0b63d1386552698181892ad9f1d519019c89525c20b19b6ea6a7e9f93b656529c7bd4f1f2f2c6a7f571fec1e2713a4faa0d3e41b
+EBUILD fricas-1.3.0-r1.ebuild 2321 SHA256 f2fe4931cddfc9dfbfd072298c0a4dd448c010b494c58fd280523c7f46a5ef1b SHA512 c4cfd4e382a0bca917619e15ce3eaca011acaf91d724b9ee882ed02e41a3ab7df0f221d2ebe84d79bd48c80b4d108c5affa0ad93c57d714734c1ed2a703344b3 WHIRLPOOL bf9540a0b0a7c7094c1089a6851c709387cfb5ff355ca1d02e093b03004b88d9e86383abfcc5eb0faf621ece981d921ce7a51232fd445eae36f1a6f9d62f3f25
+EBUILD fricas-1.3.1.ebuild 2274 SHA256 f761b0e8664ad97fc0ca588effa670fcf79b761465673d9b3a4130b4d87e493c SHA512 488e3b29f0920821c248c49e5019f4f1880fe66842fc74f8c0a8453a2b7a157892bedb75814655f70d42d42cc70c0b2b02d2c0f3acd3f31b2e0b34c5c02d400c WHIRLPOOL ec79f4835c41d02a97c8c7318e500480c5bada1447c76d682bd3355bc53c96b93b8b8d3bd2484a622afa98da4819080d7f3874400bc9ee8a2067846fb3e01f08
+EBUILD fricas-1.3.2.ebuild 2274 SHA256 f761b0e8664ad97fc0ca588effa670fcf79b761465673d9b3a4130b4d87e493c SHA512 488e3b29f0920821c248c49e5019f4f1880fe66842fc74f8c0a8453a2b7a157892bedb75814655f70d42d42cc70c0b2b02d2c0f3acd3f31b2e0b34c5c02d400c WHIRLPOOL ec79f4835c41d02a97c8c7318e500480c5bada1447c76d682bd3355bc53c96b93b8b8d3bd2484a622afa98da4819080d7f3874400bc9ee8a2067846fb3e01f08
+MISC ChangeLog 4059 SHA256 ec88ec0d1da7bf544568a5117d742e7a8d74ae9f6abaeb803c87008d2039dda5 SHA512 90304bb771aaf25f98749b0f2b3ad1d4cfa6d8636aedf6d3c875bf8e71c455bb5db75549240b4559b15d3b5f0e1797b773406dabdb2d773bdd77c39439eb77a4 WHIRLPOOL 07b09517af6356340c05b9724fcb34b11394e22b553a569c94ed532a281cde5e409b1ef2fb748fafa080c0867139908edb3f1e64188e8f35ec60e8e35dca6eb0
+MISC ChangeLog-2015 3964 SHA256 37464809b9c1a47c32500cbffc884678bce740a23e305ecf4604036d27482b2d SHA512 39d814ac321d96a8066d782dca3d94bb973625b524ddab4e60eaa7d5a96bce2bf3ad2fdde1cd5697192046c4ef5fcb4784c10a07e8ff3ba972c55d57d55455b4 WHIRLPOOL 7fe6a3ecfdb04668f3ebfe0828e61b37178dac0ae0c69f14e232821aa27511ac4058ea8167dfcc872015bec9abd986bc621e2d73e005c972b5567fa29c2c3254
+MISC metadata.xml 1161 SHA256 91db17143c83c3ed286a401f1f6353cb16f8cb33aa1428d08fc532733f807d2b SHA512 c0555d42cc2d50498b1fa4bbf0fd658332f6ad79aaf0ab207ded28f7463401c901b67f53a1274794db2c0927806501493f99277f5325d52ccfacf5e522cfdfc5 WHIRLPOOL 38d387cee9fc1ab0427d5ea06837e091c709446d1aa7295672ccec43c5d904e93942767a3f0365b541d4cd6302916c691a7c930ae1ab0aaa5084b506d62c6ebc
diff --git a/sci-mathematics/fricas/files/64fricas-gentoo.el b/sci-mathematics/fricas/files/64fricas-gentoo.el
new file mode 100644
index 000000000000..bc610ea83925
--- /dev/null
+++ b/sci-mathematics/fricas/files/64fricas-gentoo.el
@@ -0,0 +1,2 @@
+;; site-init for sci-mathematics/fricas
+(add-to-list 'load-path "/usr/share/emacs/site-lisp/fricas")
diff --git a/sci-mathematics/fricas/fricas-1.3.0-r1.ebuild b/sci-mathematics/fricas/fricas-1.3.0-r1.ebuild
new file mode 100644
index 000000000000..10e11cd67e79
--- /dev/null
+++ b/sci-mathematics/fricas/fricas-1.3.0-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit multilib elisp-common
+
+DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
+HOMEPAGE="http://${PN}.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.bz2"
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Supported lisps, number 0 is the default
+LISPS=( sbcl cmucl gcl ecls clisp clozurecl )
+# Version restrictions, . means no restrictions
+REST=( ">=dev-lisp/sbcl-1.3.6:= <dev-lisp/sbcl-1.3.13" . . . . . )
+# command name: . means just ${LISP}
+COMS=( . lisp . ecl . ccl )
+
+IUSE="${LISPS[*]} X emacs gmp"
+RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE )
+ emacs? ( virtual/emacs )
+ gmp? ( dev-libs/gmp:= )"
+
+# Generating lisp deps
+n=${#LISPS[*]}
+for ((n--; n > 0; n--)); do
+ LISP=${LISPS[$n]}
+ if [ "${REST[$n]}" = "." ]; then
+ DEP="dev-lisp/${LISP}"
+ else
+ DEP="${REST[$n]}"
+ fi
+ RDEPEND="${RDEPEND} ${LISP}? ( ${DEP}:= ) !${LISP}? ("
+done
+if [ "${REST[0]}" = "." ]; then
+ DEP="dev-lisp/${LISPS[0]}"
+else
+ DEP="${REST[0]}"
+fi
+RDEPEND="${RDEPEND} ${DEP}:="
+n=${#LISPS[*]}
+for ((n--; n > 0; n--)); do
+ RDEPEND="${RDEPEND} )"
+done
+
+DEPEND="${RDEPEND}"
+
+# necessary for clisp and gcl
+RESTRICT="strip"
+
+src_configure() {
+ local LISP n
+ LISP=sbcl
+ n=${#LISPS[*]}
+ for ((n--; n > 0; n--)); do
+ if use ${LISPS[$n]}; then
+ LISP=${COMS[$n]}
+ if [ "${LISP}" = "." ]; then
+ LISP=${LISPS[$n]}
+ fi
+ fi
+ done
+ einfo "Using lisp: ${LISP}"
+
+ # aldor is not yet in portage
+ econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp)
+}
+
+src_compile() {
+ # bug #300132
+ emake -j1
+}
+
+src_test() {
+ emake -j1 all-input
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+ dodoc README FAQ
+
+ if use emacs; then
+ sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \
+ -i "${D}"/usr/bin/efricas \
+ || die "sed efricas failed"
+ elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
+ else
+ rm "${D}"/usr/bin/efricas || die "rm efricas failed"
+ fi
+ rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/fricas/fricas-1.3.1.ebuild b/sci-mathematics/fricas/fricas-1.3.1.ebuild
new file mode 100644
index 000000000000..315a133b047b
--- /dev/null
+++ b/sci-mathematics/fricas/fricas-1.3.1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit multilib elisp-common
+
+DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
+HOMEPAGE="http://${PN}.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.bz2"
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Supported lisps, number 0 is the default
+LISPS=( sbcl cmucl gcl ecls clisp clozurecl )
+# Version restrictions, . means no restrictions
+REST=( . . . . . . )
+# command name: . means just ${LISP}
+COMS=( . lisp . ecl . ccl )
+
+IUSE="${LISPS[*]} X emacs gmp"
+RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE )
+ emacs? ( virtual/emacs )
+ gmp? ( dev-libs/gmp:= )"
+
+# Generating lisp deps
+n=${#LISPS[*]}
+for ((n--; n > 0; n--)); do
+ LISP=${LISPS[$n]}
+ if [ "${REST[$n]}" = "." ]; then
+ DEP="dev-lisp/${LISP}"
+ else
+ DEP="${REST[$n]}"
+ fi
+ RDEPEND="${RDEPEND} ${LISP}? ( ${DEP}:= ) !${LISP}? ("
+done
+if [ "${REST[0]}" = "." ]; then
+ DEP="dev-lisp/${LISPS[0]}"
+else
+ DEP="${REST[0]}"
+fi
+RDEPEND="${RDEPEND} ${DEP}:="
+n=${#LISPS[*]}
+for ((n--; n > 0; n--)); do
+ RDEPEND="${RDEPEND} )"
+done
+
+DEPEND="${RDEPEND}"
+
+# necessary for clisp and gcl
+RESTRICT="strip"
+
+src_configure() {
+ local LISP n
+ LISP=sbcl
+ n=${#LISPS[*]}
+ for ((n--; n > 0; n--)); do
+ if use ${LISPS[$n]}; then
+ LISP=${COMS[$n]}
+ if [ "${LISP}" = "." ]; then
+ LISP=${LISPS[$n]}
+ fi
+ fi
+ done
+ einfo "Using lisp: ${LISP}"
+
+ # aldor is not yet in portage
+ econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp)
+}
+
+src_compile() {
+ # bug #300132
+ emake -j1
+}
+
+src_test() {
+ emake -j1 all-input
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+ dodoc README FAQ
+
+ if use emacs; then
+ sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \
+ -i "${D}"/usr/bin/efricas \
+ || die "sed efricas failed"
+ elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
+ else
+ rm "${D}"/usr/bin/efricas || die "rm efricas failed"
+ fi
+ rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/fricas/fricas-1.3.2.ebuild b/sci-mathematics/fricas/fricas-1.3.2.ebuild
new file mode 100644
index 000000000000..315a133b047b
--- /dev/null
+++ b/sci-mathematics/fricas/fricas-1.3.2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+inherit multilib elisp-common
+
+DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
+HOMEPAGE="http://${PN}.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.bz2"
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Supported lisps, number 0 is the default
+LISPS=( sbcl cmucl gcl ecls clisp clozurecl )
+# Version restrictions, . means no restrictions
+REST=( . . . . . . )
+# command name: . means just ${LISP}
+COMS=( . lisp . ecl . ccl )
+
+IUSE="${LISPS[*]} X emacs gmp"
+RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE )
+ emacs? ( virtual/emacs )
+ gmp? ( dev-libs/gmp:= )"
+
+# Generating lisp deps
+n=${#LISPS[*]}
+for ((n--; n > 0; n--)); do
+ LISP=${LISPS[$n]}
+ if [ "${REST[$n]}" = "." ]; then
+ DEP="dev-lisp/${LISP}"
+ else
+ DEP="${REST[$n]}"
+ fi
+ RDEPEND="${RDEPEND} ${LISP}? ( ${DEP}:= ) !${LISP}? ("
+done
+if [ "${REST[0]}" = "." ]; then
+ DEP="dev-lisp/${LISPS[0]}"
+else
+ DEP="${REST[0]}"
+fi
+RDEPEND="${RDEPEND} ${DEP}:="
+n=${#LISPS[*]}
+for ((n--; n > 0; n--)); do
+ RDEPEND="${RDEPEND} )"
+done
+
+DEPEND="${RDEPEND}"
+
+# necessary for clisp and gcl
+RESTRICT="strip"
+
+src_configure() {
+ local LISP n
+ LISP=sbcl
+ n=${#LISPS[*]}
+ for ((n--; n > 0; n--)); do
+ if use ${LISPS[$n]}; then
+ LISP=${COMS[$n]}
+ if [ "${LISP}" = "." ]; then
+ LISP=${LISPS[$n]}
+ fi
+ fi
+ done
+ einfo "Using lisp: ${LISP}"
+
+ # aldor is not yet in portage
+ econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp)
+}
+
+src_compile() {
+ # bug #300132
+ emake -j1
+}
+
+src_test() {
+ emake -j1 all-input
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+ dodoc README FAQ
+
+ if use emacs; then
+ sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \
+ -i "${D}"/usr/bin/efricas \
+ || die "sed efricas failed"
+ elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
+ else
+ rm "${D}"/usr/bin/efricas || die "rm efricas failed"
+ fi
+ rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/sci-mathematics/fricas/metadata.xml b/sci-mathematics/fricas/metadata.xml
new file mode 100644
index 000000000000..7e1b9cc30dcd
--- /dev/null
+++ b/sci-mathematics/fricas/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-mathematics@gentoo.org</email>
+ <name>Gentoo Mathematics Project</name>
+ </maintainer>
+ <longdescription lang="en">
+FriCAS is a fork of Axiom computer algebra system.
+</longdescription>
+ <use>
+ <flag name="clisp">Add support for GNU CLISP
+ (<pkg>dev-lisp/clisp</pkg>)</flag>
+ <flag name="cmucl">Add support for CMU Common Lisp
+ (<pkg>dev-lisp/cmucl</pkg>)</flag>
+ <flag name="gcl">Add support for GNU Common Lisp
+ (<pkg>dev-lisp/gcl</pkg>)</flag>
+ <flag name="sbcl">Add support for Steel Bank Common Lisp
+ (<pkg>dev-lisp/sbcl</pkg>)</flag>
+ <flag name="ecls">Add support for Embeddable Common Lisp
+ (<pkg>dev-lisp/ecls</pkg>)</flag>
+ <flag name="clozurecl">Add support for Clozure Common Lisp
+ (<pkg>dev-lisp/clozurecl</pkg>)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">fricas</remote-id>
+ </upstream>
+</pkgmetadata>