# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.9.1.ebuild,v 1.3 2009/08/07 17:18:52 bicatali Exp $ EAPI=2 inherit eutils flag-o-matic bash-completion versionator DESCRIPTION="Language and environment for statistical computing and graphics" HOMEPAGE="http://www.r-project.org/" SRC_URI="mirror://cran/src/base/R-2/${P}.tar.gz bash-completion? ( mirror://gentoo/R.bash_completion.bz2 )" LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="doc java jpeg lapack minimal nls png readline threads tk X cairo" # common depends CDEPEND="dev-lang/perl dev-libs/libpcre app-arch/bzip2 virtual/blas virtual/ghostscript cairo? ( x11-libs/cairo[X] || ( >=x11-libs/pango-1.20[X] 99R <<-EOF LDPATH=${R_HOME}/lib R_HOME=${R_HOME} EOF doenvd 99R || die "doenvd failed" dobashcompletion "${WORKDIR}"/R.bash_completion } pkg_config() { if use java; then einfo "Re-initializing java paths for ${P}" R CMD javareconf fi }