From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-470422-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1SaU40-0001qn-4e
	for garchives@archives.gentoo.org; Fri, 01 Jun 2012 15:46:56 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 367ABE0710;
	Fri,  1 Jun 2012 15:46:39 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id E9AB1E0710
	for <gentoo-commits@lists.gentoo.org>; Fri,  1 Jun 2012 15:46:38 +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 2D3FF1B400B
	for <gentoo-commits@lists.gentoo.org>; Fri,  1 Jun 2012 15:46:38 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by hornbill.gentoo.org (Postfix) with ESMTP id 8BD6CE5434
	for <gentoo-commits@lists.gentoo.org>; Fri,  1 Jun 2012 15:46:35 +0000 (UTC)
From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" <dywi@mailerd.de>
Message-ID: <1338562818.b926a22a4ce705cb9ddf2bce8253ed8c708d4993.dywi@gentoo>
Subject: [gentoo-commits] proj/R_overlay:master commit in: /
X-VCS-Repository: proj/R_overlay
X-VCS-Files: README description_fields.conf
X-VCS-Directories: /
X-VCS-Committer: dywi
X-VCS-Committer-Name: André Erdmann
X-VCS-Revision: b926a22a4ce705cb9ddf2bce8253ed8c708d4993
X-VCS-Branch: master
Date: Fri,  1 Jun 2012 15:46:35 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: a9d6c93c-20c0-4fee-b35b-24a85d548e61
X-Archives-Hash: c22190cc1fd0a2af930e4b48f5e53348

commit:     b926a22a4ce705cb9ddf2bce8253ed8c708d4993
Author:     Andr=C3=A9 Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Jun  1 15:00:18 2012 +0000
Commit:     Andr=C3=A9 Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Jun  1 15:00:18 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/R_overlay.git=
;a=3Dcommit;h=3Db926a22a

README and description_fields.conf
	new file:   README
	new file:   description_fields.conf

---
 README                  |   51 ++++++++++++++++++++++
 description_fields.conf |  107 +++++++++++++++++++++++++++++++++++++++++=
++++++
 2 files changed, 158 insertions(+), 0 deletions(-)

diff --git a/README b/README
new file mode 100644
index 0000000..8147b52
--- /dev/null
+++ b/README
@@ -0,0 +1,51 @@
+R overlay -- README
+
+=3D=3D How to use =3D=3D
+
+There is currently no "R overlay" script, only modules that implement fu=
nctionality.
+
+=3D=3D=3D Running tests =3D=3D=3D
+
+Real tests are scheduled for July 10 - July 30.
+
+In the meantime, there are some test scripts (run_<something>.py,test_<s=
omething>.sh)
+and a Makefile that provide basic testing.
+
+To run them you need to create a directory <root>/examples/packages and
+put some R packages into it (expected suffix is .tar.gz),
+where <root> is the directory containing this README file.
+
+You can then run:
+	make <some test>
+	 where <some test> is
+	 * test-nop             -- tries to import roverlay, but does nothing
+	 * test-ebuild_creation -- tries to create an ebuild for each package i=
n examples/packages
+	 * test-ebuild_creation -- tries to create 1000 ebuilds for each packag=
e in examples/packages
+	 * test                 -- runs all of the above tests
+	 * dummy                -- prints python version in use, run
+	                            make PYVER=3D2 <some test> or make PYVER=3D=
3 <some test>
+	                            use a specific one
+
+	or:
+	./test_ebuildcreation.sh [-q] [count]
+	                        -- runs count * "number of packages in examples=
/packages"
+	                           ebuild creations in one script call.
+	                           Use '-q' to suppress the script output (e.g.=
 ebuilds).
+
+	./run_ebuildcreation.py <packages>
+									-- runs ebuild creations for the given packages
+
+
+
+
+=3D=3D Configuration =3D=3D
+
+* main configuration
+shell-like syntax (using shlex), TODO
+
+* description field configuration
+ConfigParser syntax, please see 'description_fields.conf' in this direct=
ory.
+
+* dependency rules configuration
+<scheduled for July 1>
+

diff --git a/description_fields.conf b/description_fields.conf
new file mode 100644
index 0000000..7702296
--- /dev/null
+++ b/description_fields.conf
@@ -0,0 +1,107 @@
+# R overlay -- description field definition
+# Copyright 2006-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+
+# ----------------------------------------------------------------------=
------
+#
+# This file controls how DESCRIPTION fields are used
+# It is read in raw mode so that strings like '%var' are not interpolate=
d.
+# A per-field section is introduced with [<field name>] and
+# contains flags and options.
+#
+#
+# known field options are:
+#
+#  default_value =3D <some value>
+#                        -- set the default value for this field,
+#                            which implies that any read description dat=
a
+#                            will contain this field (with value either
+#                            from the description file or the default on=
e).
+#                            'Disables' the mandatory flag.
+#
+#  allowed_value =3D <some value>
+#                        -- declares that this field has a value
+#                            whitelist and adds <some value> to this lis=
t.
+#
+#  allowed_values =3D <some values>
+#                        -- same as allowed_value but witj multiple valu=
es
+#
+#  alias_withcase =3D <aliases>,
+#  alias =3D <aliases>
+#                        -- declares case-sensitive field name aliases
+#                            aliases can be used to fix typos as well as
+#                            to remap/merge fields (e.g. Title -> Descri=
ption)
+#
+#  alias_nocase =3D <aliases>
+#                        -- declares case-insenstivite field names alias=
es
+#
+#
+#  flags =3D <flags>
+#                        -- add flags to this field; note that any value=
-less
+#                            option is interpreted as flag
+#
+# options with multiple values are read as a <value>[, <value>]* list
+#
+# and known field flags are:
+#  joinValues
+#         -- declares that the field's value is one string even if it
+#             spans over multiple lines (the lines will be joined with '=
 ')
+#  isList
+#         -- declares that the field's value is a list
+#            (the default regex for splitting the values is '\s*[,;]{1}\=
s*')
+#
+#  isWhitespaceList
+#         -- declares that the field's value is a list
+#             separated by whitespace. Has no effect if 'isList' is set.
+#  mandatory
+#         -- declares that this field has to have an value that evaluate=
s
+#             to True (value is set and not empty).
+#             This flag is (effectively) useless in conjunction with
+#             default_value unless the default value evaluates to False.
+#
+#  ignore
+#         -- ignore this field entirely
+#
+#
+# Flags are always case-insensitive.
+# Note that it is not checked whether a flag is known or not,
+# which means you can add anything here.
+#
+# ----------------------------------------------------------------------=
------
+
+
+[Description]
+joinValues
+
+[Title]
+joinValues
+
+[Package]
+joinValues
+
+[License]
+isList
+
+[Version]
+mandatory
+joinValues
+
+[Suggests]
+alias_nocase =3D Suggests, Suggest, %Suggests, Suggets, Recommends
+
+[Depends]
+alias_nocase =3D Depends, Dependencies, Dependes, %Depends, Depents, Req=
uire, Requires
+
+[Imports]
+alias_nocase =3D Imports, Import
+
+[LinkingTo]
+alias_nocase =3D LinkingTo, LinkingdTo, LinkinTo
+
+[SystemRequirements]
+alias_nocase =3D SystemRequirements, SystemRequirement
+
+[OS_Type]
+alias_nocase =3D OS_TYPE
+allowed_values =3D unix