[med-svn] [r-cran-cmprsk] 01/06: Inject r-cran-cmprsk

Andreas Tille tille at debian.org
Thu Oct 19 08:56:35 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-cmprsk.

commit 74a5239378ca7a75b7f7e7a88fb75bced245e855
Author: Andreas Tille <tille at debian.org>
Date:   Thu Sep 24 09:05:43 2015 +0000

    Inject r-cran-cmprsk
---
 debian/README.test         |  8 ++++++++
 debian/changelog           |  5 +++++
 debian/compat              |  1 +
 debian/control             | 25 +++++++++++++++++++++++++
 debian/copyright           | 30 ++++++++++++++++++++++++++++++
 debian/docs                |  3 +++
 debian/rules               |  3 +++
 debian/source/format       |  1 +
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 23 +++++++++++++++++++++++
 debian/upstream/metadata   | 10 ++++++++++
 debian/watch               |  2 ++
 12 files changed, 114 insertions(+)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..55a9142
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+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.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e495590
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-cmprsk (2.2-7-1) UNRELEASED; urgency=low
+
+  * Initial release (closes: #???)
+
+ -- Andreas Tille <tille at debian.org>  Thu, 24 Sep 2015 09:59:03 +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..223b028
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: r-cran-cmprsk
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: gnu-r
+Testsuite: autopkgtest
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               cdbs,
+               r-base-dev,
+               r-cran-survival
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-cmprsk/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-cmprsk/trunk/
+Homepage: https://cran.r-project.org/web/packages/cmprsk/
+
+Package: r-cran-cmprsk
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${R:Depends},
+         r-cran-survival
+Description: GNU R subdistribution analysis of competing risks
+ This GNU R package supports estimation, testing and regression modeling
+ of subdistribution functions in competing risks, as described in Gray
+ (1988), A class of K-sample tests for comparing the cumulative incidence
+ of a competing risk.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b78c98f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,30 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: cmprsk
+Upstream-Contact: Bob Gray <gray at jimmy.harvard.edu>
+Source: http://cran.r-project.org/src/contrib/
+
+Files: *
+Copyright: 1998-2014 Bob Gray <gray at jimmy.harvard.edu>
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2015 Andreas Tille <tille at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in `/usr/share/common-licenses/GPL'.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..3adf0d6
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests
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..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..c27a190
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+pkg=r-cran-cmprsk
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+for htest in `ls *.R | sed 's/\.R$//'` ; do
+   LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
+   diff -u ${htest}.Rout.save ${htest}.Rout
+   if [ ! $? ] ; then
+     echo "Test ${htest} failed"
+     exit 1
+   else
+     echo "Test ${htest} passed"
+   fi
+done
+rm -f $ADTTMP/*
+
+exit 0
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..1c55833
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,10 @@
+Reference:
+  Author: Jason P. Fine and Robert J. Gray
+  Title: "A proportional hazards model for the subdistribution of a competing risk"
+  Journal: J Am Stat Assoc
+  Year: 1999
+  Volume: 94
+  Number: 446
+  Pages: 496-509
+  DOI: 10.2307/2670170
+  URL: http://www.tandfonline.com/doi/abs/10.1080/01621459.1999.10474144
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0e59700
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://cran.r-project.org/src/contrib/cmprsk_([-\d.]*)\.tar\.gz

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



More information about the debian-med-commit mailing list