1 |
On 14:21 Sat 06 Oct , Markus Dittrich (markusle) wrote: |
2 |
> 1.1 dev-lang/R/R-2.6.0.ebuild |
3 |
> |
4 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.6.0.ebuild?rev=1.1&view=markup |
5 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/R/R-2.6.0.ebuild?rev=1.1&content-type=text/plain |
6 |
|
7 |
> pkg_setup() { |
8 |
> # Test for a 64 bit architecture - f2c won't work on 64 bit archs with R. |
9 |
> # Thanks to vapier for providing the test. |
10 |
> cd "${T}" |
11 |
> echo 'int main(){}' > test.c |
12 |
> $(tc-getCC) -c test.c -o test.o |
13 |
> if file test.o | grep -qs 64-bit ; then |
14 |
> einfo "64 bit architecture detected, using g77 or gfortran." |
15 |
|
16 |
... or ifc? |
17 |
|
18 |
> FORTRAN="gfortran g77 ifc" |
19 |
> else |
20 |
> FORTRAN="gfortran g77 f2c" |
21 |
|
22 |
How come ifc isn't down here, too? |
23 |
|
24 |
> # R-2.5.0 started to have issues with parallel make |
25 |
> emake -j1 || die "emake failed" |
26 |
|
27 |
Got an upstream bug filed? |
28 |
|
29 |
> make \ |
30 |
|
31 |
If emake doesn't work, please add a comment to that effect. |
32 |
|
33 |
> prefix=${D}/usr \ |
34 |
> mandir=${D}/usr/share/man \ |
35 |
> infodir=${D}/usr/share/info \ |
36 |
> libdir=${D}/usr/$(get_libdir) \ |
37 |
> rhome=${D}/usr/$(get_libdir)/R \ |
38 |
|
39 |
> -i ${D}/usr/$(get_libdir)/R/bin/R \ |
40 |
> -i ${D}/usr/$(get_libdir)/R/bin/R \ |
41 |
> sed -e "s:${D}::" -i ${D}/usr/$(get_libdir)/pkgconfig/libR.pc \ |
42 |
> cd ${D}/usr/bin/ |
43 |
> > ${D}/etc/env.d/99R |
44 |
> cd ${S} |
45 |
|
46 |
Quote variables that can have spaces in them: D, S, T, WORKDIR, |
47 |
FILESDIR, DESTDIR, ROOT. |
48 |
|
49 |
Thanks, |
50 |
Donnie |
51 |
-- |
52 |
gentoo-dev@g.o mailing list |