Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/fricas: ChangeLog fricas-1.2.6.ebuild fricas-1.2.4.ebuild
Date: Mon, 29 Jun 2015 11:01:49
Message-Id: 20150629110125.B8F53744@oystercatcher.gentoo.org
1 grozin 15/06/29 11:01:25
2
3 Modified: ChangeLog
4 Added: fricas-1.2.6.ebuild
5 Removed: fricas-1.2.4.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.20/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)
10
11 Revision Changes Path
12 1.25 sci-mathematics/fricas/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/ChangeLog?rev=1.25&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/ChangeLog?rev=1.25&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/ChangeLog?r1=1.24&r2=1.25
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/ChangeLog,v
21 retrieving revision 1.24
22 retrieving revision 1.25
23 diff -u -r1.24 -r1.25
24 --- ChangeLog 7 Mar 2015 12:54:14 -0000 1.24
25 +++ ChangeLog 29 Jun 2015 11:01:25 -0000 1.25
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sci-mathematics/fricas
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/ChangeLog,v 1.24 2015/03/07 12:54:14 grozin Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/ChangeLog,v 1.25 2015/06/29 11:01:25 grozin Exp $
31 +
32 +*fricas-1.2.6 (29 Jun 2015)
33 +
34 + 29 Jun 2015; Andrey Grozin <grozin@g.o> -fricas-1.2.4.ebuild,
35 + +fricas-1.2.6.ebuild:
36 + Version bump
37
38 *fricas-1.2.5 (07 Mar 2015)
39
40
41
42
43 1.1 sci-mathematics/fricas/fricas-1.2.6.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/fricas-1.2.6.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/fricas-1.2.6.ebuild?rev=1.1&content-type=text/plain
47
48 Index: fricas-1.2.6.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/fricas-1.2.6.ebuild,v 1.1 2015/06/29 11:01:25 grozin Exp $
53 EAPI=5
54 inherit multilib elisp-common
55
56 DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
57 HOMEPAGE="http://${PN}.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.bz2"
59 LICENSE="BSD-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62
63 # Supported lisps, number 0 is the default
64 LISPS=( sbcl cmucl gcl ecls clisp clozurecl )
65 # command name: . means just ${LISP}
66 COMS=( . lisp . ecl . ccl )
67
68 IUSE="${LISPS[*]} X emacs gmp"
69 RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE )
70 emacs? ( virtual/emacs )
71 gmp? ( dev-libs/gmp )"
72
73 # Generating lisp deps
74 n=${#LISPS[*]}
75 for ((n--; n > 0; n--)); do
76 LISP=${LISPS[$n]}
77 RDEPEND="${RDEPEND} ${LISP}? ( dev-lisp/${LISP}:= ) !${LISP}? ("
78 done
79 RDEPEND="${RDEPEND} dev-lisp/${LISPS[0]}:="
80 n=${#LISPS[*]}
81 for ((n--; n > 0; n--)); do
82 RDEPEND="${RDEPEND} )"
83 done
84
85 DEPEND="${RDEPEND}"
86
87 # necessary for clisp and gcl
88 RESTRICT="strip"
89
90 src_configure() {
91 local LISP n
92 LISP=sbcl
93 n=${#LISPS[*]}
94 for ((n--; n > 0; n--)); do
95 if use ${LISPS[$n]}; then
96 LISP=${COMS[$n]}
97 if [ "${LISP}" = "." ]; then
98 LISP=${LISPS[$n]}
99 fi
100 fi
101 done
102 einfo "Using lisp: ${LISP}"
103
104 # aldor is not yet in portage
105 econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp)
106 }
107
108 src_compile() {
109 # bug #300132
110 emake -j1
111 }
112
113 src_test() {
114 emake -j1 all-input
115 }
116
117 src_install() {
118 emake -j1 DESTDIR="${D}" install
119 dodoc README FAQ
120
121 if use emacs; then
122 sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \
123 -i "${D}"/usr/bin/efricas \
124 || die "sed efricas failed"
125 elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el
126 elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
127 else
128 rm "${D}"/usr/bin/efricas || die "rm efricas failed"
129 fi
130 rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed"
131 }
132
133 pkg_postinst() {
134 use emacs && elisp-site-regen
135 }
136
137 pkg_postrm() {
138 use emacs && elisp-site-regen
139 }