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