# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

IUSE=""

DESCRIPTION="Interfaces R with the AT&T GraphViz library to provide the ability 
for plotting R graph objects from the graph package"

HOMEPAGE="http://www.bioconductor.org/repository/devel/package/html/Rgraphviz.html"

SRC_URI="http://www.bioconductor.org/repository/devel/package/Source/Rgraphviz_${PV}.tar.gz"

LICENSE="lgpl"
SLOT="0"
KEYWORDS="~x86"

DEPEND=">=dev-lang/R-1.7.1 
	media-gfx/graphviz dev-libs/graph"

RDEPEND=${DEPEND}
S=${WORKDIR}/${PN}

src_install() {
	# install into the fakeroot, avoiding sandbox violates
	dodir /usr/lib/R/library
	/usr/bin/R INSTALL --library=${D}/usr/lib/R/library \
		${S} || die
}