public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ebuild of R
@ 2002-04-11 22:23 Dong Chen
  2002-04-12  1:34 ` Tod M Neidt
  0 siblings, 1 reply; 2+ messages in thread
From: Dong Chen @ 2002-04-11 22:23 UTC (permalink / raw
  To: gentoo-dev; +Cc: Tod Neidt

Tod,

I have made some changes for the dev-lang/R ebuild to incorporate the newest
patch at every compilation.

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

The ebuild is as follows:
------------------------------------------------------------
# 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] ebuild of R
  2002-04-11 22:23 [gentoo-dev] ebuild of R Dong Chen
@ 2002-04-12  1:34 ` Tod M Neidt
  0 siblings, 0 replies; 2+ messages in thread
From: Tod M Neidt @ 2002-04-12  1:34 UTC (permalink / raw
  To: gentoo-dev; +Cc: dchen

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
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-12  2:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-11 22:23 [gentoo-dev] ebuild of R Dong Chen
2002-04-12  1:34 ` Tod M Neidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox