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, 24 Feb 2016 17:28:42
Message-Id: 1456334310.8a17bc22b91f1969b73e696e59945d077a059191.grozin@gentoo
1 commit: 8a17bc22b91f1969b73e696e59945d077a059191
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 24 17:18:30 2016 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 24 17:18:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a17bc22
7
8 sci-mathematics/fricas: cleaning 1.2.7-r1
9
10 Package-Manager: portage-2.2.27
11
12 sci-mathematics/fricas/fricas-1.2.7-r1.ebuild | 102 --------------------------
13 1 file changed, 102 deletions(-)
14
15 diff --git a/sci-mathematics/fricas/fricas-1.2.7-r1.ebuild b/sci-mathematics/fricas/fricas-1.2.7-r1.ebuild
16 deleted file mode 100644
17 index 3601edc..0000000
18 --- a/sci-mathematics/fricas/fricas-1.2.7-r1.ebuild
19 +++ /dev/null
20 @@ -1,102 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -EAPI=5
25 -inherit multilib elisp-common
26 -
27 -DESCRIPTION="FriCAS is a fork of Axiom computer algebra system"
28 -HOMEPAGE="http://${PN}.sourceforge.net/"
29 -SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.bz2"
30 -LICENSE="BSD-2"
31 -SLOT="0"
32 -KEYWORDS="~amd64 ~x86"
33 -
34 -# Supported lisps, number 0 is the default
35 -LISPS=( sbcl cmucl gcl ecls clisp clozurecl )
36 -# Version restrictions, . means no restrictions
37 -REST=( "<=dev-lisp/sbcl-1.3.0" . . . . . )
38 -# command name: . means just ${LISP}
39 -COMS=( . lisp . ecl . ccl )
40 -
41 -IUSE="${LISPS[*]} X emacs gmp"
42 -RDEPEND="X? ( x11-libs/libXpm x11-libs/libICE )
43 - emacs? ( virtual/emacs )
44 - gmp? ( dev-libs/gmp )"
45 -
46 -# Generating lisp deps
47 -n=${#LISPS[*]}
48 -for ((n--; n > 0; n--)); do
49 - LISP=${LISPS[$n]}
50 - if [ "${REST[$n]}" = "." ]; then
51 - DEP="dev-lisp/${LISP}"
52 - else
53 - DEP="${REST[$n]}"
54 - fi
55 - RDEPEND="${RDEPEND} ${LISP}? ( ${DEP}:= ) !${LISP}? ("
56 -done
57 -if [ "${REST[0]}" = "." ]; then
58 - DEP="dev-lisp/${LISPS[0]}"
59 -else
60 - DEP="${REST[0]}"
61 -fi
62 -RDEPEND="${RDEPEND} ${DEP}:="
63 -n=${#LISPS[*]}
64 -for ((n--; n > 0; n--)); do
65 - RDEPEND="${RDEPEND} )"
66 -done
67 -
68 -DEPEND="${RDEPEND}"
69 -
70 -# necessary for clisp and gcl
71 -RESTRICT="strip"
72 -
73 -src_configure() {
74 - local LISP n
75 - LISP=sbcl
76 - n=${#LISPS[*]}
77 - for ((n--; n > 0; n--)); do
78 - if use ${LISPS[$n]}; then
79 - LISP=${COMS[$n]}
80 - if [ "${LISP}" = "." ]; then
81 - LISP=${LISPS[$n]}
82 - fi
83 - fi
84 - done
85 - einfo "Using lisp: ${LISP}"
86 -
87 - # aldor is not yet in portage
88 - econf --disable-aldor --with-lisp=${LISP} $(use_with X x) $(use_with gmp)
89 -}
90 -
91 -src_compile() {
92 - # bug #300132
93 - emake -j1
94 -}
95 -
96 -src_test() {
97 - emake -j1 all-input
98 -}
99 -
100 -src_install() {
101 - emake -j1 DESTDIR="${D}" install
102 - dodoc README FAQ
103 -
104 - if use emacs; then
105 - sed -e "s|(setq load-path (cons (quote \"/usr/$(get_libdir)/fricas/emacs\") load-path)) ||" \
106 - -i "${D}"/usr/bin/efricas \
107 - || die "sed efricas failed"
108 - elisp-install ${PN} "${D}"/usr/$(get_libdir)/${PN}/emacs/*.el
109 - elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
110 - else
111 - rm "${D}"/usr/bin/efricas || die "rm efricas failed"
112 - fi
113 - rm -r "${D}"/usr/$(get_libdir)/${PN}/emacs || die "rm -r emacs failed"
114 -}
115 -
116 -pkg_postinst() {
117 - use emacs && elisp-site-regen
118 -}
119 -
120 -pkg_postrm() {
121 - use emacs && elisp-site-regen
122 -}