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/reduce: metadata.xml ChangeLog reduce-20101007.ebuild
Date: Wed, 05 Jan 2011 11:40:28
Message-Id: 20110105114019.2CB9220051@flycatcher.gentoo.org
1 grozin 11/01/05 11:40:19
2
3 Added: metadata.xml ChangeLog reduce-20101007.ebuild
4 Log:
5 Initial import
6
7 (Portage version: 2.2.0_alpha12/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 sci-mathematics/reduce/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/reduce/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/reduce/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <herd>sci-mathematics</herd>
21 <maintainer>
22 <email>grozin@g.o</email>
23 <name>Andrey Grozin</name>
24 </maintainer>
25 <longdescription lang="en">
26 A general-purpose computer algebra system.
27 Powerful, mature and efficient.
28 </longdescription>
29 </pkgmetadata>
30
31
32
33 1.1 sci-mathematics/reduce/ChangeLog
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/reduce/ChangeLog?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/reduce/ChangeLog?rev=1.1&content-type=text/plain
37
38 Index: ChangeLog
39 ===================================================================
40 # ChangeLog for sci-mathematics/reduce
41 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
42 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/reduce/ChangeLog,v 1.1 2011/01/05 11:40:19 grozin Exp $
43
44 *reduce-20101007 (05 Jan 2011)
45
46 05 Jan 2011; Andrey Grozin <grozin@g.o> +files/64reduce-gentoo.el,
47 +reduce-20101007.ebuild, +files/reduce, +metadata.xml:
48 Initial import
49
50
51
52
53 1.1 sci-mathematics/reduce/reduce-20101007.ebuild
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/reduce/reduce-20101007.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/reduce/reduce-20101007.ebuild?rev=1.1&content-type=text/plain
57
58 Index: reduce-20101007.ebuild
59 ===================================================================
60 # Copyright 1999-2011 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/reduce/reduce-20101007.ebuild,v 1.1 2011/01/05 11:40:19 grozin Exp $
63 EAPI="2"
64 inherit elisp-common
65 MY_PN=${PN}-algebra
66 MY_P=${MY_PN}-${PV}
67
68 DESCRIPTION="A general-purpose computer algebra system"
69 HOMEPAGE="http://reduce-algebra.sourceforge.net/
70 http://reduce-algebra.com/"
71 IUSE="doc emacs gnuplot X"
72 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
73 LICENSE="BSD-2 X? ( LGPL-2.1 )"
74 SLOT="0"
75 KEYWORDS="~x86"
76
77 RDEPEND="X? ( x11-libs/libXrandr
78 x11-libs/libXcursor
79 x11-libs/libXft )
80 gnuplot? ( sci-visualization/gnuplot )
81 emacs? ( virtual/emacs )"
82 DEPEND="${RDEPEND}"
83
84 S="${WORKDIR}/${MY_P}"
85
86 src_configure() {
87 # If you pass --prefix to this damn configure,
88 # make (not make install!) will try to install stuff
89 # into the live file system => sandbox violation
90 # Therefore, I cannot use econf here
91 # Also, make calls configure in maintainer mode in subdirs *by design*
92 # The trunk sucks less => WONTFIX until the next release
93 ./configure --with-csl $(use_with X fox)
94 # psl build requires Internet connection at build time
95 # we cannot support it
96 }
97
98 src_compile() {
99 default_src_compile
100
101 pushd cslbuild/*/csl/reduce.doc > /dev/null
102 rm -f *.txt *.tex
103 popd > /dev/null
104
105 if use emacs; then
106 einfo "Compiling emacs lisp files"
107 elisp-compile generic/emacs/*.el || die "elisp-compile failed"
108 fi
109 }
110
111 src_test() {
112 emake testall || die "emake testall failed"
113 }
114
115 src_install() {
116 pushd cslbuild/*/csl > /dev/null
117 exeinto /usr/lib/${PN}
118 doexe reduce
119 insinto /usr/lib/${PN}
120 doins reduce.img
121 doins -r reduce.doc
122 if use X; then
123 doins -r reduce.fonts
124 fi
125 popd > /dev/null
126 exeinto /usr/bin
127 doexe "${FILESDIR}/reduce"
128 dodoc README BUILDING DEPENDENCY_TRACKING
129 dosym /usr/lib/${PN}/${PN}.doc /usr/share/doc/${PF}/html
130
131 if use doc; then
132 insinto /usr/share/doc/${PF}
133 doins -r doc/*
134 fi
135
136 if use emacs; then
137 pushd generic/emacs > /dev/null
138 elisp-install ${PN} *.el *.elc || die "elisp-install failed"
139 elisp-site-file-install "${FILESDIR}/64${PN}-gentoo.el"
140 popd > /dev/null
141 fi
142 }