/[gentoo-x86]/sci-mathematics/ginac/ginac-1.5.8.ebuild
Gentoo

Contents of /sci-mathematics/ginac/ginac-1.5.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri May 4 07:46:51 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ginac/ginac-1.5.8.ebuild,v 1.6 2011/10/05 18:46:53 aballier Exp $
4
5 EAPI=2
6 inherit eutils
7
8 DESCRIPTION="C++ library and tools for symbolic calculations"
9 SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/${P}.tar.bz2"
10 HOMEPAGE="http://www.ginac.de/"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc x86"
15 IUSE="doc"
16
17 RDEPEND=">=sci-libs/cln-1.2.2"
18 DEPEND="${RDEPEND}
19 virtual/pkgconfig
20 doc? ( app-doc/doxygen
21 media-gfx/transfig
22 virtual/texi2dvi
23 dev-texlive/texlive-fontsrecommended
24 )"
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch
28 }
29
30 src_compile() {
31 emake || die "emake failed"
32 if use doc; then
33 export VARTEXFONTS="${T}"/fonts
34 cd "${S}/doc/reference"
35 #pdf generation for reference failed (1.5.1), bug #264774
36 #emake html pdf || die "emake doc reference failed"
37 emake html || die "emake ref failed"
38 cd "${S}/doc/tutorial"
39 emake ginac.pdf ginac.html || die "emake doc tutorial failed"
40 fi
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" install || die "emake install failed"
45 dodoc README NEWS AUTHORS || die
46
47 if use doc; then
48 cd doc
49 insinto /usr/share/doc/${PF}
50 newins tutorial/ginac.pdf tutorial.pdf || die "tutorial install failed"
51 #newins reference/ginac.pdf reference.pdf || die "ref install failed"
52 insinto /usr/share/doc/${PF}/html/reference
53 doins -r reference/html_files/* || die
54 insinto /usr/share/doc/${PF}/html
55 newins tutorial/ginac.html tutorial.html
56 insinto /usr/share/doc/${PF}/examples
57 doins examples/*.cpp examples/ginac-examples.txt
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20