[r-cran-contfrac] 01/01: Added debian/ directory

Jonathon Love jon at thon.cc
Sun Aug 30 20:57:45 UTC 2015


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

jonathon-guest pushed a commit to branch master
in repository r-cran-contfrac.

commit bd888be456670066f4c2808e664b49a5ee0c1f40
Author: Jonathon Love <jon at thon.cc>
Date:   Sun Aug 30 22:56:21 2015 +0200

    Added debian/ directory
---
 debian/README.test         |  9 +++++++++
 debian/changelog           |  6 ++++++
 debian/compat              |  1 +
 debian/control             | 23 +++++++++++++++++++++++
 debian/copyright           | 36 ++++++++++++++++++++++++++++++++++++
 debian/docs                |  3 +++
 debian/rules               |  4 ++++
 debian/source/format       |  1 +
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 20 ++++++++++++++++++++
 debian/watch               |  3 +++
 11 files changed, 109 insertions(+)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..ab9ca74
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,9 @@
+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..1e18b6d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+r-cran-contfrac (1.1-9-1) unstable; urgency=low
+
+  * Initial release. (Closes: #797467)
+
+ -- Jonathon Love <jon at thon.cc>  Sun, 30 Aug 2015 17:57:41 +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..437eb15
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: r-cran-contfrac
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jonathon Love <jon at thon.cc>
+Section: gnu-r
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               cdbs,
+               r-base-dev,
+               r-cran-mass
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/r-cran-contfrac.git
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/r-cran-contfrac.git
+Homepage: http://cran.r-project.org/package=contfrac
+
+Package: r-cran-contfrac
+Architecture: any
+Depends: ${R:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends},
+         r-base,
+         r-cran-mass
+Description: GNU R package providing various utilities for evaluating continued fractions
+ The contfrac package is a GNU R package providing various utilities for evaluating continued fractions.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7547a16
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,36 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: contfrac
+Upstream-Contact: Robin K. S. Hankin <hankin.robin at gmail.com>
+Source: http://cran.r-project.org/web/packages/contfrac
+
+Files: *
+Copyright: 2008-2013 Robin K. S. Hankin.
+License: GPL-2
+
+Files: debian/*
+Copyright: 2015 Jonathon Love <jon at thon.cc>
+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 package; if not, write to the Free
+ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ Boston, MA  02110-1301 USA
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+
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..935f37f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,4 @@
+#!/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..4c7329b
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+pkg=r-cran-elliptic
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip -r *.gz
+for runtest in `ls *.R` ; do
+   LC_ALL=C R --no-save < $runtest >/dev/null
+   if [ ! $? ] ; then
+     echo "Test ${runtest} failed"
+     exit 1
+   else
+     echo "Test ${runtest} passed"
+   fi
+done
+rm -rf $ADTTMP/*
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..a6c9663
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://cran.r-project.org/src/contrib/contfrac_([\d\.-]*).tar.gz
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-contfrac.git



More information about the debian-science-commits mailing list