# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="R is a language and environment for statistical computing and graphics." HOMEPAGE="http://www.r-project.org/" SRC_URI="http://cran.r-project.org/src/base/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="" #RDEPEND="" S=${WORKDIR}/${P} src_compile() { local myconf mymake #Necessary to run rpy myconf="${myconf} \ --enable-R-shlib" econf ${myconf} \ || die "econf ${myconf} failed" emake \ || die "emake failed" mymake="check" use doc && mymake="${mymake} dvi pdf info" emake ${mymake} \ || die "emake ${mymake} failed" } src_install() { local mymake mymake="" use doc && mymake="${mymake} install-dvi install-pdf install-info" einstall ${mymake} \ || die "einstall ${mymake} failed" sed -i -e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' ${D}/usr/bin/R }