public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tod M Neidt <tod@gentoo.org>
To: gentoo-dev@gentoo.org
Cc: dchen@ee.duke.edu
Subject: Re: [gentoo-dev] ebuild of R
Date: 11 Apr 2002 20:34:17 -0500	[thread overview]
Message-ID: <1018575259.7752.61.camel@Q.neidt.net> (raw)
In-Reply-To: <MPEGJPCCCIAMOOGAFDDAGEEKCBAA.dchen@ee.duke.edu>

Hi Dong!

On Thu, 2002-04-11 at 17:23, Dong Chen wrote:
> Tod,
> 
> I have made some changes for the dev-lang/R ebuild to incorporate the newest
> patch at every compilation.

Thanks for the contribution!  I have a few concerns about your proposed
changes that I address below.

> 
> By the way, can you get menu entry of R in kde also?

A kde menu entry would be nice, but I'm not the person to do it due to
my unfamiliarity with all things kde :)  Perhaps we could appeal to the
kde developers (danarmak, et al) for assistance or maybe a clueful kde
user.
> 
> The ebuild is as follows

My problem with this is a constantly changing R installation associated
with a fixed ebuild revision.  This would make troubleshooting user
problems (i.e. submitted bug reports for R, for which the most likely
resolution would be INVALID: try again tomorrow :) a nightmare as user's
who installed on Monday, Tuesday, Thursday, and Sunday have no problems,
while something goes wrong with the build or running the app for users
who merge on Wednesday, Friday and Saturday. Also not having a md5sum
check on a download from an outside source will not appeal to the
paranoid.

However, having said that, the option of having a R install with all the
latest and greatest bugfixes applied is appealing.  I might be amenable
to having a separate R-daily_release-1.4.1.ebuild to supplement the
existing conventional one as long as it is understood that merging is
potentially a crapshoot and may come up snake eyes.  This situation is
similar to the CVS snapshot feature that has been frequently discussed.

If we have a daily_release ebuild, I would also like to make the
following changes to your implementation.

1. Remove the downloading line from src_unpack and put it it pkg_setup.

2. Download the patch to DISTDIR so the daily patch applied is available
for future reference and/or scrutiny. 

2. Utilize the FETCHCOMMAND variable so the user specified downloader
will be used.

I will solicit the opinions and counsel of other developers on this
issue and we'll see if we can implement this feature in one form or
another.

Once again, thanks for the contribution and keep it up.  

tod
:
> ------------------------------------------------------------
> # Copyright 1999-2002 Gentoo Technologies, Inc.
> # Distributed under the terms of the GNU General Public License, v2 or later
> # Maintainer: Tod Neidt <tod@gentoo.org>
> # /space/gentoo/cvsroot/gentoo-x86/dev-lang/R/R-1.4.1.ebuild,v 1.1
> 2002/02/20 06:12:22 tod Exp
> 
> S=${WORKDIR}/${P}
> 
> DESCRIPTION="R is GNU S - A language and environment for statistical
> computing and graphics."
> 
> SRC_URI="http://cran.r-project.org/src/base/${P}.tgz"
> 
> HOMEPAGE="http://www.r-project.org/"
> 
> DEPEND="virtual/glibc
>                 >=sys-devel/perl-5.6.1-r3
>                 >=sys-libs/readline-4.1-r3
>                 >=sys-libs/zlib-1.1.3-r2
>                 >=media-libs/jpeg-6b-r2
>                 >=media-libs/libpng-1.0.12
>                 atlas? ( dev-libs/atlas )
>                 X? ( virtual/x11 )
>                 tcltk? ( dev-lang/tk )
>                 gnome? ( >=gnome-base/gnome-libs-1.4.1.4 )"
> 
> src_unpack() {
> 
>         unpack ${P}.tgz
>         cd ${S}
> 
>         wget -O ${PN}-release.diff.gz
> "ftp://ftp.stat.math.ethz.ch/Software/${PN}/${PN}-release.diff.gz"
>         zcat ${PN}-release.diff.gz | patch -p1 -E || die
> }
> 
> src_compile() {
> 
>         local myconf="--enable-R-profiling --enable-R-shlib --with-readline"
> 
>         #Eventually, we will want to take into account that a user may have
>         #an alternate or additional blas libraries,
>         #i.e. USE variable blas and and virtual/blas
>         use atlas || myconf="${myconf} --without-blas" #default enabled
> 
>         use X || myconf="${myconf} --without-x" #default enabled
> 
>         if use tcltk; then
>                 #configure needs to find the files tclConfig.sh and
> tkConfig.sh
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> myconf="${myconf} --with-tcltk --with-tcl-config=/usr/lib --with-tk-config=/
> usr/lib"
>         else
>                 myconf="${myconf} --without-tcltk"
>         fi
> 
>         use gnome && myconf="${myconf} --with-gnome" #default disabled
> 
>         ./configure \
>                 --host=${CHOST} \
>                 --prefix=/usr \
>                 --infodir=/usr/share/info \
>                 --mandir=/usr/share/man \
>                 ${myconf} || die "./configure failed"
> 
>         emake || die "Parallel Make Failed"
> 
> }
> 
> src_install () {
> 
>         make \
>                 prefix=${D}/usr \
>                 mandir=${D}/usr/share/man \
>                 infodir=${D}/usr/share/info \
>                 install || die "Installation Failed"
> 
>         #fix the R wrapper script to have the correct R_HOME_DIR
>         #sed regexp borrowed from included debian rules
>         cp ${D}/usr/bin/R ${S}/bin/R.orig
>         sed -e '/^R_HOME_DIR=.*/s::R_HOME_DIR=/usr/lib/R:' \
>                 ${S}/bin/R.orig > ${D}/usr/bin/R
> 
>         dodoc AUTHORS BUGS COPYING* ChangeLog FAQ INSTALL *NEWS README \
>                 RESOURCES THANKS VERSION Y2K
> 
>         #Add rudimentary menu entry if gnome
>         if use gnome; then
>                 insinto /usr/share/gnome/apps/Applications
>                 doins ${FILESDIR}/R.desktop
>                 insinto /usr/share/pixmaps
>                 doins ${FILESDIR}/R-logo.png
>         fi
> 
> }
> 
> ----------------------------------------------
> Dong Chen
> CACC, ECE Dept, Duke University
> Ph: (919)401-0299x303
> 
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> 




      reply	other threads:[~2002-04-12  2:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11 22:23 [gentoo-dev] ebuild of R Dong Chen
2002-04-12  1:34 ` Tod M Neidt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1018575259.7752.61.camel@Q.neidt.net \
    --to=tod@gentoo.org \
    --cc=dchen@ee.duke.edu \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox