/[gentoo-x86]/sci-mathematics/reduce/reduce-20101007-r1.ebuild
Gentoo

Contents of /sci-mathematics/reduce/reduce-20101007-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 22 12:23:04 2011 UTC (8 years, 11 months ago) by grozin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Keyword ~amd64, better directory structure

(Portage version: 2.2.0_alpha81/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/reduce/reduce-20101007-r1.ebuild,v 1.1 2011/03/29 21:02:40 grozin Exp $
4 EAPI="2"
5 inherit elisp-common
6 MY_PN=${PN}-algebra
7 MY_P=${MY_PN}-${PV}
8
9 DESCRIPTION="A general-purpose computer algebra system"
10 HOMEPAGE="http://reduce-algebra.sourceforge.net/
11 http://reduce-algebra.com/"
12 IUSE="doc emacs gnuplot X"
13 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
14 LICENSE="BSD-2 X? ( LGPL-2.1 )"
15 SLOT="0"
16 KEYWORDS="~x86"
17
18 RDEPEND="X? ( x11-libs/libXrandr
19 x11-libs/libXcursor
20 x11-libs/libXft )
21 gnuplot? ( sci-visualization/gnuplot )
22 emacs? ( virtual/emacs )"
23 DEPEND="${RDEPEND}"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_configure() {
28 # If you pass --prefix to this damn configure,
29 # make (not make install!) will try to install stuff
30 # into the live file system => sandbox violation
31 # Therefore, I cannot use econf here
32 # Also, make calls configure in maintainer mode in subdirs *by design*
33 # The trunk sucks less => WONTFIX until the next release
34 ./configure --with-csl $(use_with X fox)
35 # psl build requires Internet connection at build time
36 # we cannot support it
37 }
38
39 src_compile() {
40 emake STRIP=true || die "emake failed"
41
42 pushd cslbuild/*/csl/reduce.doc > /dev/null
43 rm -f *.txt *.tex
44 popd > /dev/null
45
46 if use emacs; then
47 einfo "Compiling emacs lisp files"
48 elisp-compile generic/emacs/*.el || die "elisp-compile failed"
49 fi
50 }
51
52 src_test() {
53 emake testall || die "emake testall failed"
54 }
55
56 src_install() {
57 pushd cslbuild/*/csl > /dev/null
58 exeinto /usr/lib/${PN}
59 doexe reduce csl
60 insinto /usr/lib/${PN}
61 doins reduce.img csl.img
62 doins -r reduce.doc
63 if use X; then
64 doins -r reduce.fonts
65 fi
66 popd > /dev/null
67 exeinto /usr/bin
68 doexe "${FILESDIR}/redcsl" "${FILESDIR}/csl"
69 dodoc README BUILDING DEPENDENCY_TRACKING
70 dosym /usr/lib/${PN}/${PN}.doc /usr/share/doc/${PF}/html
71
72 if use doc; then
73 insinto /usr/share/doc/${PF}
74 doins -r doc/util/r38.pdf
75 fi
76
77 if use emacs; then
78 pushd generic/emacs > /dev/null
79 elisp-install ${PN} *.el *.elc || die "elisp-install failed"
80 elisp-site-file-install "${FILESDIR}/64${PN}-gentoo.el"
81 popd > /dev/null
82 fi
83 }

  ViewVC Help
Powered by ViewVC 1.1.20