1 |
Tod, |
2 |
|
3 |
I have made some changes for the dev-lang/R ebuild to incorporate the newest |
4 |
patch at every compilation. |
5 |
|
6 |
By the way, can you get menu entry of R in kde also? |
7 |
|
8 |
The ebuild is as follows: |
9 |
------------------------------------------------------------ |
10 |
# Copyright 1999-2002 Gentoo Technologies, Inc. |
11 |
# Distributed under the terms of the GNU General Public License, v2 or later |
12 |
# Maintainer: Tod Neidt <tod@g.o> |
13 |
# /space/gentoo/cvsroot/gentoo-x86/dev-lang/R/R-1.4.1.ebuild,v 1.1 |
14 |
2002/02/20 06:12:22 tod Exp |
15 |
|
16 |
S=${WORKDIR}/${P} |
17 |
|
18 |
DESCRIPTION="R is GNU S - A language and environment for statistical |
19 |
computing and graphics." |
20 |
|
21 |
SRC_URI="http://cran.r-project.org/src/base/${P}.tgz" |
22 |
|
23 |
HOMEPAGE="http://www.r-project.org/" |
24 |
|
25 |
DEPEND="virtual/glibc |
26 |
>=sys-devel/perl-5.6.1-r3 |
27 |
>=sys-libs/readline-4.1-r3 |
28 |
>=sys-libs/zlib-1.1.3-r2 |
29 |
>=media-libs/jpeg-6b-r2 |
30 |
>=media-libs/libpng-1.0.12 |
31 |
atlas? ( dev-libs/atlas ) |
32 |
X? ( virtual/x11 ) |
33 |
tcltk? ( dev-lang/tk ) |
34 |
gnome? ( >=gnome-base/gnome-libs-1.4.1.4 )" |
35 |
|
36 |
src_unpack() { |
37 |
|
38 |
unpack ${P}.tgz |
39 |
cd ${S} |
40 |
|
41 |
wget -O ${PN}-release.diff.gz |
42 |
"ftp://ftp.stat.math.ethz.ch/Software/${PN}/${PN}-release.diff.gz" |
43 |
zcat ${PN}-release.diff.gz | patch -p1 -E || die |
44 |
} |
45 |
|
46 |
src_compile() { |
47 |
|
48 |
local myconf="--enable-R-profiling --enable-R-shlib --with-readline" |
49 |
|
50 |
#Eventually, we will want to take into account that a user may have |
51 |
#an alternate or additional blas libraries, |
52 |
#i.e. USE variable blas and and virtual/blas |
53 |
use atlas || myconf="${myconf} --without-blas" #default enabled |
54 |
|
55 |
use X || myconf="${myconf} --without-x" #default enabled |
56 |
|
57 |
if use tcltk; then |
58 |
#configure needs to find the files tclConfig.sh and |
59 |
tkConfig.sh |
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
myconf="${myconf} --with-tcltk --with-tcl-config=/usr/lib --with-tk-config=/ |
77 |
usr/lib" |
78 |
else |
79 |
myconf="${myconf} --without-tcltk" |
80 |
fi |
81 |
|
82 |
use gnome && myconf="${myconf} --with-gnome" #default disabled |
83 |
|
84 |
./configure \ |
85 |
--host=${CHOST} \ |
86 |
--prefix=/usr \ |
87 |
--infodir=/usr/share/info \ |
88 |
--mandir=/usr/share/man \ |
89 |
${myconf} || die "./configure failed" |
90 |
|
91 |
emake || die "Parallel Make Failed" |
92 |
|
93 |
} |
94 |
|
95 |
src_install () { |
96 |
|
97 |
make \ |
98 |
prefix=${D}/usr \ |
99 |
mandir=${D}/usr/share/man \ |
100 |
infodir=${D}/usr/share/info \ |
101 |
install || die "Installation Failed" |
102 |
|
103 |
#fix the R wrapper script to have the correct R_HOME_DIR |
104 |
#sed regexp borrowed from included debian rules |
105 |
cp ${D}/usr/bin/R ${S}/bin/R.orig |
106 |
sed -e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \ |
107 |
${S}/bin/R.orig > ${D}/usr/bin/R |
108 |
|
109 |
dodoc AUTHORS BUGS COPYING* ChangeLog FAQ INSTALL *NEWS README \ |
110 |
RESOURCES THANKS VERSION Y2K |
111 |
|
112 |
#Add rudimentary menu entry if gnome |
113 |
if use gnome; then |
114 |
insinto /usr/share/gnome/apps/Applications |
115 |
doins ${FILESDIR}/R.desktop |
116 |
insinto /usr/share/pixmaps |
117 |
doins ${FILESDIR}/R-logo.png |
118 |
fi |
119 |
|
120 |
} |
121 |
|
122 |
---------------------------------------------- |
123 |
Dong Chen |
124 |
CACC, ECE Dept, Duke University |
125 |
Ph: (919)401-0299x303 |