View | Details | Raw Unified
Collapse All | Expand All

(-) R-2.0.1.ebuild (-18 / +17 lines)
 Lines 32-54    Link Here 
			>=media-libs/audiofile-0.2.1 )"
			>=media-libs/audiofile-0.2.1 )"
SLOT="0"
SLOT="0"
LICENSE="GPL-2 LGPL-2.1"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="~x86 ~sparc ~ppc ppc64 ~amd64"
KEYWORDS="~x86 ~sparc ~ppc ~ppc64 ~amd64"
64-bit || FORTRAN="g77" # No f2c on 64-bit archs anymore.
FORTRAN="g77 ifc f2c" # fortran.eclass
src_unpack() {
	unpack ${A}
	cd ${S}
	#sed -e 's/^#define NeedFunctionPrototypes 0/#define NeedFunctionPrototypes 1/' \
	#-i src/modules/X11/dataentry.c || die "sed failed"
}
src_compile() {
src_compile() {
	#addwrite "/var/cache/fonts"
	#addwrite "/var/cache/fonts"
	local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline"
	local myconf="--enable-static --enable-R-profiling --enable-R-shlib --with-readline"
	use zlib || myconf="${myconf} --with-zlib"		#default disabled
	use zlib && myconf="${myconf} --with-zlib"		#default disabled
	use bzlib || myconf="${myconf} --with-bzlib"	#default disabled
	use bzlib && myconf="${myconf} --with-bzlib"	#default disabled
	use pcre || myconf="${myconf} --with-pcre"   	#default disabled
	use pcre && myconf="${myconf} --with-pcre"   	#default disabled
	# Using the blas USE flag now instead atlas, as atlas now
	# Using the blas USE flag now instead atlas, as atlas now
	# has been broken into blas-atlas and lapack-atlas.
	# has been broken into blas-atlas and lapack-atlas.
 Lines 67-79    Link Here 
	use gnome && myconf="${myconf} --with-gnome" #default disabled
	use gnome && myconf="${myconf} --with-gnome" #default disabled
	econf \
	if [ "${FORTRANC}" = "f2c" ]; then
		--host=${CHOST} \
		if 64-bit; then
		--prefix=/usr \
			eerror "GNU fortran 77 compiler not found on the system."
		--infodir=/usr/share/info \
			eerror "Please add fortran to your USE flags and reemerge gcc."
		--mandir=/usr/share/man \
			die
		${myconf} || die "./configure failed"
		fi
		F2C="${FORTRANC}"
	else
		F77="${FORTRANC}"
	fi
	econf ${myconf} || die "./configure failed"
	emake || die
	emake || die
}
}
 Lines 88-94    Link Here 
	#fix the R wrapper script to have the correct R_HOME_DIR
	#fix the R wrapper script to have the correct R_HOME_DIR
	#sed regexp borrowed from included debian rules
	#sed regexp borrowed from included debian rules
	sed \
	sed \
		-e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \
		-e "/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/$(get_libdir)/R:" \
		-i ${D}/usr/$(get_libdir)/R/bin/R \
		-i ${D}/usr/$(get_libdir)/R/bin/R \
		|| die "sed failed"
		|| die "sed failed"