public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] G-CRAN: time for cake, packages are building
@ 2010-06-25 16:46 Auke Booij
  2010-06-26 10:39 ` [gentoo-science] " Auke Booij
  0 siblings, 1 reply; 3+ messages in thread
From: Auke Booij @ 2010-06-25 16:46 UTC (permalink / raw
  To: gentoo-science

Just pushed to my git repository: a fallible commit containing an
ebuild which builds some CRAN-style packages (hopefully).

As some of you might incidentally know, I'm working on getting Gentoo
to build CRAN package as a Google Summer of Code project. That means
I'm supposed to do something impressive, but I'm leaving that part to
you guys. What I /am/ doing is writing some clever code which
hopefully will build most CRAN-style packages from within package
managers. That would mean automatic dependency resolving (most
importantly, this must also work for external (non-CRAN)
dependencies), proper installation of documentation, and hopefully a
whole lot more clean package handling (perhaps there are dependencies
between Bioconductor and CRAN? what about cross-platform building? i
am doing my own research regarding this but would love to hear what
problems you're expecting and what you'd like to see fixed).

Alright, back to e7265e5bfce8a7e39a6cbbb14814bec5e1c3ffc9. No, there
is no ebuild for G-CRAN itself, there is no integration with layman,
no intelligent documentation installer, no friendly interface, no
quick database for fast package searches and/or caching, but at least
the darned thing actually builds and installs some CRAN-style
packages. If you're desperate to give this Grendel a spin, feel free
to clone the git repository and do the following:

-modify cran.ebuild to reflect the right location of g-cran.py - there
are two instances where you'll need to update it (eventually g-cran.py
and friends should just be installed to the right directory, of
course)
-create or open up a local overlay (let's say you created /usr/local/portage)
-execute:
# g-cran.py /usr/local/portage sync http://cran.r-project.org (note:
this doesn't create a tree yet, and this is actually something I hope
to be doing with the cooperation of two other GSoC projects)
# mkdir /usr/local/portage/profiles/
# echo "dev-R" >> /usr/local/portage/profiles/categories
# mkdir -p /usr/local/portage/dev-R/waved/
# ln -s /somewhere/git-repos/g-cran/cran.ebuild
/usr/local/portage/dev-R/waved/waved-1.ebuild (note: the version
currently doesn't matter, since CRAN only offers one version of each
package anyway)
# emerge waved
I have to admit I haven't tried portage yet (I'm personally a paludis
fanboy), and I think it might complain about checksums and stuff
(please tell me if it does), but if you're using paludis too you
should be able to install, in this case, waved. You can list all
packages by issuing:
# g-cran.py /usr/local/portage list-packages

Please note that the code very simplistic and will fail on a lot of
packages. The dependencies *will* be all wrong, but at least this
should give you something to play with.

Stay tuned!
tulcod.



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

* [gentoo-science] Re: G-CRAN: time for cake, packages are building
  2010-06-25 16:46 [gentoo-science] G-CRAN: time for cake, packages are building Auke Booij
@ 2010-06-26 10:39 ` Auke Booij
  2010-06-27 19:05   ` Neil Shephard
  0 siblings, 1 reply; 3+ messages in thread
From: Auke Booij @ 2010-06-26 10:39 UTC (permalink / raw
  To: gentoo-science

On Fri, Jun 25, 2010 at 6:46 PM, Auke Booij <auke@tulcod.com> wrote:
> Just pushed to my git repository: a fallible commit containing an
> ebuild which builds some CRAN-style packages (hopefully).

Mere minutes ago did I realize I forgot to include a link to my git
repository, this time I fixed that (see [0]).

Also in the repository right now is a distutils install script, and as
soon as I get access to the gentoo-science overlay I'll upload an
ebuild. Instructions for usage pretty much similar, except you don't
need to update cran.ebuild anymore (it defaults to /usr/bin/g-cran)
and the g-cran executable is now just named g-cran instead of
g-cran.py.

Have fun experimenting with G-CRAN!

[0] http://git.overlays.gentoo.org/gitweb/?p=proj/g-cran.git



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

* Re: [gentoo-science] Re: G-CRAN: time for cake, packages are building
  2010-06-26 10:39 ` [gentoo-science] " Auke Booij
@ 2010-06-27 19:05   ` Neil Shephard
  0 siblings, 0 replies; 3+ messages in thread
From: Neil Shephard @ 2010-06-27 19:05 UTC (permalink / raw
  To: gentoo-science

Looking forward to the maturation of this project, good work taking it on.

Cheers

Neil

-- 
"... no scientific worker has a fixed level of significance at which
from year to year, and in all circumstances, he rejects hypotheses; he
rather gives his mind to each particular case in the light of his
evidence and his ideas." - Sir Ronald A. Fisher (1956)

Email - nshephard@gmail.com
Website - http://slack.ser.man.ac.uk/
Photos - http://www.flickr.com/photos/slackline/



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

end of thread, other threads:[~2010-06-27 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-25 16:46 [gentoo-science] G-CRAN: time for cake, packages are building Auke Booij
2010-06-26 10:39 ` [gentoo-science] " Auke Booij
2010-06-27 19:05   ` Neil Shephard

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