1 |
commit: ea1428f58306efcf26e6c5fb787591755896bd77 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 03:54:05 2015 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 03:55:19 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea1428f5 |
7 |
|
8 |
sci-mathematics/fricas: bump to 1.2.7 |
9 |
|
10 |
Package-Manager: portage-2.2.21 |
11 |
|
12 |
sci-mathematics/fricas/Manifest | 1 + |
13 |
sci-mathematics/fricas/fricas-1.2.7.ebuild | 90 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 91 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/fricas/Manifest b/sci-mathematics/fricas/Manifest |
17 |
index 524b685..70b887a 100644 |
18 |
--- a/sci-mathematics/fricas/Manifest |
19 |
+++ b/sci-mathematics/fricas/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST fricas-1.2.5-full.tar.bz2 10153745 SHA256 842e85d2799fd5271957c0d306c243f9f9d9db791e781e848b430f17a11d5e57 SHA512 78e99c2b791d8680e939adf8dfde96d3b305c58e9333da1ae98e214b5fc9ca2d6c365c7857cb4e30a68aa5450c992973243e058e4d4a412f57ff37137bc19ba0 WHIRLPOOL 13e91e451ffa707c220704aa5d017df264806feaa6b1b52c03ddaecff57594d06fe957ae61e0c5a0f49e4f96fb6f420a99aac49279f4f9e0efa07a11bedac1cd |
22 |
DIST fricas-1.2.6-full.tar.bz2 10196018 SHA256 725b62d9139a345a3bc0eb0d29bd0e0764de475792918165c3bcd293d3c292ae SHA512 6c98844b6815bd6bfbe50881179b746aa38af48e3992179e3746bd175ef2a0940d9855e79b66b1b5e34d9fc9fe1b8f3578483847b18d7cc2781f7f72b65fb2ac WHIRLPOOL de221add1c68da205d8689834ccb52a0ea468af253ccae70ce7c25156b0ece810dcc50a9db99549ed461a10dcaea13f503c1f0838141262dd6c6d524a217be61 |
23 |
+DIST fricas-1.2.7-full.tar.bz2 10289500 SHA256 f23d892c17fca850726ab6f1f03061bbced6c487d2eed23e86037672b7473e1b SHA512 1e6e34dc0e4b535bf937ebdefb5099629b2893e6db0dba8b84f259e2a3b7244692ab704dd04aa24f257089661f6747d8f367d0f58bb8cebd652469cb58c72897 WHIRLPOOL 41934d03203b6b6ca51ab0f54d3c7087de67366bba5794785360cbb61fc7cb18a6d4b489c176d75815bdb7b68b4aba31d0724bb5be94f1bfa6cb01e930af7991 |
24 |
|
25 |
diff --git a/sci-mathematics/fricas/fricas-1.2.7.ebuild b/sci-mathematics/fricas/fricas-1.2.7.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..a6701e5 |
28 |
--- /dev/null |
29 |
+++ b/sci-mathematics/fricas/fricas-1.2.7.ebuild |
30 |
@@ -0,0 +1,90 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+EAPI=5 |
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 |
+# command name: . means just ${LISP} |
47 |
+COMS=( . lisp . ecl . ccl ) |
48 |
+ |
49 |
+IUSE="${LISPS[*]} X emacs gmp" |
50 |
+RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE ) |
51 |
+ emacs? ( virtual/emacs ) |
52 |
+ gmp? ( dev-libs/gmp )" |
53 |
+ |
54 |
+# Generating lisp deps |
55 |
+n=${#LISPS[*]} |
56 |
+for ((n--; n > 0; n--)); do |
57 |
+ LISP=${LISPS[$n]} |
58 |
+ RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP}:= ) !${LISP}? (" |
59 |
+done |
60 |
+RDEPEND="${RDEPEND} dev-lisp/${LISPS[0]}:=" |
61 |
+n=${#LISPS[*]} |
62 |
+for ((n--; n > 0; n--)); do |
63 |
+ RDEPEND="${RDEPEND} )" |
64 |
+done |
65 |
+ |
66 |
+DEPEND="${RDEPEND}" |
67 |
+ |
68 |
+# necessary for clisp and gcl |
69 |
+RESTRICT="strip" |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local LISP n |
73 |
+ LISP=sbcl |
74 |
+ n=${#LISPS[*]} |
75 |
+ for ((n--; n > 0; n--)); do |
76 |
+ if use ${LISPS[$n]}; then |
77 |
+ LISP=${COMS[$n]} |
78 |
+ if [ "${LISP}" = "." ]; then |
79 |
+ LISP=${LISPS[$n]} |
80 |
+ fi |
81 |
+ fi |
82 |
+ done |
83 |
+ einfo "Using lisp: ${LISP}" |
84 |
+ |
85 |
+ # aldor is not yet in portage |
86 |
+ econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp) |
87 |
+} |
88 |
+ |
89 |
+src_compile() { |
90 |
+ # bug #300132 |
91 |
+ emake -j1 |
92 |
+} |
93 |
+ |
94 |
+src_test() { |
95 |
+ emake -j1 all-input |
96 |
+} |
97 |
+ |
98 |
+src_install() { |
99 |
+ emake -j1 DESTDIR="${D}" install |
100 |
+ dodoc README FAQ |
101 |
+ |
102 |
+ if use emacs; then |
103 |
+ sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \ |
104 |
+ -i "${D}"/usr/bin/efricas \ |
105 |
+ || die "sed efricas failed" |
106 |
+ elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el |
107 |
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
108 |
+ else |
109 |
+ rm "${D}"/usr/bin/efricas || die "rm efricas failed" |
110 |
+ fi |
111 |
+ rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed" |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ use emacs && elisp-site-regen |
116 |
+} |
117 |
+ |
118 |
+pkg_postrm() { |
119 |
+ use emacs && elisp-site-regen |
120 |
+} |