[med-svn] [r-cran-memoise] 10/15: * New upstream version * Rename source package to the usual naming pattern * cme fix dpkg-control * Convert to dh-r * Canonical homepage for CRAN * Update copyright * Drop Ivo Maintz from Uploaders * debhelper 10 * d/watch: version=4 * Add autopkgtest

Andreas Tille tille at debian.org
Fri Sep 29 19:56:28 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-memoise.

commit e5619f86c6f35af514f6f0957a4e7101faee934f
Author: Andreas Tille <tille at debian.org>
Date:   Wed Nov 30 09:29:26 2016 +0000

      * New upstream version
      * Rename source package to the usual naming pattern
      * cme fix dpkg-control
      * Convert to dh-r
      * Canonical homepage for CRAN
      * Update copyright
      * Drop Ivo Maintz from Uploaders
      * debhelper 10
      * d/watch: version=4
      * Add autopkgtest
---
 debian/README.test         |  7 +++++--
 debian/changelog           | 15 +++++++++++++++
 debian/compat              |  2 +-
 debian/control             | 19 ++++++++++---------
 debian/copyright           |  8 +++++---
 debian/docs                |  2 ++
 debian/rules               | 11 +++++------
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 13 +++++++++++++
 debian/watch               |  2 +-
 10 files changed, 60 insertions(+), 22 deletions(-)

diff --git a/debian/README.test b/debian/README.test
index 5254cc9..90657cf 100644
--- a/debian/README.test
+++ b/debian/README.test
@@ -1,5 +1,8 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-This package can be tested by loading it into R with the command
-‘library(memoise)’ in order to confirm its integrity.
+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
index c5a92b0..35ef3b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,18 @@
+r-cran-memoise (1.0.0-1) unstable; urgency=medium
+
+  * New upstream version
+  * Rename source package to the usual naming pattern
+  * cme fix dpkg-control
+  * Convert to dh-r
+  * Canonical homepage for CRAN
+  * Update copyright
+  * Drop Ivo Maintz from Uploaders
+  * debhelper 10
+  * d/watch: version=4
+  * Add autopkgtest
+
+ -- Andreas Tille <tille at debian.org>  Wed, 30 Nov 2016 10:24:09 +0100
+
 memoise (0.2.1-1) unstable; urgency=medium
 
   * New upstream version
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 819260f..cd6783d 100644
--- a/debian/control
+++ b/debian/control
@@ -1,22 +1,23 @@
-Source: memoise
+Source: r-cran-memoise
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
-Uploaders: Ivo Maintz <ivo at maintz.de>,
-           Andreas Tille <tille at debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
 Priority: optional
-Build-Depends: debhelper (>= 9),
+Build-Depends: debhelper (>= 10),
                r-base-dev,
                r-cran-digest,
-               cdbs
-Standards-Version: 3.9.5
-Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-memoise/trunk/
+               dh-r
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-memoise/trunk/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-memoise/trunk/
-Homepage: http://cran.r-project.org/web/packages/memoise/index.html
+Homepage: https://cran.r-project.org/package=memoise
 
 Package: r-cran-memoise
 Architecture: all
-Depends: ${shlibs:Depends},
+Depends: ${R:Depends},
          ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
 Description: Memoise functions
  Cache the results of a function so that when you call it again with the same
  arguments it returns the pre-computed value.
diff --git a/debian/copyright b/debian/copyright
index 1351cea..6b684fc 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,9 +1,11 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Contact: Jim Hester <jim.hester at rstudio.com>
 Upstream-Name: memoise
-Source: http://cran.r-project.org/web/packages/memoise/index.html
+Source: https://cran.r-project.org/package=memoise
 
 Files: *
-Copyright: 2012 Hadley Wickham <h.wickham at gmail.com>
+Copyright: 2012-2016 Hadley Wickham <h.wickham at gmail.com>
+                     Jim Hester, Kirill Müller
 License: MIT
  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
diff --git a/debian/docs b/debian/docs
index 50f6656..960011c 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,3 @@
+tests
 debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/rules b/debian/rules
index b2d6595..7106257 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,8 @@
 #!/usr/bin/make -f
 
-include /usr/share/R/debian/r-cran.mk
+%:
+	dh $@ --buildsystem R
 
-install/$(package)::
-	rm -rf debian/$(package)/usr/lib/R/site-library/$(cranName)/LICENSE
-
-get-orig-source:
-	uscan --force-download --verbose
+override_dh_install:
+	dh_install
+	find . -name LICENSE -delete
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..982bc8c
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+oname=memoise
+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
index 264b01e..88cd84c 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
-version=3
+version=4
 http://cran.r-project.org/src/contrib/memoise_([\d.-]*)\.tar.gz

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



More information about the debian-med-commit mailing list