Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/cadabra/
Date: Sun, 31 Mar 2013 11:15:57
Message-Id: 1363905553.1cbe3f00db690e7b37258c3659c0a490de69a242.alexxy@gentoo
1 commit: 1cbe3f00db690e7b37258c3659c0a490de69a242
2 Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
3 AuthorDate: Thu Mar 21 22:39:13 2013 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 21 22:39:13 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1cbe3f00
7
8 sci-mathematics/cadabra: version bump
9
10 ---
11 sci-mathematics/cadabra/ChangeLog | 8 ++-
12 sci-mathematics/cadabra/cadabra-1.31.ebuild | 87 +++++++++++++++++++++++++++
13 2 files changed, 94 insertions(+), 1 deletions(-)
14
15 diff --git a/sci-mathematics/cadabra/ChangeLog b/sci-mathematics/cadabra/ChangeLog
16 index 227034b..f398b47 100644
17 --- a/sci-mathematics/cadabra/ChangeLog
18 +++ b/sci-mathematics/cadabra/ChangeLog
19 @@ -1,7 +1,13 @@
20 # ChangeLog for sci-mathematics/cadabra
21 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
22 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
23 # $Header: $
24
25 +*cadabra-1.31 (21 Mar 2013)
26 +
27 + 21 Mar 2013; Jauhien Piatlicki (jauhien) <piatlicki@×××××.com>
28 + +cadabra-1.31.ebuild:
29 + version bump
30 +
31 12 Nov 2012; Thomas Kahle <tomka@g.o> cadabra-1.25.ebuild,
32 cadabra-1.28.ebuild, cadabra-1.29.ebuild:
33 Fix dep on gmp[cxx] (Thanks Gerhard Bräunlich)
34
35 diff --git a/sci-mathematics/cadabra/cadabra-1.31.ebuild b/sci-mathematics/cadabra/cadabra-1.31.ebuild
36 new file mode 100644
37 index 0000000..900283c
38 --- /dev/null
39 +++ b/sci-mathematics/cadabra/cadabra-1.31.ebuild
40 @@ -0,0 +1,87 @@
41 +# Copyright 1999-2013 Gentoo Foundation
42 +# Distributed under the terms of the GNU General Public License v2
43 +# $Header: $
44 +
45 +EAPI="3"
46 +
47 +inherit eutils
48 +
49 +DESCRIPTION="Field-theory motivated computer algebra system"
50 +HOMEPAGE="http://cadabra.phi-sci.com"
51 +SRC_URI="http://cadabra.phi-sci.com/${P}.tar.gz"
52 +#### Remove the following line when moving this ebuild to the main tree!
53 +RESTRICT="mirror"
54 +
55 +LICENSE="GPL-2"
56 +
57 +SLOT="0"
58 +KEYWORDS="~x86 ~amd64"
59 +IUSE="doc examples X"
60 +
61 +DEPEND="
62 + sci-libs/modglue
63 + sci-mathematics/lie
64 + dev-libs/gmp[cxx]
65 + dev-libs/libpcre
66 + X? (
67 + x11-libs/gtk+:2
68 + dev-cpp/gtkmm:2.4
69 + dev-cpp/pangomm:1.4
70 + app-text/dvipng )
71 + doc? ( || ( app-text/texlive-core dev-tex/pdftex ) )"
72 +RDEPEND="${DEPEND}
73 + virtual/latex-base
74 + dev-tex/mh"
75 +
76 +src_prepare(){
77 + # xcadabra doesn't respect LDFLAGS (cadabra does!)
78 + epatch "${FILESDIR}/${PN}-1.25-xcadabra-flags.patch"
79 +}
80 +
81 +src_configure(){
82 + econf $(use_enable X gui)
83 +}
84 +
85 +src_compile() {
86 + emake || die
87 +
88 + if use doc; then
89 + cd "${S}/doc"
90 + emake || die
91 + cd doxygen/latex
92 + emake pdf || die
93 + fi
94 +}
95 +
96 +src_install() {
97 + emake DESTDIR="${D}" DEVDESTDIR="${D}" install || die "install died"
98 +
99 + dodoc AUTHORS ChangeLog INSTALL || die
100 +
101 + if ( use doc )
102 + then
103 + cd "${S}/doc/doxygen"
104 + dohtml html/*
105 + dodoc latex/*.pdf
106 + fi
107 +
108 + if ( use examples )
109 + then
110 + docinto examples
111 + dodoc "${S}/examples/*"
112 + fi
113 +
114 + rm -rf "${D}/usr/share/TeXmacs"
115 +}
116 +
117 +pkg_postinst() {
118 + /usr/sbin/texmf-update
119 + elog "This version of the cadabra ebuild is still under development."
120 + elog "Help us improve the ebuild in:"
121 + elog "http://bugs.gentoo.org/show_bug.cgi?id= 194393"
122 +}
123 +
124 +pkg_postrm()
125 +{
126 + /usr/sbin/texmf-update
127 +}