From 6ffd7d633801c19af8648883fee75cb2ce7686e7 Mon Sep 17 00:00:00 2001 From: grozin Date: Tue, 29 Apr 2008 22:37:57 +0000 Subject: mathgl-1.6.2: Math Graphics Library git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1032 32389bae-6d03-0410-99cf-db05cde120eb --- sci-libs/mathgl/mathgl-1.6.2.ebuild | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 sci-libs/mathgl/mathgl-1.6.2.ebuild (limited to 'sci-libs/mathgl/mathgl-1.6.2.ebuild') diff --git a/sci-libs/mathgl/mathgl-1.6.2.ebuild b/sci-libs/mathgl/mathgl-1.6.2.ebuild new file mode 100644 index 000000000..9a6b5eee0 --- /dev/null +++ b/sci-libs/mathgl/mathgl-1.6.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +inherit versionator eutils autotools + +DESCRIPTION="Math Graphics Library" +IUSE="fltk glut jpeg tiff hdf5 doc linguas_ru" +HOMEPAGE="http://mathgl.sourceforge.net/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DOC=${PN}-$(get_version_component_range 1-2 ) + +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz + mirror://sourceforge/${PN}/STIX_font.tgz + doc? ( mirror://sourceforge/${PN}/${DOC}-eng.pdf + linguas_ru? ( mirror://sourceforge/${PN}/${DOC}-rus.pdf ) )" + +DEPEND="fltk? ( x11-libs/fltk ) + glut? ( virtual/glut ) + jpeg? ( media-libs/jpeg ) + tiff? ( media-libs/tiff ) + hdf5? ( sci-libs/hdf5 )" + +#### Remove the following line when moving this ebuild to the main tree! +RESTRICT=mirror + +src_unpack() { + unpack ${A} + cd "${S}" + mv ../*.vfm fonts/ + epatch "${FILESDIR}"/${PN}-fltk.patch + eautoreconf +} + +src_compile() { + econf $(use_enable fltk ) \ + $(use_enable glut ) \ + $(use_enable jpeg ) \ + $(use_enable tiff ) \ + $(use_enable hdf5 ) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README AUTHORS || die "dodoc failed" + + if use doc; then + insinto /usr/share/doc/${P} + doins "${DISTDIR}"/${DOC}-eng.pdf + use linguas_ru && doins "${DISTDIR}"/${DOC}-rus.pdf + fi +} -- cgit v1.2.3-65-gdbad