[med-svn] [r-cran-lambda.r] 01/10: Inject another pre-pre-condition for BioConductor updates

Andreas Tille tille at debian.org
Thu Sep 28 21:11:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-lambda.r.

commit 5a6877d93526ed269255e15ce641abc26e2f5762
Author: Andreas Tille <tille at debian.org>
Date:   Sun May 10 07:09:47 2015 +0000

    Inject another pre-pre-condition for BioConductor updates
---
 debian/README.test                                 | 10 ++++++++
 debian/changelog                                   |  5 ++++
 debian/compat                                      |  1 +
 debian/control                                     | 24 +++++++++++++++++++
 debian/copyright                                   | 16 +++++++++++++
 debian/docs                                        |  3 +++
 .../no_test_report_in_usr_lib_R_site-library.patch | 27 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       |  3 +++
 debian/source/format                               |  1 +
 debian/tests/control                               |  3 +++
 debian/tests/run-unit-test                         | 11 +++++++++
 debian/watch                                       |  2 ++
 13 files changed, 107 insertions(+)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..0fe5d4e
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,10 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.
+
+ -- Andreas Tille <tille at debian.org>  Fri, 20 Jun 2014 15:25:06 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..da797db
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-lambda.r (1.1.7-1) UNRELEASED; urgency=medium
+
+  * Initial upload (Closes: #???)
+
+ -- Andreas Tille <tille at debian.org>  Sat, 09 May 2015 08:52:18 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b4f3ce5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: r-cran-lambda.r
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: gnu-r
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               r-base-dev,
+               cdbs
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-lambda.r/
+Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-lambda.r/
+Homepage: http://cran.r-project.org/web/packages/lambda.r
+
+Package: r-cran-lambda.r
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${R:Depends}
+Description: GNU R modeling data with functional programming
+ This GNU R package provides a language extension to efficiently write
+ functional programs in R. Syntax extensions include multi-part function
+ definitions, pattern matching, guard statements, built-in (optional)
+ type safety.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e6e6e4f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Brian Lee Yung Rowe <r at zatonovo.com>
+Upstream-Name: futile.options
+Source: http://cran.r-project.org/web/packages/lambda.r/
+
+Files: *
+Copyright: 2010-2015 Brian Lee Yung Rowe <r at zatonovo.com>
+License: LGPL-3+
+
+Files: debian/*
+Copyright: 2015 Andreas Tille <tille at debian.org>
+License: LGPL-3+
+
+License: LGPL-3+
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 3 can be found in ‘/usr/share/common-licenses/LGPL-3’.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..960011c
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+tests
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/patches/no_test_report_in_usr_lib_R_site-library.patch b/debian/patches/no_test_report_in_usr_lib_R_site-library.patch
new file mode 100644
index 0000000..a95df07
--- /dev/null
+++ b/debian/patches/no_test_report_in_usr_lib_R_site-library.patch
@@ -0,0 +1,27 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Sat, 09 May 2015 08:52:18 +0200
+Description: The test suite tries to write an logfile in addition to the standard
+ output to /usr/lib/R/site-library/lambda.r/unitTests/reportSummary.txt which
+ is for sure permitted
+
+--- a/tests/doRUnit.R
++++ b/tests/doRUnit.R
+@@ -39,13 +39,13 @@ if(require("RUnit", quietly=TRUE)) {
+   ## Report to stdout and text files
+   cat("------------------- UNIT TEST SUMMARY ---------------------\n\n")
+   printTextProtocol(tests, showDetails=FALSE)
+-  printTextProtocol(tests, showDetails=FALSE,
+-                    fileName=paste(pathReport, "Summary.txt", sep=""))
+-  printTextProtocol(tests, showDetails=TRUE,
+-                    fileName=paste(pathReport, ".txt", sep=""))
++#  printTextProtocol(tests, showDetails=FALSE,
++#                    fileName=paste(pathReport, "Summary.txt", sep=""))
++#  printTextProtocol(tests, showDetails=TRUE,
++#                    fileName=paste(pathReport, ".txt", sep=""))
+  
+   ## Report to HTML file
+-  printHTMLProtocol(tests, fileName=paste(pathReport, ".html", sep=""))
++##  printHTMLProtocol(tests, fileName=paste(pathReport, ".html", sep=""))
+  
+   ## Return stop() to cause R CMD check stop in case of
+   ##  - failures i.e. FALSE to unit tests or
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f389607
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no_test_report_in_usr_lib_R_site-library.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2fbba2d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+
+include /usr/share/R/debian/r-cran.mk
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a0a0edc
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-survival
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..25de254
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+pkg=r-cran-lambda.r
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\}
+LC_ALL=C R --no-save < doRUnit.R
+rm -fr $ADTTMP/*
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..989ee1e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://cran.r-project.org/src/contrib/lambda.r_([\d.-]*)\.tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-lambda.r.git



More information about the debian-med-commit mailing list