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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jul 26 17:42:36 2011 UTC (8 years, 10 months ago) by bicatali
Branch: MAIN
Version bump

(Portage version: 2.1.10.7/cvs/Linux x86_64)

1 bicatali 1.1 # Copyright 1999-2011 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.6.0.ebuild,v 1.1 2011/06/13 21:54:19 bicatali Exp $
4    
5     EAPI=4
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 static-libs"
16    
17     RDEPEND=">=sci-libs/cln-1.2.2"
18     DEPEND="${RDEPEND}
19     dev-util/pkgconfig
20     doc? ( app-doc/doxygen
21     media-gfx/transfig
22     virtual/texi2dvi
23     || ( dev-texlive/texlive-fontsrecommended
24     app-text/ptex ) )"
25    
26     src_prepare() {
27     epatch "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch
28     }
29    
30     src_configure() {
31     econf \
32     --disable-rpath \
33     $(use_enable static-libs static)
34     }
35    
36     src_compile() {
37     emake
38     if use doc; then
39     export VARTEXFONTS="${T}"/fonts
40     cd "${S}/doc/reference"
41     #pdf generation for reference failed (1.5.1), bug #264774
42     #emake html pdf || die "emake doc reference failed"
43     emake html
44     cd "${S}/doc/tutorial"
45     emake ginac.pdf ginac.html
46     fi
47     }
48    
49     src_install() {
50     default
51     if use doc; then
52     cd doc
53     insinto /usr/share/doc/${PF}
54     newins tutorial/ginac.pdf tutorial.pdf
55     insinto /usr/share/doc/${PF}/html/reference
56     doins -r reference/html_files/*
57     insinto /usr/share/doc/${PF}/html
58     newins tutorial/ginac.html tutorial.html
59     insinto /usr/share/doc/${PF}/examples
60     doins examples/*.cpp examples/ginac-examples.txt
61     fi
62     }

  ViewVC Help
Powered by ViewVC 1.1.20