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

Contents of /sci-mathematics/reduce/reduce-20110414.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Mar 21 20:51:37 2015 UTC (5 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
use dobin instead of exeinto /usr/bin/ && doexe

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

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

  ViewVC Help
Powered by ViewVC 1.1.20