]> git.donarmstrong.com Git - cran2deb.git/blobdiff - trunk/R/debcontrol.R
add Author and Maintainer fields to description
[cran2deb.git] / trunk / R / debcontrol.R
index 743aa0085b7707c39dda92f6139572b571cd0dd7..f9aeecd4c9ac791b60d9164f59fcb724c09ee30c 100644 (file)
@@ -121,7 +121,7 @@ generate_control <- function(pkg) {
     control[1,'Priority'] = 'optional'
     control[1,'Maintainer'] = maintainer
     control[1,'Build-Depends'] = paste(pkg$depends$build,collapse=', ')
-    control[1,'Standards-Version'] = '3.8.1'
+    control[1,'Standards-Version'] = '3.8.3'
 
     control[2,'Package'] = pkg$debname
     control[2,'Architecture'] = 'all'
@@ -163,8 +163,11 @@ generate_control <- function(pkg) {
     # the longer description does not begin on the synopsis line --- R's
     # write.dcf does not appear to have a nicer way of doing this.
     descr = paste(descr,'"\n\n', long_descr, sep='')
-    if ('URL' %in% colnames(pkg$description)) {
-        descr = paste(descr,'\n\nURL: ',pkg$description[1,'URL'],sep='')
+    % add some extra nice info about the original R package
+    for (r_info in c('Author','Maintainer','URL')) {
+        if (r_info %in% colnames(pkg$description)) {
+            descr = paste(descr,'\n\n',r_info,': ',pkg$description[1,r_info],sep='')
+        }
     }
     control[2,'Description'] = descr