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

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

  ViewVC Help
Powered by ViewVC 1.1.20