# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="python tcltk doc debug" DESCRIPTION="Library of functions useful for making scientific plots" HOMEPAGE="http://plplot.sourceforge.net/" SRC_URI="mirror://sourceforge/plplot/plplot-${PV}.tar.gz" LICENSE="LGPL" SLOT="0" KEYWORDS="x86 sparc" DEPEND="virtual/glibc python? ( dev-python/numeric ) tcltk? ( dev-lang/tcl )" S=${WORKDIR}/plplot-${PV} MAKEOPTS="${MAKEOPTS} -j1" #doesn't compile with >=2 src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}.patch } src_compile() { local myconf="--disable-dyndrivers" #dyndrivers causes segfaults use doc && myconf="${myconf} --with-prebuilddoc" use debug && myconf="${myconf} --with-debug" econf ${myconf} || die "./configure failed" emake || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO }