diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-04-11 16:38:39 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-04-11 16:38:39 +0000 |
commit | fd3276648080df31704a1cdb2ce1bdad8041604c (patch) | |
tree | 76264eb9c2aeada511d69ccb07ac743ec45b10ec /dev-python | |
parent | dev-cpp/libxmlpp: Bump to 2.22.0, fix leak and fix for gcc 4.3 (diff) | |
download | gentoo-2-fd3276648080df31704a1cdb2ce1bdad8041604c.tar.gz gentoo-2-fd3276648080df31704a1cdb2ce1bdad8041604c.tar.bz2 gentoo-2-fd3276648080df31704a1cdb2ce1bdad8041604c.zip |
Version bump. Make lapack detection automatic
(Portage version: 2.1.5_rc2)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/rpy/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/rpy/rpy-1.0.2.ebuild | 55 |
2 files changed, 61 insertions, 1 deletions
diff --git a/dev-python/rpy/ChangeLog b/dev-python/rpy/ChangeLog index 22cc6342dfb1..52d811c1ea3d 100644 --- a/dev-python/rpy/ChangeLog +++ b/dev-python/rpy/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/rpy # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/rpy/ChangeLog,v 1.20 2008/02/26 20:06:19 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/rpy/ChangeLog,v 1.21 2008/04/11 16:38:39 bicatali Exp $ + +*rpy-1.0.2 (11 Apr 2008) + + 11 Apr 2008; Sébastien Fabbro <bicatali@gentoo.org> +rpy-1.0.2.ebuild: + Version bump. Make lapack detection automatic 26 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org> -files/rpy-0.99.2-version-detect.patch, diff --git a/dev-python/rpy/rpy-1.0.2.ebuild b/dev-python/rpy/rpy-1.0.2.ebuild new file mode 100644 index 000000000000..c67fc0657b1c --- /dev/null +++ b/dev-python/rpy/rpy-1.0.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/rpy/rpy-1.0.2.ebuild,v 1.1 2008/04/11 16:38:39 bicatali Exp $ + +inherit distutils eutils + +DESCRIPTION="Python interface to the R Programming Language" +HOMEPAGE="http://rpy.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1 MPL-1.1" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="doc examples" + +RDEPEND=">=dev-lang/R-2.6.1 + dev-python/numpy" +DEPEND="${RDEPEND} + doc? ( || ( virtual/tetex dev-texlive/texlive-texinfo ) )" + +src_unpack() { + distutils_src_unpack + epatch "${FILESDIR}"/${PN}-1.0_rc3-version-detect.patch + epatch "${FILESDIR}"/${PN}-testfiles.patch + + # this module should exist only if R was built with USE=lapack + if [[ -e /usr/$(get_libdir)/R/modules/lapack.so ]]; then + sed -i \ + -e 's:Rlapack:lapack:g' \ + setup.py || die "sed in setup.py failed" + fi +} + +src_test() { + cd tests + PYTHONPATH=$(ls -d ../build/lib.*) \ + "${python}" testall.py || die "tests failed" +} + +src_install() { + distutils_src_install + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die + fi + + if use doc; then + cd doc + emake html pdf || die "emake docs failed" + dohtml rpy_html/* || die + insinto /usr/share/doc/${PF} + doins rpy.pdf || die + fi +} |