Lines 4-14
Link Here
|
4 |
|
4 |
|
5 |
inherit 64-bit fortran |
5 |
inherit 64-bit fortran |
6 |
|
6 |
|
7 |
IUSE="blas lapack X tcltk gnome zlib bzlib pcre" |
7 |
IUSE="blas lapack X tcltk gnome zlib bzlib pcre cjk" |
8 |
|
8 |
|
9 |
DESCRIPTION="R is GNU S - A language and environment for statistical computing and graphics." |
9 |
DESCRIPTION="R is GNU S - A language and environment for statistical computing and graphics." |
10 |
|
10 |
|
11 |
SRC_URI="http://cran.r-project.org/src/base/R-2/${P}.tar.gz" |
11 |
SRC_URI="http://cran.r-project.org/src/base/R-2/${P}.tar.gz |
|
|
12 |
cjk? ( |
13 |
http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.gnome.20041005.patch |
14 |
http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.main.20041005.patch |
15 |
http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.regex.20041005.patch |
16 |
http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.tcltk.20041005.patch |
17 |
http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.x11_mb.20041005.patch |
18 |
http://r.nakama.ne.jp/${P}/patchs/${P}.l10n.pstex.20041006.patch |
19 |
)" |
12 |
|
20 |
|
13 |
#There are daily release patches, don't know how to utilize these |
21 |
#There are daily release patches, don't know how to utilize these |
14 |
#"ftp://ftp.stat.math.ethz.ch/Software/${PN}/${PN}-release.diff.gz" |
22 |
#"ftp://ftp.stat.math.ethz.ch/Software/${PN}/${PN}-release.diff.gz" |
Lines 48-62
Link Here
|
48 |
cd ${S} |
56 |
cd ${S} |
49 |
sed -e 's/^#define NeedFunctionPrototypes 0/#define NeedFunctionPrototypes 1/' \ |
57 |
sed -e 's/^#define NeedFunctionPrototypes 0/#define NeedFunctionPrototypes 1/' \ |
50 |
-i src/modules/X11/dataentry.c || die "sed failed" |
58 |
-i src/modules/X11/dataentry.c || die "sed failed" |
|
|
59 |
|
60 |
if use cjk; then |
61 |
epatch ${DISTDIR}/${P}.i18n.gnome.20041005.patch |
62 |
epatch ${DISTDIR}/${P}.i18n.main.20041005.patch |
63 |
epatch ${DISTDIR}/${P}.i18n.regex.20041005.patch |
64 |
epatch ${DISTDIR}/${P}.i18n.tcltk.20041005.patch |
65 |
epatch ${DISTDIR}/${P}.i18n.x11_mb.20041005.patch |
66 |
epatch ${DISTDIR}/${P}.l10n.pstex.20041006.patch |
67 |
rm -f src/main/gram.c |
68 |
fi |
51 |
} |
69 |
} |
52 |
|
70 |
|
53 |
src_compile() { |
71 |
src_compile() { |
54 |
addwrite "/var/cache/fonts" |
72 |
addwrite "/var/cache/fonts" |
55 |
local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline" |
73 |
local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline" |
56 |
|
74 |
|
57 |
use zlib || myconf="${myconf} --with-zlib" #default disabled |
75 |
use zlib && myconf="${myconf} --with-zlib" #default disabled |
58 |
use bzlib || myconf="${myconf} --with-bzlib" #default disabled |
76 |
use bzlib && myconf="${myconf} --with-bzlib" #default disabled |
59 |
use pcre || myconf="${myconf} --with-pcre" #default disabled |
77 |
use pcre && myconf="${myconf} --with-pcre" #default disabled |
60 |
|
78 |
|
61 |
# Using the blas USE flag now instead atlas, as atlas now |
79 |
# Using the blas USE flag now instead atlas, as atlas now |
62 |
# has been broken into blas-atlas and lapack-atlas. |
80 |
# has been broken into blas-atlas and lapack-atlas. |
Lines 72-77
Link Here
|
72 |
myconf="${myconf} --without-tcltk" |
90 |
myconf="${myconf} --without-tcltk" |
73 |
fi |
91 |
fi |
74 |
|
92 |
|
|
|
93 |
if use cjk; then |
94 |
myconf="${myconf} X_CFLAGS=\"-DI18N_MB\" MAIN_CFLAGS=\"-DL10N_JP\"" |
95 |
fi |
96 |
|
75 |
use gnome && myconf="${myconf} --with-gnome" #default disabled |
97 |
use gnome && myconf="${myconf} --with-gnome" #default disabled |
76 |
|
98 |
|
77 |
econf \ |
99 |
econf \ |