diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2010-02-01 20:19:15 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2010-02-01 20:19:15 +0000 |
commit | 84ccb22b70210528f6a4696550a41ce56af0288f (patch) | |
tree | b0c0d22ca837c6ae30155df5010cf34e2b50ef9f /sci-mathematics/ginac/ginac-1.5.6.ebuild | |
parent | Fix alsa-lib dep, bug 289578 (diff) | |
download | gentoo-2-84ccb22b70210528f6a4696550a41ce56af0288f.tar.gz gentoo-2-84ccb22b70210528f6a4696550a41ce56af0288f.tar.bz2 gentoo-2-84ccb22b70210528f6a4696550a41ce56af0288f.zip |
Version bump
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'sci-mathematics/ginac/ginac-1.5.6.ebuild')
-rw-r--r-- | sci-mathematics/ginac/ginac-1.5.6.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sci-mathematics/ginac/ginac-1.5.6.ebuild b/sci-mathematics/ginac/ginac-1.5.6.ebuild new file mode 100644 index 000000000000..6f1092ddd748 --- /dev/null +++ b/sci-mathematics/ginac/ginac-1.5.6.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/ginac/ginac-1.5.6.ebuild,v 1.1 2010/02/01 20:19:13 bicatali Exp $ + +EAPI=2 +inherit eutils + +DESCRIPTION="C++ library and tools for symbolic calculations" +SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/${P}.tar.bz2" +HOMEPAGE="http://www.ginac.de/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="doc" + +RDEPEND=">=sci-libs/cln-1.2.2" +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( app-doc/doxygen + media-gfx/transfig + || ( dev-texlive/texlive-fontsrecommended + app-text/ptex ) )" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.5.1-pkgconfig.patch +} + +src_compile() { + emake || die "emake failed" + if use doc; then + export VARTEXFONTS="${T}"/fonts + cd "${S}/doc/reference" + #pdf generation for reference failed (1.5.1), bug #264774 + #emake html pdf || die "emake doc reference failed" + emake html || die "emake ref failed" + cd "${S}/doc/tutorial" + emake ginac.pdf ginac.html || die "emake doc tutorial failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README NEWS AUTHORS || die + + if use doc; then + cd doc + insinto /usr/share/doc/${PF} + newins tutorial/ginac.pdf tutorial.pdf || die "tutorial install failed" + #newins reference/ginac.pdf reference.pdf || die "ref install failed" + insinto /usr/share/doc/${PF}/html/reference + doins -r reference/html_files/* || die + insinto /usr/share/doc/${PF}/html + newins tutorial/ginac.html tutorial.html + insinto /usr/share/doc/${PF}/examples + doins examples/*.cpp examples/ginac-examples.txt + fi +} |