From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7534713800E for ; Fri, 10 Aug 2012 15:16:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75245E0686; Fri, 10 Aug 2012 15:16:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 12AF6E0686 for ; Fri, 10 Aug 2012 15:16:14 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4123D1B40BB for ; Fri, 10 Aug 2012 15:16:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 022DBE5443 for ; Fri, 10 Aug 2012 15:16:12 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1344611465.141a7dfa757cafe54a3fbb33121c16ad417cf721.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: doc/rst/ X-VCS-Repository: proj/R_overlay X-VCS-Files: doc/rst/usage.rst X-VCS-Directories: doc/rst/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 141a7dfa757cafe54a3fbb33121c16ad417cf721 X-VCS-Branch: master Date: Fri, 10 Aug 2012 15:16:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1c21cd40-1b73-4839-8c52-fb182280242c X-Archives-Hash: 4f1bb9835434a55300083c7633305a84 commit: 141a7dfa757cafe54a3fbb33121c16ad417cf721 Author: André Erdmann mailerd de> AuthorDate: Fri Aug 10 15:10:33 2012 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Aug 10 15:11:05 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=141a7dfa usage guide (incomplete) --- doc/rst/usage.rst | 1103 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 1103 insertions(+), 0 deletions(-) diff --git a/doc/rst/usage.rst b/doc/rst/usage.rst new file mode 100644 index 0000000..c444685 --- /dev/null +++ b/doc/rst/usage.rst @@ -0,0 +1,1103 @@ +.. _roverlay-9999.ebuild: + http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=blob;f=roverlay-9999.ebuild;hb=refs/heads/master + +.. _roverlay git repo: + http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=summary + +.. _omegahat's PACKAGES file: + http://www.omegahat.org/R/src/contrib/PACKAGES + +.. _ConfigParser: + http://docs.python.org/library/configparser.html + + +.. contents:: + + +============== + Introduction +============== + +*roverlay* is +Automatically Generated Overlay of R packages;; +GSoC Project;; +<>;; + + +============== + Installation +============== + +--------------- + Prerequisites +--------------- + +* python >= 2.7 (tested with python 2.7 and 3.2) + +* argparse (http://code.google.com/p/argparse) + +* rsync (for using rsync repositories) + +* for Manifest creation: + + * *ebuild* from portage + * *true* or *echo* from coreutils or busybox for preventing + package downloads during Manifest creation (optional) + +* for generating documentation files: python docutils > 0.8.1 + +* hardware requirements (when the default configuration): + + disk + * a filesystem that supports symbolic links + * 50-55GB disk space for the R packages when using the default + R package hosts (CRAN with archive, BIOC, R-Forge and Omegahat) + * + + memory + up to 600MB which depends on the amount of processed packages and the + write mechanism in use. The amount can be halved (approximately) when + using a slower one. + + other + No other hardware requirements. + +--------------------- + via emerge (Gentoo) +--------------------- + +A live ebuild is available, `roverlay-9999.ebuild`_. +Add it to your local overlay and run ``emerge roverlay``, which will also +install all config files into */etc/roverlay*. + +--------------------- + Manual Installation +--------------------- + +After installing the dependencies as listed in `Prerequisites`_, +clone the `roverlay git repo`_ and then +install *roverlay* and its python modules: + +.. code-block:: sh + + git clone git://git.overlays.gentoo.org/proj/R_overlay.git + + cd R_overlay && make install + +``make install`` also accepts some variables, namely: + +* *DESTDIR* defaults to '' + +* *BINDIR*, defaults to *DESTDIR*/usr/local/bin + +* *PYMOD_FILE_LIST*, which lists the installed python module files + and defaults to './roverlay_files.list' + +* *PYTHON*, name of path of the python interpreter that will run 'setup.py', + defaults to 'python' + + +*roverlay* can later be uninstalled with ``make uninstall``. + +.. Note:: + + Make sure to include ``--record /roverlay_files.list`` + when running ``./setup.py install`` manually, + which can later be used to safely remove the python module files with + ``xargs rm -vrf < /roverlay_files.list``. + The *make* targets take care of this. + +.. Warning:: + + Support for this installation type is limited - it won't install/create + any config files! + +--------------------------------------- + Using *roverlay* without installation +--------------------------------------- + +This is possible, too. Make sure to meet the dependencies as listed +in Prerequisites_. +Then, simply clone the git repository to a local directory that +will later be referenced as the *R Overlay src directory*. + +.. Note:: + You'll have to cd into the *R Overlay src directory* before running + *roverlay* to ensure that the python modules can be imported correctly. + + You can work around this by setting up a wrapper script: + + .. code-block:: sh + + #!/bin/sh + # /usr/local/bin/roverlay.sh + # example wrapper script for roverlay + cd ${ROVERLAY_SRC:-~/roverlay/src} && ./roverlay.py $* + + +================== + Running Roverlay +================== + +------------------------------ + Required configuration steps +------------------------------ + +*roverlay* needs a configuration file to run. + +If you've installed *roverlay* with *emerge*, it will look for the config +file in that order: + +1. */R-overlay.conf* +2. *~/.R-overlay.conf* +3. */etc/roverlay/R-overlay.conf*, + which is part of the installation but has to be modified. + +Otherwise, an example config file is available in the *R Overlay src directory* +and *roverlay* will only look for *R-overlay.conf* in the current directory. + +The config file is a text file with '