1 |
grozin 12/06/22 07:35:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: fricas-1.1.7-r1.ebuild |
5 |
Removed: fricas-1.1.7.ebuild |
6 |
Log: |
7 |
fix a bug in src/graph/view3D/smoothShade3d.c |
8 |
|
9 |
(Portage version: 2.2.0_alpha110/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.15 sci-mathematics/fricas/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/ChangeLog?rev=1.15&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/ChangeLog?rev=1.15&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/ChangeLog?r1=1.14&r2=1.15 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/ChangeLog,v |
21 |
retrieving revision 1.14 |
22 |
retrieving revision 1.15 |
23 |
diff -u -r1.14 -r1.15 |
24 |
--- ChangeLog 21 Jun 2012 08:24:23 -0000 1.14 |
25 |
+++ ChangeLog 22 Jun 2012 07:35:14 -0000 1.15 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-mathematics/fricas |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/ChangeLog,v 1.14 2012/06/21 08:24:23 grozin Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/ChangeLog,v 1.15 2012/06/22 07:35:14 grozin Exp $ |
31 |
+ |
32 |
+*fricas-1.1.7-r1 (22 Jun 2012) |
33 |
+ |
34 |
+ 22 Jun 2012; Andrey Grozin <grozin@g.o> -fricas-1.1.7.ebuild, |
35 |
+ +fricas-1.1.7-r1.ebuild, +files/fricas-1.1.7.patch: |
36 |
+ fix a bug in src/graph/view3D/smoothShade3d.c |
37 |
|
38 |
*fricas-1.1.7 (21 Jun 2012) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-mathematics/fricas/fricas-1.1.7-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/fricas-1.1.7-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/fricas/fricas-1.1.7-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: fricas-1.1.7-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 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.1.7-r1.ebuild,v 1.1 2012/06/22 07:35:14 grozin Exp $ |
53 |
EAPI=4 |
54 |
inherit eutils 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 ecl clisp clozurecl ) |
65 |
# . means just dev-lisp/${LISP}; foo-x.y.z means >=dev-lisp/foo-x.y.z |
66 |
DEPS=( . cmucl-20b . ecls-9 . . ) |
67 |
# command name: . means just ${LISP} |
68 |
COMS=( . lisp . . . ccl ) |
69 |
|
70 |
IUSE="${LISPS[*]} X emacs gmp" |
71 |
RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE ) |
72 |
emacs? ( virtual/emacs ) |
73 |
gmp? ( dev-libs/gmp )" |
74 |
|
75 |
# Generating lisp deps |
76 |
n=${#LISPS[*]} |
77 |
for ((n--; n > 0; n--)); do |
78 |
LISP=${LISPS[$n]} |
79 |
DEP=${DEPS[$n]} |
80 |
if [ "${DEP}" = "." ]; then |
81 |
DEP="dev-lisp/${LISP}" |
82 |
else |
83 |
DEP=">=dev-lisp/${DEP}" |
84 |
fi |
85 |
RDEPEND="${RDEPEND} ${LISP}? ( ${DEP} ) !${LISP}? (" |
86 |
done |
87 |
RDEPEND="${RDEPEND} dev-lisp/${LISPS[0]}" |
88 |
n=${#LISPS[*]} |
89 |
for ((n--; n > 0; n--)); do |
90 |
RDEPEND="${RDEPEND} )" |
91 |
done |
92 |
|
93 |
DEPEND="${RDEPEND}" |
94 |
|
95 |
# necessary for clisp and gcl |
96 |
RESTRICT="strip" |
97 |
|
98 |
src_prepare() { |
99 |
# fix a bug in src/graph/view3D/smoothShade3d.c |
100 |
epatch "${FILESDIR}"/${P}.patch |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
local LISP n |
105 |
LISP=sbcl |
106 |
n=${#LISPS[*]} |
107 |
for ((n--; n > 0; n--)); do |
108 |
if use ${LISPS[$n]}; then |
109 |
LISP=${COMS[$n]} |
110 |
if [ "${LISP}" = "." ]; then |
111 |
LISP=${LISPS[$n]} |
112 |
fi |
113 |
fi |
114 |
done |
115 |
einfo "Using lisp: ${LISP}" |
116 |
|
117 |
# aldor is not yet in portage |
118 |
econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp) |
119 |
} |
120 |
|
121 |
src_compile() { |
122 |
# bug #300132 |
123 |
emake -j1 |
124 |
} |
125 |
|
126 |
src_test() { |
127 |
emake -j1 all-input |
128 |
} |
129 |
|
130 |
src_install() { |
131 |
emake -j1 DESTDIR="${D}" install |
132 |
dodoc README FAQ |
133 |
|
134 |
if use emacs; then |
135 |
sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \ |
136 |
-i "${D}"/usr/bin/efricas \ |
137 |
|| die "sed efricas failed" |
138 |
elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el |
139 |
elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
140 |
else |
141 |
rm "${D}"/usr/bin/efricas || die "rm efricas failed" |
142 |
fi |
143 |
rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed" |
144 |
} |
145 |
|
146 |
pkg_postinst() { |
147 |
use emacs && elisp-site-regen |
148 |
} |
149 |
|
150 |
pkg_postrm() { |
151 |
use emacs && elisp-site-regen |
152 |
} |