1 |
Hi Dong! |
2 |
|
3 |
On Thu, 2002-04-11 at 17:23, Dong Chen wrote: |
4 |
> Tod, |
5 |
> |
6 |
> I have made some changes for the dev-lang/R ebuild to incorporate the newest |
7 |
> patch at every compilation. |
8 |
|
9 |
Thanks for the contribution! I have a few concerns about your proposed |
10 |
changes that I address below. |
11 |
|
12 |
> |
13 |
> By the way, can you get menu entry of R in kde also? |
14 |
|
15 |
A kde menu entry would be nice, but I'm not the person to do it due to |
16 |
my unfamiliarity with all things kde :) Perhaps we could appeal to the |
17 |
kde developers (danarmak, et al) for assistance or maybe a clueful kde |
18 |
user. |
19 |
> |
20 |
> The ebuild is as follows |
21 |
|
22 |
My problem with this is a constantly changing R installation associated |
23 |
with a fixed ebuild revision. This would make troubleshooting user |
24 |
problems (i.e. submitted bug reports for R, for which the most likely |
25 |
resolution would be INVALID: try again tomorrow :) a nightmare as user's |
26 |
who installed on Monday, Tuesday, Thursday, and Sunday have no problems, |
27 |
while something goes wrong with the build or running the app for users |
28 |
who merge on Wednesday, Friday and Saturday. Also not having a md5sum |
29 |
check on a download from an outside source will not appeal to the |
30 |
paranoid. |
31 |
|
32 |
However, having said that, the option of having a R install with all the |
33 |
latest and greatest bugfixes applied is appealing. I might be amenable |
34 |
to having a separate R-daily_release-1.4.1.ebuild to supplement the |
35 |
existing conventional one as long as it is understood that merging is |
36 |
potentially a crapshoot and may come up snake eyes. This situation is |
37 |
similar to the CVS snapshot feature that has been frequently discussed. |
38 |
|
39 |
If we have a daily_release ebuild, I would also like to make the |
40 |
following changes to your implementation. |
41 |
|
42 |
1. Remove the downloading line from src_unpack and put it it pkg_setup. |
43 |
|
44 |
2. Download the patch to DISTDIR so the daily patch applied is available |
45 |
for future reference and/or scrutiny. |
46 |
|
47 |
2. Utilize the FETCHCOMMAND variable so the user specified downloader |
48 |
will be used. |
49 |
|
50 |
I will solicit the opinions and counsel of other developers on this |
51 |
issue and we'll see if we can implement this feature in one form or |
52 |
another. |
53 |
|
54 |
Once again, thanks for the contribution and keep it up. |
55 |
|
56 |
tod |
57 |
: |
58 |
> ------------------------------------------------------------ |
59 |
> # Copyright 1999-2002 Gentoo Technologies, Inc. |
60 |
> # Distributed under the terms of the GNU General Public License, v2 or later |
61 |
> # Maintainer: Tod Neidt <tod@g.o> |
62 |
> # /space/gentoo/cvsroot/gentoo-x86/dev-lang/R/R-1.4.1.ebuild,v 1.1 |
63 |
> 2002/02/20 06:12:22 tod Exp |
64 |
> |
65 |
> S=${WORKDIR}/${P} |
66 |
> |
67 |
> DESCRIPTION="R is GNU S - A language and environment for statistical |
68 |
> computing and graphics." |
69 |
> |
70 |
> SRC_URI="http://cran.r-project.org/src/base/${P}.tgz" |
71 |
> |
72 |
> HOMEPAGE="http://www.r-project.org/" |
73 |
> |
74 |
> DEPEND="virtual/glibc |
75 |
> >=sys-devel/perl-5.6.1-r3 |
76 |
> >=sys-libs/readline-4.1-r3 |
77 |
> >=sys-libs/zlib-1.1.3-r2 |
78 |
> >=media-libs/jpeg-6b-r2 |
79 |
> >=media-libs/libpng-1.0.12 |
80 |
> atlas? ( dev-libs/atlas ) |
81 |
> X? ( virtual/x11 ) |
82 |
> tcltk? ( dev-lang/tk ) |
83 |
> gnome? ( >=gnome-base/gnome-libs-1.4.1.4 )" |
84 |
> |
85 |
> src_unpack() { |
86 |
> |
87 |
> unpack ${P}.tgz |
88 |
> cd ${S} |
89 |
> |
90 |
> wget -O ${PN}-release.diff.gz |
91 |
> "ftp://ftp.stat.math.ethz.ch/Software/${PN}/${PN}-release.diff.gz" |
92 |
> zcat ${PN}-release.diff.gz | patch -p1 -E || die |
93 |
> } |
94 |
> |
95 |
> src_compile() { |
96 |
> |
97 |
> local myconf="--enable-R-profiling --enable-R-shlib --with-readline" |
98 |
> |
99 |
> #Eventually, we will want to take into account that a user may have |
100 |
> #an alternate or additional blas libraries, |
101 |
> #i.e. USE variable blas and and virtual/blas |
102 |
> use atlas || myconf="${myconf} --without-blas" #default enabled |
103 |
> |
104 |
> use X || myconf="${myconf} --without-x" #default enabled |
105 |
> |
106 |
> if use tcltk; then |
107 |
> #configure needs to find the files tclConfig.sh and |
108 |
> tkConfig.sh |
109 |
> |
110 |
> |
111 |
> |
112 |
> |
113 |
> |
114 |
> |
115 |
> |
116 |
> |
117 |
> |
118 |
> |
119 |
> |
120 |
> |
121 |
> |
122 |
> |
123 |
> |
124 |
> |
125 |
> myconf="${myconf} --with-tcltk --with-tcl-config=/usr/lib --with-tk-config=/ |
126 |
> usr/lib" |
127 |
> else |
128 |
> myconf="${myconf} --without-tcltk" |
129 |
> fi |
130 |
> |
131 |
> use gnome && myconf="${myconf} --with-gnome" #default disabled |
132 |
> |
133 |
> ./configure \ |
134 |
> --host=${CHOST} \ |
135 |
> --prefix=/usr \ |
136 |
> --infodir=/usr/share/info \ |
137 |
> --mandir=/usr/share/man \ |
138 |
> ${myconf} || die "./configure failed" |
139 |
> |
140 |
> emake || die "Parallel Make Failed" |
141 |
> |
142 |
> } |
143 |
> |
144 |
> src_install () { |
145 |
> |
146 |
> make \ |
147 |
> prefix=${D}/usr \ |
148 |
> mandir=${D}/usr/share/man \ |
149 |
> infodir=${D}/usr/share/info \ |
150 |
> install || die "Installation Failed" |
151 |
> |
152 |
> #fix the R wrapper script to have the correct R_HOME_DIR |
153 |
> #sed regexp borrowed from included debian rules |
154 |
> cp ${D}/usr/bin/R ${S}/bin/R.orig |
155 |
> sed -e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \ |
156 |
> ${S}/bin/R.orig > ${D}/usr/bin/R |
157 |
> |
158 |
> dodoc AUTHORS BUGS COPYING* ChangeLog FAQ INSTALL *NEWS README \ |
159 |
> RESOURCES THANKS VERSION Y2K |
160 |
> |
161 |
> #Add rudimentary menu entry if gnome |
162 |
> if use gnome; then |
163 |
> insinto /usr/share/gnome/apps/Applications |
164 |
> doins ${FILESDIR}/R.desktop |
165 |
> insinto /usr/share/pixmaps |
166 |
> doins ${FILESDIR}/R-logo.png |
167 |
> fi |
168 |
> |
169 |
> } |
170 |
> |
171 |
> ---------------------------------------------- |
172 |
> Dong Chen |
173 |
> CACC, ECE Dept, Duke University |
174 |
> Ph: (919)401-0299x303 |
175 |
> |
176 |
> _______________________________________________ |
177 |
> gentoo-dev mailing list |
178 |
> gentoo-dev@g.o |
179 |
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev |
180 |
> |