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: 1364400511.7aa17b197ad98c58688696b83750dd1984c9a3ee.alexxy@gentoo
1 commit: 7aa17b197ad98c58688696b83750dd1984c9a3ee
2 Author: Jauhien Piatlicki (jauhien) <piatlicki <AT> gmail <DOT> com>
3 AuthorDate: Wed Mar 27 16:08:31 2013 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 27 16:08:31 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7aa17b19
7
8 sci-mathemtics/cadabra-1.31: different fixes, thanks to jlec
9
10 ---
11 sci-mathematics/cadabra/cadabra-1.31.ebuild | 32 ++++++++++++--------------
12 1 files changed, 15 insertions(+), 17 deletions(-)
13
14 diff --git a/sci-mathematics/cadabra/cadabra-1.31.ebuild b/sci-mathematics/cadabra/cadabra-1.31.ebuild
15 index f8fa928..7f3735c 100644
16 --- a/sci-mathematics/cadabra/cadabra-1.31.ebuild
17 +++ b/sci-mathematics/cadabra/cadabra-1.31.ebuild
18 @@ -4,7 +4,7 @@
19
20 EAPI="5"
21
22 -inherit eutils
23 +inherit eutils texlive-common
24
25 DESCRIPTION="Field-theory motivated computer algebra system"
26 HOMEPAGE="http://cadabra.phi-sci.com"
27 @@ -15,7 +15,7 @@ RESTRICT="mirror"
28 LICENSE="GPL-2"
29
30 SLOT="0"
31 -KEYWORDS="~x86 ~amd64"
32 +KEYWORDS="~amd64 ~x86"
33 IUSE="doc examples X"
34
35 DEPEND="
36 @@ -28,7 +28,8 @@ DEPEND="
37 dev-cpp/gtkmm:2.4
38 dev-cpp/pangomm:1.4
39 app-text/dvipng )
40 - doc? ( || ( app-text/texlive-core dev-tex/pdftex ) )"
41 + doc? ( app-doc/doxygen
42 + || ( app-text/texlive-core dev-tex/pdftex ) )"
43 RDEPEND="${DEPEND}
44 virtual/latex-base
45 dev-tex/mh"
46 @@ -43,39 +44,36 @@ src_configure(){
47 }
48
49 src_compile() {
50 - emake || die
51 + emake
52
53 if use doc; then
54 cd "${S}/doc"
55 - emake || die
56 + emake
57 cd doxygen/latex
58 - emake pdf || die
59 + emake pdf
60 fi
61 }
62
63 src_install() {
64 - emake DESTDIR="${D}" DEVDESTDIR="${D}" install || die "install died"
65 + emake DESTDIR="${D}" DEVDESTDIR="${D}" install
66
67 - dodoc AUTHORS ChangeLog INSTALL || die
68 + dodoc AUTHORS ChangeLog INSTALL
69
70 - if ( use doc )
71 - then
72 + if use doc; then
73 cd "${S}/doc/doxygen"
74 dohtml html/*
75 dodoc latex/*.pdf
76 fi
77
78 - if ( use examples )
79 - then
80 - docinto examples
81 - dodoc "${S}/examples/*"
82 + if use examples; then
83 + dodoc -r "${S}/examples/"
84 fi
85
86 - rm -rf "${D}/usr/share/TeXmacs"
87 + rm -rf "${D}/usr/share/TeXmacs" || die
88 }
89
90 pkg_postinst() {
91 - /usr/sbin/texmf-update
92 + etexmf-update
93 elog "This version of the cadabra ebuild is still under development."
94 elog "Help us improve the ebuild in:"
95 elog "http://bugs.gentoo.org/show_bug.cgi?id= 194393"
96 @@ -83,5 +81,5 @@ pkg_postinst() {
97
98 pkg_postrm()
99 {
100 - /usr/sbin/texmf-update
101 + etexmf-update
102 }