[med-svn] r22329 - in trunk/packages/R: . r-cran-bbmle r-cran-bbmle/trunk r-cran-bbmle/trunk/debian r-cran-bbmle/trunk/debian/source r-cran-bbmle/trunk/debian/tests
Andreas Tille
tille at moszumanska.debian.org
Mon Jul 4 10:20:09 UTC 2016
Author: tille
Date: 2016-07-04 10:20:08 +0000 (Mon, 04 Jul 2016)
New Revision: 22329
Added:
trunk/packages/R/r-cran-bbmle/
trunk/packages/R/r-cran-bbmle/trunk/
trunk/packages/R/r-cran-bbmle/trunk/debian/
trunk/packages/R/r-cran-bbmle/trunk/debian/README.test
trunk/packages/R/r-cran-bbmle/trunk/debian/changelog
trunk/packages/R/r-cran-bbmle/trunk/debian/compat
trunk/packages/R/r-cran-bbmle/trunk/debian/control
trunk/packages/R/r-cran-bbmle/trunk/debian/copyright
trunk/packages/R/r-cran-bbmle/trunk/debian/docs
trunk/packages/R/r-cran-bbmle/trunk/debian/rules
trunk/packages/R/r-cran-bbmle/trunk/debian/source/
trunk/packages/R/r-cran-bbmle/trunk/debian/source/format
trunk/packages/R/r-cran-bbmle/trunk/debian/tests/
trunk/packages/R/r-cran-bbmle/trunk/debian/tests/control
trunk/packages/R/r-cran-bbmle/trunk/debian/tests/run-unit-test
trunk/packages/R/r-cran-bbmle/trunk/debian/watch
Log:
Inject r-cran-bbmle
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/README.test (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/README.test 2016-07-04 10:20:08 UTC (rev 22329)
@@ -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.
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/changelog (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/changelog 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,5 @@
+r-cran-bbmle (1.0.18-1) UNRELEASED; urgency=low
+
+ * Initial release (closes: #???)
+
+ -- Andreas Tille <tille at debian.org> Tue, 28 Jun 2016 17:09:05 +0200
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/compat
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/compat (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/compat 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1 @@
+9
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/control (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/control 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,27 @@
+Source: r-cran-bbmle
+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),
+ cdbs,
+ r-base-dev,
+ r-cran-numderiv,
+ r-cran-lattice,
+ r-cran-mass
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-bbmle/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-bbmle/trunk/
+Homepage: https://cran.r-project.org/web/packages/bbmle
+
+Package: r-cran-bbmle
+Architecture: any
+Depends: ${misc:Depends},
+ ${R:Depends},
+ r-cran-numderiv,
+ r-cran-lattice,
+ r-cran-mass
+Description: GNU R tools for general maximum likelihood estimation
+ This GNU R package provides methods and functions for fitting maximum
+ likelihood models in R. This package modifies and extends the 'mle'
+ classes in the 'stats4' package.
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/copyright
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/copyright (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/copyright 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: bbmle
+Upstream-Contact: Ben Bolker <bolker at mcmaster.ca>
+Source: https://cran.r-project.org/web/packages/bbmle
+
+Files: *
+Copyright: 2010-2016 Ben Bolker <bolker at mcmaster.ca>
+ R Development Core Team
+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.
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License can be found in `/usr/share/common-licenses/GPL-2'.
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/docs (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/docs 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/rules (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/rules 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+include /usr/share/R/debian/r-cran.mk
+
+install/$(package)::
+ chmod -x $(debRlib)/$(cranNameOrig)/unitTests/*
+ chmod -x $(debRlib)/$(cranNameOrig)/vignetteData/*
Property changes on: trunk/packages/R/r-cran-bbmle/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/source/format
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/source/format (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/source/format 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/tests/control (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/tests/control 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/tests/run-unit-test 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,61 @@
+#!/bin/sh -e
+
+oname=bbmle
+pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
+
+# The saved result files do contain some differences in metadata and we also
+# need to ignore version differences of R
+filter() {
+ grep -v -e '^R version' \
+ -e '^Copyright (C)' \
+ -e '^R : Copyright 20' \
+ -e '^R Under development (unstable)' \
+ -e '^Platform:' \
+ -e '^ISBN 3-900051-07-0' \
+ -e '^$' \
+ -e 'Natural language support but running in an English locale' \
+ -e '^Loading required package: stats4' \
+ $1 | \
+ sed -e '/^> *proc\.time()$/,$d' \
+ -e "/^Signif. codes:/s/[‘’]/'/g"
+}
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+# trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+if [ 0 -eq 1 ] ; then # try to use RUnit - but this does not do anything :-(
+ mkdir inst
+ cd inst
+ cp -a /usr/lib/R/site-library/${oname}/unitTests .
+ cd ..
+fi
+cp -a /usr/share/doc/${pkg}/tests $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+cd tests
+if [ 0 -eq 1 ] ; then # try to use RUnit - but this does not do anything :-(
+ # This does not test anything - no idea why
+ RCMDCHECK=FALSE R --vanilla --slave < doRUnit.R
+fi
+
+for htest in `ls *.R | sed 's/\.R$//'` ; do
+ if [ "${htest}" = "doRUnit" -o "${htest}" = "RUnit-tests" ] ; then
+ # This is no separate test but should trigger all test (but fails to do so for whatever reason
+ continue
+ fi
+ if [ "${htest}" = "optimx" ] ; then
+ # Needs https://cran.r-project.org/web/packages/optimx/ which is not packaged yet
+ continue
+ fi
+ LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
+ filter ${htest}.Rout.save > ${htest}.Rout.save_
+ filter ${htest}.Rout > ${htest}.Rout_
+ diff -u --ignore-space-change ${htest}.Rout.save_ ${htest}.Rout_
+ if [ ! $? ] ; then
+ echo "Test ${htest} failed"
+ exit 1
+ else
+ echo "Test ${htest} passed"
+ fi
+done
Added: trunk/packages/R/r-cran-bbmle/trunk/debian/watch
===================================================================
--- trunk/packages/R/r-cran-bbmle/trunk/debian/watch (rev 0)
+++ trunk/packages/R/r-cran-bbmle/trunk/debian/watch 2016-07-04 10:20:08 UTC (rev 22329)
@@ -0,0 +1,2 @@
+version=3
+http://cran.r-project.org/src/contrib/bbmle_([-\d.]*)\.tar\.gz
More information about the debian-med-commit
mailing list