Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 67834 | Differences between
and this patch

Collapse All | Expand All

(-)R-2.0.1.ebuild (-7 / +39 lines)
Lines 4-12 Link Here
4
4
5
inherit 64-bit fortran
5
inherit 64-bit fortran
6
6
7
IUSE="blas X tcltk gnome zlib bzlib pcre"
7
IUSE="blas X tcltk gnome zlib bzlib pcre cjk"
8
DESCRIPTION="R is GNU S - A language and environment for statistical computing and graphics."
8
DESCRIPTION="R is GNU S - A language and environment for statistical computing and graphics."
9
SRC_URI="http://cran.r-project.org/src/base/R-2/${P}.tar.gz"
9
SRC_URI="http://cran.r-project.org/src/base/R-2/${P}.tar.gz
10
	cjk? (
11
		http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.gnome.20041116.patch
12
		http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.main.20041116.patch
13
		http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.regex.20041116.patch
14
		http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.tcltk.20041116.patch
15
		http://r.nakama.ne.jp/${P}/patchs/${P}.i18n.x11_mb.20041125.patch
16
		http://r.nakama.ne.jp/${P}/patchs/${P}.l10n.pstex.20041116.patch
17
	)"
10
#There are daily release patches, don't know how to utilize these
18
#There are daily release patches, don't know how to utilize these
11
#"ftp://ftp.stat.math.ethz.ch/Software/${PN}/${PN}-release.diff.gz"
19
#"ftp://ftp.stat.math.ethz.ch/Software/${PN}/${PN}-release.diff.gz"
12
HOMEPAGE="http://www.r-project.org/"
20
HOMEPAGE="http://www.r-project.org/"
Lines 33-54 Link Here
33
SLOT="0"
41
SLOT="0"
34
LICENSE="GPL-2 LGPL-2.1"
42
LICENSE="GPL-2 LGPL-2.1"
35
KEYWORDS="~x86 ~sparc ~ppc ppc64 ~amd64"
43
KEYWORDS="~x86 ~sparc ~ppc ppc64 ~amd64"
36
64-bit || FORTRAN="g77" # No f2c on 64-bit archs anymore.
37
44
38
src_unpack() {
45
src_unpack() {
39
	unpack ${A}
46
	unpack ${A}
40
	cd ${S}
47
	cd ${S}
41
	#sed -e 's/^#define NeedFunctionPrototypes 0/#define NeedFunctionPrototypes 1/' \
48
	#sed -e 's/^#define NeedFunctionPrototypes 0/#define NeedFunctionPrototypes 1/' \
42
	#-i src/modules/X11/dataentry.c || die "sed failed"
49
	#-i src/modules/X11/dataentry.c || die "sed failed"
50
51
	if use cjk; then
52
		epatch ${DISTDIR}/${P}.i18n.gnome.20041116.patch
53
		epatch ${DISTDIR}/${P}.i18n.main.20041116.patch
54
		epatch ${DISTDIR}/${P}.i18n.regex.20041116.patch
55
		epatch ${DISTDIR}/${P}.i18n.tcltk.20041116.patch
56
		epatch ${DISTDIR}/${P}.i18n.x11_mb.20041125.patch
57
		epatch ${DISTDIR}/${P}.l10n.pstex.20041116.patch
58
		rm -f src/main/gram.c
59
	fi
43
}
60
}
44
61
45
src_compile() {
62
src_compile() {
46
	#addwrite "/var/cache/fonts"
63
	#addwrite "/var/cache/fonts"
47
	local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline"
64
	local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline"
48
65
49
	use zlib || myconf="${myconf} --with-zlib"		#default disabled
66
	use zlib && myconf="${myconf} --with-zlib"		#default disabled
50
	use bzlib || myconf="${myconf} --with-bzlib"	#default disabled
67
	use bzlib && myconf="${myconf} --with-bzlib"	#default disabled
51
	use pcre || myconf="${myconf} --with-pcre"   	#default disabled
68
	use pcre && myconf="${myconf} --with-pcre"   	#default disabled
52
69
53
	# Using the blas USE flag now instead atlas, as atlas now
70
	# Using the blas USE flag now instead atlas, as atlas now
54
	# has been broken into blas-atlas and lapack-atlas.
71
	# has been broken into blas-atlas and lapack-atlas.
Lines 65-70 Link Here
65
		myconf="${myconf} --without-tcltk"
82
		myconf="${myconf} --without-tcltk"
66
	fi
83
	fi
67
84
85
	need_fortran g77 ifc f2c
86
87
	if [ "${FORTRANC}" = "f2c" ]; then
88
		if 64-bit; then
89
			eerror "GNU fortran 77 compiler not found on the system."
90
			eerror "Please add fortran to your USE flags and reemerge gcc."
91
			die
92
		fi
93
		F2C="${FORTRANC}"
94
	else
95
		F77="${FORTRANC}"
96
	fi
97
98
	use cjk && myconf="${myconf} X_CFLAGS=\"-DI18N_MB\" MAIN_CFLAGS=\"-DL10N_JP\"" #default disabled
99
68
	use gnome && myconf="${myconf} --with-gnome" #default disabled
100
	use gnome && myconf="${myconf} --with-gnome" #default disabled
69
101
70
	econf \
102
	econf \
Lines 88-94 Link Here
88
	#fix the R wrapper script to have the correct R_HOME_DIR
120
	#fix the R wrapper script to have the correct R_HOME_DIR
89
	#sed regexp borrowed from included debian rules
121
	#sed regexp borrowed from included debian rules
90
	sed \
122
	sed \
91
		-e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \
123
		-e "/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/$(get_libdir)/R:" \
92
		-i ${D}/usr/$(get_libdir)/R/bin/R \
124
		-i ${D}/usr/$(get_libdir)/R/bin/R \
93
		|| die "sed failed"
125
		|| die "sed failed"
94
126

Return to bug 67834