[med-svn] [r-cran-withr] 01/05: Inject r-cran-withr

Andreas Tille tille at debian.org
Fri Sep 29 17:10:03 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-withr.

commit 7ecf1018a41602330fd88f632d083b227c3b52fc
Author: Andreas Tille <tille at debian.org>
Date:   Sun Dec 4 17:49:56 2016 +0000

    Inject r-cran-withr
---
 debian/README.test         |  8 ++++++++
 debian/changelog           |  5 +++++
 debian/compat              |  1 +
 debian/control             | 25 +++++++++++++++++++++++++
 debian/copyright           | 31 +++++++++++++++++++++++++++++++
 debian/docs                |  3 +++
 debian/rules               |  5 +++++
 debian/source/format       |  1 +
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 13 +++++++++++++
 debian/watch               |  2 ++
 11 files changed, 97 insertions(+)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..90657cf
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+    sh run-unit-test
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2f85706
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-withr (1.0.2-1) UNRELEASED; urgency=medium
+
+  * Initial release (closes: #xxxxxx)
+
+ -- Andreas Tille <tille at debian.org>  Sun, 04 Dec 2016 18:36:51 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..dd9be45
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: r-cran-withr
+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 (>= 10),
+               dh-r,
+               r-base-dev
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-withr/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-withr/trunk/
+Homepage: https://cran.r-project.org/package=withr
+
+Package: r-cran-withr
+Architecture: all
+Depends: ${R:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
+Description: GNU R package to run code 'With' temporarily modified global state
+ A set of functions to run code 'with' safely and temporarily
+ modified global state. Many of these functions were originally a part of the
+ 'devtools' package, this provides a simple package with limited dependencies
+ to provide access to these functions.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..65ec716
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: withr
+Upstream-Contact: Jim Hester <james.f.hester at gmail.com>
+Source: https://cran.r-project.org/package=withr
+
+Files: *
+Copyright: 2015-29016 Jim Hester, Kirill Müller, Hadley Wickham,
+                      Winston Chang,  RStudio
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2016 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, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in `/usr/share/common-licenses/GPL-2'.
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/rules b/debian/rules
new file mode 100755
index 0000000..529c38a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --buildsystem R
+
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..b044b0c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..52365ae
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+oname=withr
+pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+  trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+LC_ALL=C R --no-save < testthat.R
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e83dcc5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://cran.r-project.org/src/contrib/withr_([-\d.]*)\.tar\.gz

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



More information about the debian-med-commit mailing list