Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-lang/R
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/ChangeLog,v 1.123 2008/06/09 15:35:43 jer Exp $
10 May 2008; Markus Dittrich
Fixed improper binary path in Rscript (see bug #221061).
*R-2.7.0 (23 Apr 2008)
23 Apr 2008; Markus Dittrich
Version bump.
15 Apr 2008; Raúl Porcel
alpha stable
26 Feb 2008; Sébastien Fabbro
Re-add old R-2.2.1-r1.ebuild for old rpy dependency until rpy-1.0.1 is stable
26 Feb 2008; Sébastien Fabbro
-R-2.6.1.ebuild, R-2.6.1-r1.ebuild, R-2.6.2.ebuild:
Removed older versions, and duplicate license files (see bug #211534)
19 Feb 2008; Brent Baude
stable ppc64, bug 210229
19 Feb 2008; Markus Dittrich
Added -mminimal-toc on ppc64 to fix linking errors (see bug #210229).
17 Feb 2008; Raúl Porcel
ia64 stable wrt #210229
16 Feb 2008; Markus Meier
x86 stable, bug #210229
15 Feb 2008; nixnut
Stable on ppc wrt bug 210229
15 Feb 2008; Jeroen Roovers
Stable for HPPA (bug #210229).
15 Feb 2008; Santiago M. Mola
amd64 stable wrt bug #210229
15 Feb 2008; Ferris McCormick
Sparc stable, Bug #210229. Working since 18 January.
*R-2.6.2 (13 Feb 2008)
13 Feb 2008; Markus Dittrich
Version bump (fixes bug #209648).
11 Feb 2008; Sébastien Fabbro
-R-2.6.0-r2.ebuild, R-2.6.1-r1.ebuild:
Removed old versions. Added R_HOME environment variable
*R-2.6.1-r1 (17 Jan 2008)
17 Jan 2008; Sébastien Fabbro
Added bash-completion, also install standalone math library, added zip/unzip
run dependencies to build R packages, and really fixed docs directory, bug
#205103.
16 Jan 2008; Sébastien Fabbro
R-2.6.1.ebuild:
Forced blas dependency (bug #176755), fixed documentation directory (bug
#205103), more concise descriptions
*R-2.6.1 (26 Nov 2007)
26 Nov 2007; Markus Dittrich
Version bump.
*R-2.6.0-r2 (21 Nov 2007)
21 Nov 2007; Sébastien Fabbro
-R-2.6.0.ebuild, +R-2.6.0-r2.ebuild:
Major cleaning of dependencies and ebuild in general, add/remove USE flags
making more sense, export pdf and html viewers with xdg-open
21 Nov 2007; Joe Peterson
Add elibtoolize
21 Nov 2007; Joe Peterson
Added ~x86-fbsd keyword (bug #199368)
21 Nov 2007; Raúl Porcel
Add ~alpha/~ia64 wrt #199368
20 Nov 2007; Chris Gianelloni
Stable on amd64 wrt bug #198976.
18 Nov 2007; Jeroen Roovers
Marked ~hppa (bug #199368).
18 Nov 2007; Tobias Scherbaum
ppc stable, bug #198976
18 Nov 2007; Markus Rothe
Stable on ppc64; bug #198976
17 Nov 2007; Raúl Porcel
ia64 stable wrt security #198976
17 Nov 2007; Markus Meier
x86 stable, security bug #198976
15 Nov 2007; Ferris McCormick
Sparc stable, security bug #198976.
15 Nov 2007; Sébastien Fabbro
Oops, reverting to unstable
*R-2.6.0-r1 (15 Nov 2007)
*R-2.2.1-r1 (15 Nov 2007)
15 Nov 2007; Sébastien Fabbro
-files/R-logo.png, metadata.xml, +R-2.2.1-r1.ebuild, -R-2.5.1.ebuild,
+R-2.6.0-r1.ebuild:
Security fix with pcre (bug #198385), now use system libs. New ebuild on
soon to be commited.
*R-2.6.0 (06 Oct 2007)
06 Oct 2007; Markus Dittrich
Version bump (fixes bug #194767). Also removed obsolete versions
and patches.
11 Sep 2007; Markus Dittrich
Fixed messed up paths in libR.pc pkgconfig file (see bug #191986).
22 Jul 2007; Hans de Graaff
R-2.4.1.ebuild, R-2.5.0.ebuild, R-2.5.1.ebuild:
Drop virtual/x11 references.
*R-2.5.1 (30 Jun 2007)
30 Jun 2007; Markus Dittrich
Version bump.
11 May 2007; Markus Dittrich
Added gd useflag to allow users to install the GDD module (this
fixes bug #177846). Thanks much to Neil
for bringing this to our attention.
30 Apr 2007; Markus Dittrich
Fixed improper path in Rscript (closes bug #176546).
27 Apr 2007; Danny van Dyk
Forgot to copy ebuild after final testing. Sandbox violations is fixed now.
*R-2.5.0 (27 Apr 2007)
27 Apr 2007; Danny van Dyk
New version. As-needed patches have been applied upstream. This version
can't be build in parallel anymore.
13 Jan 2007; Markus Dittrich
-R-2.2.0-r1.ebuild, R-2.2.1.ebuild, -R-2.3.0.ebuild, -R-2.3.1.ebuild,
-R-2.4.0.ebuild:
Removed obsolete ebuilds and finally got rid of the tcltk flag
in R-2.2.1 (see bug #17808).
*R-2.4.1 (19 Dec 2006)
19 Dec 2006; Markus Dittrich
+files/R-2.4.1-as-needed-gentoo.patch, +R-2.4.1.ebuild:
New version (fixes bug #158346).
24 Oct 2006; Markus Dittrich
+files/R-2.4.0-as-needed-gentoo.patch, R-2.4.0.ebuild:
Fixed linking problems with as-needed. See bug #151908.
22 Oct 2006; Markus Dittrich
Append -std=gnu99 to CFLAGS since it is needed to compile
several additional R packages via its custom makefile
(this fixes bug #152379). Thanks to Aarre Laakso
for pointing this out.
*R-2.4.0 (05 Oct 2006)
05 Oct 2006; Danny van Dyk
Added 2.4.0 release.
07 Aug 2006; Ferris McCormick
Stable on sparc --- Bug #135318 --- has been running fine since last January.
(But note that on some systems, FEATURES=test fails: Compare Comments 5, 8,
9, 10, and 11.)
28 Jun 2006; Luca Barbato
Made it use -fPIC instead of -fpic
17 Jun 2006; Danny van Dyk
Marked stable on ia64.
10 Jun 2006; Michael Hanselmann
Stable on ppc.
07 Jun 2006; Chris Gianelloni
Stable on x86 wrt bug #135318.
06 Jun 2006; Markus Rothe
Stable on ppc64; bug #135318
02 Jun 2006; Danny van Dyk
R-2.2.0-r1.ebuild, R-2.2.1.ebuild, R-2.3.0.ebuild, R-2.3.1.ebuild:
Added inheritance of flag-o-matic for filter-ldflags calls.
*R-2.3.1 (02 Jun 2006)
02 Jun 2006; Danny van Dyk
+R-2.3.1.ebuild:
Added R-2.3.1. Marked R-2.2.1 stable on amd64.
*R-2.3.0 (10 May 2006)
10 May 2006; Danny van Dyk
R-2.2.0-r1.ebuild, R-2.2.1.ebuild, +R-2.3.0.ebuild:
Added version 2.3.0: Fixes bug #127818. Added filter for -Bdirect LDFLAG:
Fixes bug #122465.
01 Apr 2006; Aron Griffis
Mark 2.2.1 ~ia64
16 Jan 2006; Marcus D. Hanwell
Ported deps for modular X.
16 Jan 2006; Marcus D. Hanwell
Add gfortran to the list of allowed Fortran compilers, closes bug 118147.
*R-2.2.1 (03 Jan 2006)
03 Jan 2006; Marcus D. Hanwell
Version bump, closes bug 115304.
*R-2.2.0-r1 (12 Dec 2005)
12 Dec 2005; Marcus D. Hanwell
-R-2.2.0.ebuild, +R-2.2.0-r1.ebuild:
Added some extra seds to get rid of temp paths, closes bug 115140. Pruned
old versions.
23 Nov 2005; Marcus D. Hanwell
Manifest:
Fixed bad digest, closes bug 113319.
*R-2.2.0 (22 Nov 2005)
22 Nov 2005; Danny van Dyk
+files/R-2.2.0-ifc-configure.patch, R-2.1.0-r1.ebuild, R-2.1.1.ebuild,
+R-2.2.0.ebuild:
Added version 2.2.0 with support for compilation with Intel(R) Fortran
Compiler. Removed obsolete version 2.0.1. Fixed stale file Bug by running
64bit test in ${T} now.
03 Sep 2005; Markus Rothe
Stable on ppc64
02 Sep 2005; Michael Hanselmann
Stable on ppc.
22 Aug 2005; Gustavo Zacarias
Stable on sparc
22 Aug 2005; Marcus D. Hanwell
R-2.1.1.ebuild:
Removed old version. Stable on amd64 and x86.
13 Aug 2005; Danny van Dyk
R-2.1.0-r1.ebuild, R-2.1.1.ebuild:
Changed SRC_URI to new 'cran' thirdparty mirror.
*R-2.1.1 (01 Jul 2005)
01 Jul 2005; Danny van Dyk
R-2.1.0-r1.ebuild, +R-2.1.1.ebuild:
Moved 64bit check to pkg_setup() to make fortran.eclass work again. Bumped
to version 2.1.1
18 Jun 2005; Markus Rothe
Stable on ppc64
17 Jun 2005; Michael Hanselmann
Stable on ppc.
13 Jun 2005; Gustavo Zacarias
Stable on sparc
12 Jun 2005; Marcus D. Hanwell
Removing old version. Closes bug 91512.
11 Jun 2005; Marcus D. Hanwell
Stable on amd64 and x86.
07 Jun 2005; Patrick Kursawe
R-2.1.0-r1.ebuild:
Added LDPATH to R libs, bug #90601
01 Jun 2005; Mike Frysinger
R-2.0.1.ebuild:
Change USE=bzlib to USE=bzip2.
*R-1.9.0-r1 (25 May 2005)
25 May 2005; Marcus D. Hanwell
Bring back R-1.9.0-r1 until <=dev-python/rpy-0.3.5-r1 are removed from
portage.
25 May 2005; Marcus D. Hanwell
Removed old version.
25 May 2005; Luca Barbato
Marked ppc
24 May 2005; Marcus D. Hanwell
Updated 64 bit detection code.
10 May 2005; Gustavo Zacarias
Stable on sparc
08 May 2005; Marcus D. Hanwell
-R-2.0.0.ebuild, R-2.0.1.ebuild, -R-2.1.0.ebuild, R-2.1.0-r1.ebuild:
Marked 2.0.1 stable on amd64 and x86, cleaned out old ebuilds. Added new 64
bit detection code to 2.1.0-r1 as per bug 91512.
*R-2.1.0-r1 (29 Apr 2005)
29 Apr 2005; Marcus D. Hanwell
Get rid of obsolete USE flags, tidy up deps a little. Thanks to MATSUU
Takuto
21 Apr 2005; Marcus D. Hanwell
Update deps to reflect new USE flags.
*R-2.1.0 (20 Apr 2005)
20 Apr 2005; Marcus D. Hanwell
Version bump, ebuild cleanups and some additional USE flags. Thanks to
matsuu for some of the suggestions in bug 67834.
*R-2.0.1 (21 Feb 2005)
21 Feb 2005; Danny van Dyk
+R-2.0.1.ebuild:
Fixed a sandbox violation in R-2.0.0 (BUG #79004) and marked stabled on
amd64. Added R-2.0.1 (BUG #72313).
17 Feb 2005; Bryan Østergaard
~alpha keyword.
02 Feb 2005; Danny van Dyk
GNU Fortran 77 profile name changed to g77 in fortran.eclass
17 Nov 2004; Markus Rothe
stable on ppc64
10 Oct 2004; Danny van Dyk
R-1.9.0-r1.ebuild, R-2.0.0.ebuild:
R-2.0.0 now in testing on x86,sparc,amd64,ppc and ppc64; using new
fortran.eclass. R-1.9.0-r1 stable on all arches. Removed obsolete R-1.8.1.
*R-2.0.0 (07 Oct 2004)
07 Oct 2004; George Shapovalov
new version, masked with KEYWORDS="-*" to get a bit more testing
30 Sep 2004; Ferris McCormick
Stable for sparc.
12 Sep 2004; Danny van Dyk
R-1.9.1.ebuild:
Removed f2c support for dev-lang/R on 64-bit arches. This is entirely R's
fault. f2c works perfectly right. Future versions of dev-lang/R will check for
this in ./configure. For R-1.9.{0,1} the ebuild checks for it. Fixes BUG
#61042.
*R-1.9.1 (22 Aug 2004)
09 Sep 2004; Philippe Trottier
marked ~ppc64
22 Aug 2004; Danny van Dyk
+R-1.9.1.ebuild:
Version bump to 1.9.1 (current stable). Removed obsolete 1.9.0.
06 Aug 2004; Danny van Dyk
Marked stable on amd64.
11 Jul 2004; Danny van Dyk
R-1.9.0-r1.ebuild, R-1.9.0.ebuild:
Fixed BUG #56616. Tidied up g77/f2c check in >=R-1.9.0. Added f2c USE flag.
01 Jul 2004; Jeremy Huddleston
R-1.9.0-r1.ebuild, R-1.9.0.ebuild:
virtual/glibc -> virtual/libc
01 Jul 2004; Danny van Dyk
R-1.9.0-r1.ebuild, R-1.9.0.ebuild:
Fixed BUG #55386 for amd64. Pending for rest of arches.
*R-1.9.0-r1 (05 Jun 2004)
05 Jun 2004; Patrick Kursawe
Added a few USE flags according to suggestions by Leo Chen
28 May 2004; Patrick Kursawe
Removing the f77 USE flag check - just giving a hint when no g77 found.
17 May 2004; Patrick Kursawe
adding f77 to IUSE
11 May 2004; Patrick Kursawe
pkg_setup checks for g77 presence now.
20 Apr 2004; Patrick Kursawe
Changed dependency - works also with current libglade, see bug #47825
*R-1.9.0 (13 Apr 2004)
13 Apr 2004; Patrick Kursawe
R-1.9.0.ebuild:
Version bump, added write permission for /var/cache/fonts
01 Apr 2004; Patrick Kursawe
R-1.8.1.ebuild:
1.8.1 is stable
22 Mar 2004; Patrick Kursawe
Fixing bug #40100 (problems with newer Xfree)
25 Feb 2004; Patrick Kursawe
R-1.4.1.ebuild, R-1.5.1.ebuild, R-1.6.1.ebuild, R-1.6.2.ebuild,
R-1.7.0.ebuild, R-1.7.1.ebuild, R-1.8.0.ebuild, files/R-1.5.1-tcltk.diff:
Big cleanup, marking 1.8.0 as stable
*R-1.8.1 (17 Feb 2004)
17 Feb 2004; Patrick Kursawe
Version bump
21 Oct 2003; David Holm
Added to ~ppc.
*R-1.8.0 (16 Oct 2003)
16 Oct 2003; George Shapovalov
new version (#30784), fixes gnome? dependencies
thanks to kdh
*R-1.7.1 (19 Jun 2003)
19 Jun 2003; George Shapovalov
new version (#23012), now correctly builds tcltk support
fix and update by Tristan Henderson
*R-1.7.0 (29 May 2003)
29 May 2003; Grant Goodyear
Version update. Thanks to Stuart Luppescu for the heads-up.
*R-1.6.2 (12 Apr 2003)
12 Apr 2003; Grant Goodyear
Version bump
*R-1.6.1 (12 Dec 2002)
12 Dec 2002; George Shapovalov
version update, patching is unnecessary now.
Update subitted by Sam Wouters
* Autoupdate keywords (12-6-02)
06 Dec 2002; Rodney Rees
*R-1.5.1 (11 July 2002)
09 Aug 2002; George Shapovalov
fixed the wrappers:
R installs two identical wrappers (R that invoke R.bin) under /usr/bin and
/usr/lib/R/bin/. Only one of these was modified to have correct R_HOME_DIR
Changed ebuild to modify R under /usr/lib/R/bin and symlink it into /usr/bin
11 July 2002; George Shapovalov
upped version
new version submitted by Tristan Henderson
*R-1.4.1-r1 (11 Apr 2002)
11 Apr 2002; Spider
Forcing an upgrade due to libpng upgrade.
*R-1.4.1 (19 Feb 2002)
19 Feb 2002; T.Neidt
Initial commit. R is GNU S - A language and environment for statistical
computing and graphics. Gnome and tcltk gui's are available if in USE.
If gnome, a rudimentary menu entry is made under Applications.
However, it has the annoying tendency to pop up a terminal window to start
the gui. (todo 1)
Also, the html files are not accessible from the toolbar menu entry unless
you happen to be running netscape. (todo 2)
This ebuild makes use of a new USE variable, 'atlas', which will compile
R using the auto-tuned blas libraries provided by atlas. NOTE: atlas ebuild
currently only provides static libraries. Shared libraries are in the works.
DIST R-2.2.1.tar.gz 13665367 RMD160 b63b6c5ef1db27a879783460b0ecb6de0d4bba18 SHA1 537e0b89b8de55c1156474c76c19c1fcc210f756 SHA256 db442c769e5e8ecbdb33c771e41bdac4330b565652c5ca730f26f975df30c624
DIST R-2.6.1.tar.gz 15519691 RMD160 0e50237916e03c9b88ab558c39a9a587aabf4991 SHA1 6f2c8694f1935fda382796d225e45bd6f8f7755b SHA256 8fe505cbd9562cc84422475bc5c0b8e1b88b14d0c9e11d0de4f9e83ae8ce2563
DIST R-2.6.2.tar.gz 15569391 RMD160 7956c284aad3c2d4fc85d566b45e2ba308dffefb SHA1 3d06b12cbf1dab25ddd759522157e6cc6a8eae19 SHA256 7364415bb2b382110a0b94c4c894b1c7b032561dad8b1456cc27382ad496fe03
DIST R-2.7.0.tar.gz 16396250 RMD160 c3c9cf0c0a1eb6191492f1be19e277e8223a42c9 SHA1 d0a3193e474696ad767845ef6b8ee1555a26b898 SHA256 15cba2e295dfabaa9a7b7490ec0db489691fbbc769274980eed7e5d48a0c149f
DIST R.bash_completion.bz2 4019 RMD160 796951fb32e9ea4074dcd5ba3da5955ec0193993 SHA1 05ddebef0df16f0bf35aecc8fcb702ad5d106e5e SHA256 424790f7be27a0aad7b65289c97cb15d2ca9ee272f30f3e5c906217e487c7f85
EBUILD R-2.2.1-r1.ebuild 3273 RMD160 d0611bf5cb4561a1f663c78dc6e19ef445425db7 SHA1 efaec8f322ce1651bc34ce4f2168aeb9271309cb SHA256 bbb423385fe2336e6f809972f44b8d4ce86e3f54dbb14e8120294b664d8af123
EBUILD R-2.6.1-r1.ebuild 3401 RMD160 83da6e2bc36766c9a7101473623a441ba32e808e SHA1 3f6bfcc0d0ee71431df82096a0164eb8fc62d862 SHA256 0d6da8fba7056cb620d68fa5b7d1c4cdd607345cedd7fad8ece669da08d1e6c7
EBUILD R-2.6.2.ebuild 3307 RMD160 a85d1b2f18cb4743c5fbd4d058548caebbf942b9 SHA1 074ebe6ec27ee0c7cd55aa4c34ce75301d9934c5 SHA256 6a1776092f35312942b29a03e706cd5bc7bc1b7a32b74daa612b7945013b402d
EBUILD R-2.7.0.ebuild 3446 RMD160 d15dc63c9e0805ddddbc91a85dc065b49406d9c3 SHA1 1f5da6cf10ddc60eab1ebb51d5210639a9595922 SHA256 1908afb3b14c255be41c7ebeb86d8d2252bf3dd063632a83b69f2596246cf82d
MISC ChangeLog 18317 RMD160 59633deb32c044cf52e9fdba892aa6a23196e557 SHA1 b8047a06a91abbd80acb1c50459fa69a019b45f5 SHA256 d19ee0ddd20186d4ae1a4fb0c93f302b68e47504a5144fa320136928c8c186de
MISC metadata.xml 1019 RMD160 7bafb2129d1666600d4324d7979f98d4afe896e8 SHA1 7f8e029d6edce5402c81eb9b6fb088e545dc91b4 SHA256 8dbe1befd1f6009b4c346f090c07edb79ca14b04ca5cd02dbd5ba0a4c0106ace
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.2.1-r1.ebuild,v 1.10 2008/02/26 20:05:12 bicatali Exp $
inherit fortran toolchain-funcs flag-o-matic
DESCRIPTION="R is GNU S - A 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"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ia64 ppc ppc64 sparc x86"
IUSE="blas jpeg nls png readline tk X lapack"
RDEPEND=">=dev-lang/perl-5.6.1-r3
>=dev-libs/libpcre-7.3
app-arch/bzip2
readline? ( >=sys-libs/readline-4.1-r3 )
jpeg? ( >=media-libs/jpeg-6b-r2 )
png? ( >=media-libs/libpng-1.2.1 )
blas? ( virtual/blas )
lapack? ( virtual/lapack )
tk? ( dev-lang/tk
dev-lang/tcl )
X? ( x11-libs/libX11 )"
DEPEND="${RDEPEND}
X? ( x11-proto/xproto
x11-libs/libXt
x11-libs/libX11 )"
AT_M4DIR="${S}/m4"
pkg_setup() {
# Test for a 64 bit architecture - f2c won't work on 64 bit archs with R.
# Thanks to vapier for providing the test.
cd "${T}"
echo 'int main(){}' > test.c
$(tc-getCC) -c test.c -o test.o
if file test.o | grep -qs 64-bit ; then
einfo "64 bit architecture detected, using g77 or gfortran."
FORTRAN="gfortran g77 ifc"
else
FORTRAN="gfortran g77 f2c"
fi
rm -f test.{c,o}
fortran_pkg_setup
filter-ldflags -Wl,-Bdirect -Bdirect
}
src_compile() {
local myconf="--enable-R-profiling --enable-R-shlib --enable-linux-lfs"
if use tk; then
#configure needs to find the files tclConfig.sh and tkConfig.sh
myconf="${myconf} --with-tcltk --with-tcl-config=/usr/lib/tclConfig.sh
--with-tk-config=/usr/lib/tkConfig.sh"
else
myconf="${myconf} --without-tcltk"
fi
econf \
--with-system-zlib \
--with-system-bzlib \
--with-system-pcre \
$(use_enable nls) \
$(use_with blas) \
$(use_with lapack) \
$(use_with jpeg jpeglib) \
$(use_with png libpng) \
$(use_with readline) \
$(use_with X x) \
${myconf} || die "econf failed"
emake || die "emake failed"
}
src_install() {
make \
prefix="${D}"/usr \
mandir="${D}"/usr/share/man \
infodir="${D}"/usr/share/info \
rhome="${D}"/usr/$(get_libdir)/R \
install || die "Installation Failed"
# fix the R wrapper script to have the correct R_HOME_DIR
# sed regexp borrowed from included debian rules
sed \
-e "/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/$(get_libdir)/R:" \
-i "${D}"/usr/$(get_libdir)/R/bin/R \
|| die "sed failed."
# The same kinds of seds are needed for these variables too, see bug 115140
sed \
-e "/^R_SHARE_DIR=.*/s::R_SHARE_DIR=/usr/$(get_libdir)/R/share:" \
-e "/^R_INCLUDE_DIR=.*/s::R_INCLUDE_DIR=/usr/$(get_libdir)/R/include:" \
-e "/^R_DOC_DIR=.*/s::R_DOC_DIR=/usr/$(get_libdir)/R/doc:" \
-i "${D}"/usr/$(get_libdir)/R/bin/R \
|| die "sed failed."
# R installs two identical wrappers under /usr/bin and /usr/lib/R/bin/
# the 2nd one is corrected by above sed, the first is replaced by a symlink
cd "${D}"/usr/bin/
rm R
dosym ../$(get_libdir)/R/bin/R /usr/bin/R
dodir /etc/env.d
echo -n \
"LDPATH=\"/usr/$(get_libdir)/R/lib\"" \
> "${D}"/etc/env.d/99R
cd "${S}"
dodoc AUTHORS BUGS COPYING* ChangeLog FAQ *NEWS README \
RESOURCES THANKS VERSION Y2K
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.6.1-r1.ebuild,v 1.12 2008/04/15 15:27:19 armin76 Exp $
inherit fortran flag-o-matic bash-completion
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 tk X"
# common depends
CDEPEND="dev-lang/perl
>=dev-libs/libpcre-7.3
app-arch/bzip2
virtual/blas
virtual/ghostscript
readline? ( sys-libs/readline )
jpeg? ( media-libs/jpeg )
png? ( media-libs/libpng )
lapack? ( virtual/lapack )
tk? ( dev-lang/tk )
X? ( x11-libs/libXmu x11-misc/xdg-utils )"
DEPEND="${CDEPEND}
dev-util/pkgconfig
doc? ( virtual/latex-base
|| ( dev-texlive/texlive-fontsrecommended virtual/tetex ) )"
RDEPEND="${CDEPEND}
app-arch/unzip
app-arch/zip
java? ( >=virtual/jre-1.5 )"
R_HOME=/usr/$(get_libdir)/R
pkg_setup() {
FORTRAN="gfortran ifc g77"
fortran_pkg_setup
export FFLAGS="${FFLAGS:--O2}"
[[ ${FORTRANC} = gfortran || ${FORTRANC} = if* ]] && \
export FCFLAGS="${FCFLAGS:-${FFLAGS}}"
filter-ldflags -Wl,-Bdirect -Bdirect
# this is needed to properly compile additional R packages
# (see bug #152379)
append-flags -std=gnu99
# this is needed for linking on ppc64 (see bug #210229)
use ppc64 && append-flags -mminimal-toc
}
src_compile() {
# fix packages.html for doc (bug #205103)
# check in later versions if fixed
sed -i \
-e "s:../../library:../../../../$(get_libdir)/R/library:g" \
src/library/tools/R/packageshtml.R \
|| die "sed failed"
use lapack && \
export LAPACK_LIBS="$(pkg-config --libs lapack)"
if use X; then
export R_BROWSER="$(type -p xdg-open)"
export R_PDFVIEWER="$(type -p xdg-open)"
fi
econf \
--enable-R-profiling \
--enable-memory-profiling \
--enable-R-shlib \
--enable-linux-lfs \
--with-system-zlib \
--with-system-bzlib \
--with-system-pcre \
--with-blas="$(pkg-config --libs blas)" \
--docdir=/usr/share/doc/${PF} \
rdocdir=/usr/share/doc/${PF} \
$(use_enable nls) \
$(use_with lapack) \
$(use_with tk tcltk) \
$(use_with jpeg jpeglib) \
$(use_with !minimal recommended-packages) \
$(use_with png libpng) \
$(use_with readline) \
$(use_with X x) \
|| die "econf failed"
emake || die "emake failed"
if use doc; then
export VARTEXFONTS="${T}/fonts"
emake info pdf || die "emake docs failed"
fi
emake -j1 -C src/nmath/standalone || die "emake math library failed"
}
src_install() {
# -j1 because creates various dirs sequentially (hit should be small)
emake -j1 DESTDIR="${D}" install || die "emake install failed"
if use doc; then
emake DESTDIR="${D}" \
install-info install-pdf || die "emake install docs failed"
fi
emake -j1 \
-C src/nmath/standalone \
DESTDIR="${D}" install \
|| die "emake install math library failed"
# env file
cat > 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
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.6.2.ebuild,v 1.2 2008/02/26 17:32:40 bicatali Exp $
inherit fortran flag-o-matic bash-completion
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 tk X"
# common depends
CDEPEND="dev-lang/perl
>=dev-libs/libpcre-7.3
app-arch/bzip2
virtual/blas
virtual/ghostscript
readline? ( sys-libs/readline )
jpeg? ( media-libs/jpeg )
png? ( media-libs/libpng )
lapack? ( virtual/lapack )
tk? ( dev-lang/tk )
X? ( x11-libs/libXmu x11-misc/xdg-utils )"
DEPEND="${CDEPEND}
dev-util/pkgconfig
doc? ( virtual/latex-base
|| ( dev-texlive/texlive-fontsrecommended virtual/tetex ) )"
RDEPEND="${CDEPEND}
app-arch/unzip
app-arch/zip
java? ( >=virtual/jre-1.5 )"
R_HOME=/usr/$(get_libdir)/R
pkg_setup() {
FORTRAN="gfortran ifc g77"
fortran_pkg_setup
export FFLAGS="${FFLAGS:--O2}"
[[ ${FORTRANC} = gfortran || ${FORTRANC} = if* ]] && \
export FCFLAGS="${FCFLAGS:-${FFLAGS}}"
filter-ldflags -Wl,-Bdirect -Bdirect
# this is needed to properly compile additional R packages
# (see bug #152379)
append-flags -std=gnu99
}
src_compile() {
# fix packages.html for doc (bug #205103)
# check in later versions if fixed
sed -i \
-e "s:../../library:../../../../$(get_libdir)/R/library:g" \
src/library/tools/R/packageshtml.R \
|| die "sed failed"
use lapack && \
export LAPACK_LIBS="$(pkg-config --libs lapack)"
if use X; then
export R_BROWSER="$(type -p xdg-open)"
export R_PDFVIEWER="$(type -p xdg-open)"
fi
econf \
--enable-R-profiling \
--enable-memory-profiling \
--enable-R-shlib \
--enable-linux-lfs \
--with-system-zlib \
--with-system-bzlib \
--with-system-pcre \
--with-blas="$(pkg-config --libs blas)" \
--docdir=/usr/share/doc/${PF} \
rdocdir=/usr/share/doc/${PF} \
$(use_enable nls) \
$(use_with lapack) \
$(use_with tk tcltk) \
$(use_with jpeg jpeglib) \
$(use_with !minimal recommended-packages) \
$(use_with png libpng) \
$(use_with readline) \
$(use_with X x) \
|| die "econf failed"
emake || die "emake failed"
if use doc; then
export VARTEXFONTS="${T}/fonts"
emake info pdf || die "emake docs failed"
fi
emake -j1 -C src/nmath/standalone || die "emake math library failed"
}
src_install() {
# -j1 because creates various dirs sequentially (hit should be small)
emake -j1 DESTDIR="${D}" install || die "emake install failed"
if use doc; then
emake DESTDIR="${D}" \
install-info install-pdf || die "emake install docs failed"
fi
emake -j1 \
-C src/nmath/standalone \
DESTDIR="${D}" install \
|| die "emake install math library failed"
# env file
cat > 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
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/R/R-2.7.0.ebuild,v 1.2 2008/05/10 15:01:59 markusle Exp $
inherit fortran flag-o-matic bash-completion
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 tk X"
# common depends
CDEPEND="dev-lang/perl
>=dev-libs/libpcre-7.3
app-arch/bzip2
virtual/blas
virtual/ghostscript
readline? ( sys-libs/readline )
jpeg? ( media-libs/jpeg )
png? ( media-libs/libpng )
lapack? ( virtual/lapack )
tk? ( dev-lang/tk )
X? ( x11-libs/libXmu x11-misc/xdg-utils )"
DEPEND="${CDEPEND}
dev-util/pkgconfig
doc? ( virtual/latex-base
|| ( dev-texlive/texlive-fontsrecommended virtual/tetex ) )"
RDEPEND="${CDEPEND}
app-arch/unzip
app-arch/zip
java? ( >=virtual/jre-1.5 )"
R_HOME=/usr/$(get_libdir)/R
pkg_setup() {
FORTRAN="gfortran ifc g77"
fortran_pkg_setup
export FFLAGS="${FFLAGS:--O2}"
[[ ${FORTRANC} = gfortran || ${FORTRANC} = if* ]] && \
export FCFLAGS="${FCFLAGS:-${FFLAGS}}"
filter-ldflags -Wl,-Bdirect -Bdirect
# this is needed to properly compile additional R packages
# (see bug #152379)
append-flags -std=gnu99
}
src_compile() {
# fix packages.html for doc (bug #205103)
# check in later versions if fixed
sed -i \
-e "s:../../library:../../../../$(get_libdir)/R/library:g" \
src/library/tools/R/packageshtml.R \
|| die "sed failed"
# fix Rscript patch
sed -e "s:-DR_HOME='\"\$(rhome)\"':-DR_HOME='\"/usr/lib/${PN}/\"':" \
-i src/unix/Makefile.in || die "sed failed"
use lapack && \
export LAPACK_LIBS="$(pkg-config --libs lapack)"
if use X; then
export R_BROWSER="$(type -p xdg-open)"
export R_PDFVIEWER="$(type -p xdg-open)"
fi
econf \
--enable-R-profiling \
--enable-memory-profiling \
--enable-R-shlib \
--enable-linux-lfs \
--with-system-zlib \
--with-system-bzlib \
--with-system-pcre \
--with-blas="$(pkg-config --libs blas)" \
--docdir=/usr/share/doc/${PF} \
rdocdir=/usr/share/doc/${PF} \
$(use_enable nls) \
$(use_with lapack) \
$(use_with tk tcltk) \
$(use_with jpeg jpeglib) \
$(use_with !minimal recommended-packages) \
$(use_with png libpng) \
$(use_with readline) \
$(use_with X x) \
|| die "econf failed"
emake || die "emake failed"
if use doc; then
export VARTEXFONTS="${T}/fonts"
emake info pdf || die "emake docs failed"
fi
emake -j1 -C src/nmath/standalone || die "emake math library failed"
}
src_install() {
# -j1 because creates various dirs sequentially (hit should be small)
emake -j1 DESTDIR="${D}" install || die "emake install failed"
if use doc; then
emake DESTDIR="${D}" \
install-info install-pdf || die "emake install docs failed"
fi
emake -j1 \
-C src/nmath/standalone \
DESTDIR="${D}" install \
|| die "emake install math library failed"
# env file
cat > 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
}
R is GNU S, a system for statistical computation and graphics. It
consists of a language plus a run-time environment with graphics, a
debugger, access to certain system functions, and the ability to run
programs stored in script files.
The core of R is an interpreted computer language which allows
branching and looping as well as modular programming using functions.
The R distribution contains functionality for a large number of
statistical procedures such as: linear and generalized linear
models, nonlinear regression models, time series analysis, classical
parametric and nonparametric tests, clustering, smoothing and
graphical data representations. Additional modules ("add-on
packages") are available for a variety of specific purposes but are
not distributed with this package.