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: metadata.xml ChangeLog fricas-1.0.8.ebuild
Date: Thu, 07 Jan 2010 17:07:50
Message-Id: E1NSvpr-0006OV-KG@stork.gentoo.org
1 grozin 10/01/07 17:07:47
2
3 Added: metadata.xml ChangeLog fricas-1.0.8.ebuild
4 Log:
5 Initial import
6 (Portage version: 2.2_rc61/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 sci-mathematics/fricas/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/fricas/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/fricas/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>sci-mathematics</herd>
20 <maintainer>
21 <email>grozin@g.o</email>
22 <name>Andrey Grozin</name>
23 </maintainer>
24 <longdescription lang="en">
25 FriCAS is a fork of Axiom computer algebra system.
26 </longdescription>
27 <use>
28 <flag name='clisp'>Add support for GNU CLISP
29 (<pkg>dev-lisp/clisp</pkg>)</flag>
30 <flag name='cmucl'>Add support for CMU Common Lisp
31 (<pkg>dev-lisp/cmucl</pkg>)</flag>
32 <flag name='gcl'>Add support for GNU Common Lisp
33 (<pkg>dev-lisp/gcl</pkg>)</flag>
34 <flag name='sbcl'>Add support for Steel Bank Common Lisp
35 (<pkg>dev-lisp/sbcl</pkg>)</flag>
36 <flag name='ecl'>Add support for Embeddable Common Lisp
37 (<pkg>dev-lisp/ecls</pkg>)</flag>
38 <flag name='clozurecl'>Add support for Clozure Common Lisp
39 (<pkg>dev-lisp/closurecl</pkg>)</flag>
40 </use>
41 </pkgmetadata>
42
43
44
45 1.1 sci-mathematics/fricas/ChangeLog
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/fricas/ChangeLog?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/fricas/ChangeLog?rev=1.1&content-type=text/plain
49
50 Index: ChangeLog
51 ===================================================================
52 # ChangeLog for sci-mathematics/fricas
53 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
54 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/ChangeLog,v 1.1 2010/01/07 17:07:46 grozin Exp $
55
56 *fricas-1.0.8 (07 Jan 2010)
57
58 07 Jan 2010; Andrey Grozin <grozin@g.o> +files/64fricas-gentoo.el,
59 +fricas-1.0.8.ebuild, +metadata.xml:
60 Initial import
61
62
63
64
65 1.1 sci-mathematics/fricas/fricas-1.0.8.ebuild
66
67 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/fricas/fricas-1.0.8.ebuild?rev=1.1&view=markup
68 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/fricas/fricas-1.0.8.ebuild?rev=1.1&content-type=text/plain
69
70 Index: fricas-1.0.8.ebuild
71 ===================================================================
72 # Copyright 1999-2010 Gentoo Foundation
73 # Distributed under the terms of the GNU General Public License v2
74 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/fricas/fricas-1.0.8.ebuild,v 1.1 2010/01/07 17:07:47 grozin Exp $
75 EAPI=2
76 inherit elisp-common
77
78 DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
79 HOMEPAGE="http://${PN}.sourceforge.net/"
80 SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.bz2"
81 LICENSE="BSD-2"
82 SLOT="0"
83 KEYWORDS="~x86"
84
85 # Supported lisps, number 0 is the default
86 LISPS=( sbcl cmucl gcl ecl clisp clozurecl )
87 # . means just dev-lisp/${LISP}
88 # package-x.y.z means >=dev-lisp/package-x.y.z
89 DEPS=( . . . ecls-9 . . )
90 # command name: . means just ${LISP}
91 COMMAND=( . lisp . . . ccl )
92
93 IUSE="${LISPS[*]} X emacs"
94 RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE )
95 emacs? ( virtual/emacs )"
96
97 # Generating lisp deps
98 n=${#LISPS[*]}
99 for ((n--; n > 0; n--)); do
100 LISP=${LISPS[$n]}
101 DEP=${DEPS[$n]}
102 if [ "${DEP}" = "." ]; then
103 DEP="dev-lisp/${LISP}"
104 else
105 DEP=">=dev-lisp/${DEP}"
106 fi
107 RDEPEND="${RDEPEND} ${LISP}? ( ${DEP} ) !${LISP}? ("
108 done
109 RDEPEND="${RDEPEND} dev-lisp/${LISPS[0]}"
110 n=${#LISPS[*]}
111 for ((n--; n > 0; n--)); do
112 RDEPEND="${RDEPEND} )"
113 done
114
115 DEPEND="${RDEPEND}"
116
117 # necessary for gcl
118 RESTRICT="strip"
119
120 src_configure() {
121 local LISP n
122 LISP=sbcl
123 n=${#LISPS[*]}
124 for ((n--; n > 0; n--)); do
125 if use ${LISPS[$n]}; then
126 LISP=${COMMAND[$n]}
127 if [ "${LISP}" = "." ]; then
128 LISP=${LISPS[$n]}
129 fi
130 fi
131 done
132 einfo "Using lisp: ${LISP}"
133
134 # aldor is not yet in portage
135 econf --disable-aldor --with-lisp=${LISP} $(use_with X x)
136 }
137
138 src_install() {
139 emake DESTDIR="${D}" install || die 'emake install failed'
140 dodoc README FAQ || die "dodoc failed"
141
142 if use emacs; then
143 elisp-install ${PN} "${D}"/usr/lib/${PN}/emacs/*.el
144 elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
145 else
146 rm "${D}"/usr/bin/efricas || die "rm efricas failed"
147 fi
148 rm -r "${D}"/usr/lib/${PN}/emacs || die "rm -r emacs failed"
149 }
150
151 pkg_postinst() {
152 use emacs && elisp-site-regen
153 }
154
155 pkg_postrm() {
156 use emacs && elisp-site-regen
157 }