aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2013-07-10 10:24:15 +0200
committerAndré Erdmann <dywi@mailerd.de>2013-07-10 10:24:15 +0200
commit9462b6268f8bc4b1d8bd50a59ef2b8df55dd562a (patch)
tree137fa24ce942fb6b54e7d0289f6c0703895f2e03 /config
parentebuild creation: LICENSE variable (diff)
downloadR_overlay-9462b6268f8bc4b1d8bd50a59ef2b8df55dd562a.tar.gz
R_overlay-9462b6268f8bc4b1d8bd50a59ef2b8df55dd562a.tar.bz2
R_overlay-9462b6268f8bc4b1d8bd50a59ef2b8df55dd562a.zip
config/: license map file, update field-def
The license map file is neither complete nor 100% correct, but it roughly works. Added/Enabled '[License]' in description_fields.conf so that the description reader parses this field.
Diffstat (limited to 'config')
-rw-r--r--config/description_fields.conf30
-rw-r--r--config/license.map194
2 files changed, 214 insertions, 10 deletions
diff --git a/config/description_fields.conf b/config/description_fields.conf
index 0705798..b0d355d 100644
--- a/config/description_fields.conf
+++ b/config/description_fields.conf
@@ -25,7 +25,7 @@
# whitelist and adds <some value> to this list.
#
# allowed_values = <some values>
-# -- same as allowed_value but witj multiple values
+# -- same as allowed_value but with multiple values
#
# alias_withcase = <aliases>,
# alias = <aliases>
@@ -55,6 +55,11 @@
# isWhitespaceList
# -- declares that the field's value is a list
# separated by whitespace. Has no effect if 'isList' is set.
+#
+# isLicense
+# -- use hardcoded 'License' field parsing
+# configuration for this flag is done in the main config file
+#
# mandatory
# -- declares that this field has to have an value that evaluates
# to True (value is set and not empty).
@@ -71,6 +76,12 @@
#
# ----------------------------------------------------------------------------
+## Useful docs:
+##
+## http://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file
+##
+## http://en.wikipedia.org/wiki/Commonly_misspelled_words
+## has some links to other sites as well
[Description]
joinValues
@@ -85,10 +96,11 @@ joinValues
ignore
[License]
-isList
+alias_nocase = License, Licence, Lisence
+
+# use hardcoded field handling
+isLicense
-# not used
-ignore
[Version]
joinValues
@@ -122,6 +134,10 @@ isList
alias_nocase = OS_TYPE
allowed_values = unix
+[Homepage]
+alias_nocase = Homepage, URL, Webpage
+ignore
+
[Author]
ignore
@@ -146,12 +162,6 @@ ignore
[Type]
ignore
-[URL]
-ignore
-
-[Webpage]
-ignore
-
[ZipData]
ignore
diff --git a/config/license.map b/config/license.map
new file mode 100644
index 0000000..bcaf168
--- /dev/null
+++ b/config/license.map
@@ -0,0 +1,194 @@
+# freedist, as-is, ...?
+! {
+ unlimited
+}
+
+# freestyle text
+! {
+ foo
+ freeforresearchpurpose.
+ whatlicenseisitunder?
+}
+
+
+AGPL-3 :: agpl
+
+AGPL-3 {
+ agpl3
+ agpl>3
+}
+
+Apache-2.0 {
+ apachelicense2.0
+}
+
+Artistic {
+ artistic-1.0
+}
+
+Artistic-2 {
+ artistic-2.0
+ artistic2.0#modifyasdesired
+ artisticlicense2.0
+ theartisticlicense2.0
+}
+
+Boost-1.0 {
+ bsl
+ bsl-1.0
+}
+
+BSD {
+ freebsd
+}
+
+CC0-1.0 {
+ cc0
+}
+
+CC-BY-SA-3.0 {
+ ccby-sa3.0us
+}
+CC-BY-SA-2.0 {
+ ccbysa2.0
+}
+
+|| ( CC-BY-SA-3.0 CC-BY-NC-SA-3.0 ) {
+ ccbysa3.0us|ccbyncsa3.0
+}
+
+CeCILL-C :: cecill
+CeCILL-2 :: cecill2
+
+# ?
+CPL-0.5 {
+ cpl
+ commonpubliclicense1.0
+}
+
+EPL-1.0 {
+ epl
+}
+
+EUPL-1.1 {
+ eupl
+}
+
+GPL-2 {
+ gnugeneralpubliclicense2
+ gpl2
+ gpl2.0
+}
+
+GPL-2 :: gpl2forrpackage;researchonlylicenseforemdl1
+
+GPL-2+ {
+ gpl>2
+ gpl>2.0
+ gpl>2.15.1
+ gpl2.1ornewer
+ gpl2orlater
+ gpl2orlater.
+ gpl2ornewer
+ gpl2ornewercopying.
+ gpl2ornewer.thetermsofthislicenseareinafilecalledcopyingwhichisprovidedwithr.
+}
+
+|| ( GPL-2 Artistic-2 ) {
+ gpl2|artistic2.0
+}
+
+|| ( GPL-2+ BSD ) {
+ gpl>2|bsd
+ gpl>2|freebsd
+}
+
+GPL-3 {
+ gpl3
+ gpl3.0
+}
+
+GPL-3+ {
+ gpl>3
+ gpl>3.0
+}
+
+# gpl licenses without version:
+GPL-3+ {
+ gnugeneralpubliclicense
+ gnugeneralpubliclicensegpl
+ gnugpl
+ gpl
+ gpl.
+}
+
+|| ( GPL-3+ BSD ) {
+ gpl|bsd
+}
+
+|| ( GPL-3+ LGPL-3+ ) {
+ gpl|lgpl
+}
+
+|| ( GPL-2 GPL-3 ) {
+ gpl2|gpl3
+}
+
+LGPL-2 {
+ lgpl2
+}
+
+LGPL-2+ {
+ lgpl>2
+ lgpl>2.0
+ lgpl2ornewer
+}
+
+LGPL-2.1 {
+ lgpl2.1
+}
+
+LGPL-2.1+ {
+ lgpl>2.1
+}
+
+LGPL-3 {
+ lgpl3
+}
+
+LGPL-3+ {
+ lgpl>3
+}
+
+LGPL-3+ {
+ lgpl
+}
+
+MIT {
+ mitlicense
+}
+
+# x11 is MIT?
+MIT :: x11
+
+|| ( MIT GPL-2 ) {
+ mit|gpl2
+}
+
+MPL-1.1 {
+ mozillapubliclicense1.1
+ mpl1.1
+}
+
+MPL-2.0 {
+ mozillapubliclicense
+ mpl2.0
+}
+
+public-domain {
+ publicdomain
+}
+
+ZLIB {
+ zliblicense
+}