# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kde DESCRIPTION="A KDE graphical frontend for R, the statistics language" HOMEPAGE="http://rkward.sourceforge.net/" SRC_URI="mirror://sourceforge/rkward/${P}.tar.gz" LICENSE="GPL-2" SLOT=0 KEYWORDS="~x86" IUSE="kde" DEPEND="dev-lang/R" EXTRA_ECONF="--with-extra-libs=/usr/lib/R/lib --with-extra-includes=/usr/lib/R/include" src_compile() { kde_src_compile # This makefile installs the R module directly and causes a sandbox violation. # Call the R installer in pkg_postinst instead, where the sandbox is disabled # TODO: install this file with the package and create a pkg_prerm to uninstall the R module sed -i 's/-R CMD/#-R CMD/' ${WORKDIR}/${P}/rkward/rbackend/rpackages/Makefile } pkg_postinst() { sed -i 's/#-R CMD/-R CMD/' ${WORKDIR}/${P}/rkward/rbackend/rpackages/Makefile (cd ${WORKDIR}/${P}/rkward/rbackend/rpackages; make install) } need-kde 3.2