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