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 (-18 / +17 lines)
Lines 32-54 Link Here
32
			>=media-libs/audiofile-0.2.1 )"
32
			>=media-libs/audiofile-0.2.1 )"
33
SLOT="0"
33
SLOT="0"
34
LICENSE="GPL-2 LGPL-2.1"
34
LICENSE="GPL-2 LGPL-2.1"
35
KEYWORDS="~x86 ~sparc ~ppc ppc64 ~amd64"
35
KEYWORDS="~x86 ~sparc ~ppc ~ppc64 ~amd64"
36
64-bit || FORTRAN="g77" # No f2c on 64-bit archs anymore.
36
FORTRAN="g77 ifc f2c" # fortran.eclass
37
37
38
src_unpack() {
39
	unpack ${A}
40
	cd ${S}
41
	#sed -e 's/^#define NeedFunctionPrototypes 0/#define NeedFunctionPrototypes 1/' \
42
	#-i src/modules/X11/dataentry.c || die "sed failed"
43
}
44
38
45
src_compile() {
39
src_compile() {
46
	#addwrite "/var/cache/fonts"
40
	#addwrite "/var/cache/fonts"
47
	local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline"
41
	local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline"
48
42
49
	use zlib || myconf="${myconf} --with-zlib"		#default disabled
43
	use zlib && myconf="${myconf} --with-zlib"		#default disabled
50
	use bzlib || myconf="${myconf} --with-bzlib"	#default disabled
44
	use bzlib && myconf="${myconf} --with-bzlib"	#default disabled
51
	use pcre || myconf="${myconf} --with-pcre"   	#default disabled
45
	use pcre && myconf="${myconf} --with-pcre"   	#default disabled
52
46
53
	# Using the blas USE flag now instead atlas, as atlas now
47
	# Using the blas USE flag now instead atlas, as atlas now
54
	# has been broken into blas-atlas and lapack-atlas.
48
	# has been broken into blas-atlas and lapack-atlas.
Lines 67-79 Link Here
67
61
68
	use gnome && myconf="${myconf} --with-gnome" #default disabled
62
	use gnome && myconf="${myconf} --with-gnome" #default disabled
69
63
70
	econf \
64
	if [ "${FORTRANC}" = "f2c" ]; then
71
		--host=${CHOST} \
65
		if 64-bit; then
72
		--prefix=/usr \
66
			eerror "GNU fortran 77 compiler not found on the system."
73
		--infodir=/usr/share/info \
67
			eerror "Please add fortran to your USE flags and reemerge gcc."
74
		--mandir=/usr/share/man \
68
			die
75
		${myconf} || die "./configure failed"
69
		fi
70
		F2C="${FORTRANC}"
71
	else
72
		F77="${FORTRANC}"
73
	fi
76
74
75
	econf ${myconf} || die "./configure failed"
77
	emake || die
76
	emake || die
78
}
77
}
79
78
Lines 88-94 Link Here
88
	#fix the R wrapper script to have the correct R_HOME_DIR
87
	#fix the R wrapper script to have the correct R_HOME_DIR
89
	#sed regexp borrowed from included debian rules
88
	#sed regexp borrowed from included debian rules
90
	sed \
89
	sed \
91
		-e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \
90
		-e "/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/$(get_libdir)/R:" \
92
		-i ${D}/usr/$(get_libdir)/R/bin/R \
91
		-i ${D}/usr/$(get_libdir)/R/bin/R \
93
		|| die "sed failed"
92
		|| die "sed failed"
94
93

Return to bug 67834