pkg$license <- accept_license(pkg)
pkg$depends <- get_dependencies(pkg,extra_deps)
apply_patches(pkg)
+ generate_lintian(pkg)
generate_changelog(pkg)
generate_rules(pkg)
generate_copyright(pkg)
--- /dev/null
+apply_lintian <- function(pkg) {
+ lintian_src = file.path(lintian_dir, pkg$name)
+ if (!file.exists(lintian_src)) {
+ notice('no lintian overrides ', lintian_src)
+ return()
+ }
+
+ # copy the lintian file
+ notice('including lintian file', lintian_src)
+ lintian_tgt <- pkg$debfile(paste(pkg$debname, "lintian-overrides", sep="."))
+ file.copy(lintian_src, lintian_tgt)
+ invisible(NULL)
+}
+
global("r_depend_fields", c('Depends','Imports')) # Suggests, Enhances
global("scm_revision", paste("svn:", svnversion()))
global("patch_dir", '/etc/cran2deb/patches')
+ global("lintian_dir", '/etc/cran2deb/lintian')
global("changesfile", function(srcname,version='*') {
return(file.path(pbuilder_results
,paste(srcname,'_',version,'_'