Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/fricas/
Date: Thu, 28 Jun 2018 10:09:10
Message-Id: 1530180508.26101fe4944ac2c5972c4ee654bf7c6b99d66786.grozin@gentoo
1 commit: 26101fe4944ac2c5972c4ee654bf7c6b99d66786
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 28 10:08:28 2018 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 10:08:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26101fe4
7
8 sci-mathematics/fricas: bump to 1.3.4
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 sci-mathematics/fricas/Manifest | 1 +
13 sci-mathematics/fricas/fricas-1.3.4.ebuild | 108 +++++++++++++++++++++++++++++
14 2 files changed, 109 insertions(+)
15
16 diff --git a/sci-mathematics/fricas/Manifest b/sci-mathematics/fricas/Manifest
17 index 7a7016d1828..87e485c0458 100644
18 --- a/sci-mathematics/fricas/Manifest
19 +++ b/sci-mathematics/fricas/Manifest
20 @@ -1,2 +1,3 @@
21 DIST fricas-1.3.2-full.tar.bz2 10523665 BLAKE2B 23de3147177e7c3c75dafa6de0f4f17432f323512aa38aef85e27c8cf1b9e335009870dc608219f0e1c4f53f1790a41b00b915aedd71633459f789cfda9f5244 SHA512 679dffbe8a991d4ae3d6667a6163337ffa24d48b9d1d776ba1a39569cb3b9f17e8d484075746b75b7eb6bbe5b9d26af3e526850a19118274988b9e88ad52a679
22 DIST fricas-1.3.3-full.tar.bz2 10506559 BLAKE2B 1a9822f0a94db5c7e7a3e2a52287b475c382caaaf9c5e1830621a17b6634f6f72958f0c81995463d135b4567a74c588f33c88d51a83b0a8749479d65645de4bc SHA512 74ac88ffbbacba33883498a75382ef351003ce8499f6b458367ca0de3041a9bba496693eb90f798945aa6e11c5072137227efa385ee6d8e2051f93dfea6d7fbe
23 +DIST fricas-1.3.4-full.tar.bz2 10381144 BLAKE2B caff50ef2b2d8e9ef76448c265316ac8878010c505f9d871aa5579210ab2de3915f56a44687d3f96aba1f857efc8b3ec182b9b6c5c390e38dbdaf7cdba188dcc SHA512 efee0d8a05979c806182e9e45f81b56037d1a660909971d6b94af1f97732cfb7b689709d8af4229b7f649506860b1ed915dd5afb91378f4c9d8a6e960a248170
24
25 diff --git a/sci-mathematics/fricas/fricas-1.3.4.ebuild b/sci-mathematics/fricas/fricas-1.3.4.ebuild
26 new file mode 100644
27 index 00000000000..b844cb78f7b
28 --- /dev/null
29 +++ b/sci-mathematics/fricas/fricas-1.3.4.ebuild
30 @@ -0,0 +1,108 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +inherit multilib elisp-common
36 +
37 +DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
38 +HOMEPAGE="http://${PN}.sourceforge.net/"
39 +SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.bz2"
40 +LICENSE="BSD-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86"
43 +
44 +# Supported lisps, number 0 is the default
45 +LISPS=( sbcl cmucl gcl ecls clisp clozurecl )
46 +# Version restrictions, . means no restrictions
47 +REST=( . . . . . . )
48 +# command name: . means just ${LISP}
49 +COMS=( . lisp . ecl . ccl )
50 +
51 +IUSE="${LISPS[*]} X emacs gmp"
52 +RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE )
53 + emacs? ( virtual/emacs )
54 + gmp? ( dev-libs/gmp:= )"
55 +
56 +# Generating lisp deps
57 +n=${#LISPS[*]}
58 +for ((n--; n > 0; n--)); do
59 + LISP=${LISPS[$n]}
60 + if [ "${REST[$n]}" = "." ]; then
61 + DEP="dev-lisp/${LISP}"
62 + else
63 + DEP="${REST[$n]}"
64 + fi
65 + RDEPEND="${RDEPEND} ${LISP}? ( ${DEP}:= ) !${LISP}? ("
66 +done
67 +if [ "${REST[0]}" = "." ]; then
68 + DEP="dev-lisp/${LISPS[0]}"
69 +else
70 + DEP="${REST[0]}"
71 +fi
72 +RDEPEND="${RDEPEND} ${DEP}:="
73 +n=${#LISPS[*]}
74 +for ((n--; n > 0; n--)); do
75 + RDEPEND="${RDEPEND} )"
76 +done
77 +
78 +DEPEND="${RDEPEND}"
79 +
80 +# necessary for clisp and gcl
81 +RESTRICT="strip"
82 +
83 +src_configure() {
84 + local LISP n GMP
85 + LISP=sbcl
86 + n=${#LISPS[*]}
87 + for ((n--; n > 0; n--)); do
88 + if use ${LISPS[$n]}; then
89 + LISP=${COMS[$n]}
90 + if [ "${LISP}" = "." ]; then
91 + LISP=${LISPS[$n]}
92 + fi
93 + fi
94 + done
95 + einfo "Using lisp: ${LISP}"
96 +
97 + # bug #650788
98 + if [[ ${LISP} = sbcl || ${LISP} = ccl ]]
99 + then GMP=$(use_with gmp)
100 + else GMP=''
101 + fi
102 +
103 + # aldor is not yet in portage
104 + econf --disable-aldor --with-lisp=${LISP} $(use_with X x) ${GMP}
105 +}
106 +
107 +src_compile() {
108 + # bug #300132
109 + emake -j1
110 +}
111 +
112 +src_test() {
113 + emake -j1 all-input
114 +}
115 +
116 +src_install() {
117 + emake -j1 DESTDIR="${D}" install
118 + dodoc README FAQ
119 +
120 + if use emacs; then
121 + sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \
122 + -i "${D}"/usr/bin/efricas \
123 + || die "sed efricas failed"
124 + elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el
125 + elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
126 + else
127 + rm "${D}"/usr/bin/efricas || die "rm efricas failed"
128 + fi
129 + rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed"
130 +}
131 +
132 +pkg_postinst() {
133 + use emacs && elisp-site-regen
134 +}
135 +
136 +pkg_postrm() {
137 + use emacs && elisp-site-regen
138 +}