/[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.3 - (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.2: +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.6.1.ebuild,v 1.2 2011/10/05 18:46:53 aballier 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 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_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