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

Jonathon Love jon at thon.cc
Mon Sep 14 19:36:15 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-bayesfactor.

commit cca310aa7eff68391f39f2fc6ef6a08d657dd386
Author: Jonathon Love <jon at thon.cc>
Date:   Mon Sep 14 21:35:39 2015 +0200

    Added debian/ directory
---
 debian/README.source             | 25 +++++++++++++++++
 debian/README.test               |  9 ++++++
 debian/changelog                 |  6 ++++
 debian/compat                    |  1 +
 debian/control                   | 41 +++++++++++++++++++++++++++
 debian/copyright                 | 34 +++++++++++++++++++++++
 debian/docs                      |  3 ++
 debian/patches/series            |  1 +
 debian/patches/use-local-mathjax | 60 ++++++++++++++++++++++++++++++++++++++++
 debian/rules                     |  4 +++
 debian/source/format             |  1 +
 debian/tests/control             |  3 ++
 debian/tests/run-unit-test       | 20 ++++++++++++++
 debian/watch                     |  3 ++
 14 files changed, 211 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..97d787a
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,25 @@
+Explanation for binary files inside source package according to
+  http://lists.debian.org/debian-devel/2013/09/msg00332.html
+
+This package contains the following data sets
+
+Files: data/puzzles.rda
+Documentation: man/puzzles.Rd
+  Example data set:
+  Puzzle completion times from Hays (1994)
+  Hays (1994; section 13.21, table 13.21.2, p. 570) describes an experiment
+  wherein 12 participants complete four puzzles each. Puzzles could be either
+  square or round, and either monochromatic or in color. Each participant
+  completed every combination of the two factors.
+
+Files: data/raceDolls.rda
+Documentation: man/raceDolls.Rd
+  Example data set:
+  Hraba and Grant (1970) describe a replication of Clark and Clark (1947) in
+  which black and white children from Lincoln, Nebraska were shown dolls that
+  were either black or white. They were then asked a series of questions,
+  including "Give me the doll that is a nice doll." This data set contains the
+  frequency of children giving the same-race or different race doll in response
+  to this question.
+
+
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..de5b7c1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+r-cran-bayesfactor (0.9.11-1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #797820)
+
+ -- Jonathon Love <jon at thon.cc>  Mon, 14 Sep 2015 20:34:32 +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..ace6d33
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,41 @@
+Source: r-cran-bayesfactor
+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-coda,
+               r-cran-matrix,
+               r-cran-pbapply,
+               r-cran-mvtnorm,
+               r-cran-stringr,
+               r-cran-gtools,
+               r-cran-matrixmodels,
+               r-cran-rcpp,
+               r-cran-rcppeigen
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/r-cran-bayesfactor.git
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/r-cran-bayesfactor.git
+Homepage: http://bayesfactorpcl.r-forge.r-project.org/
+
+Package: r-cran-bayesfactor
+Architecture: any
+Depends: ${R:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends},
+         r-base,
+         r-cran-coda,
+         r-cran-matrix,
+         r-cran-pbapply,
+         r-cran-mvtnorm,
+         r-cran-stringr,
+         r-cran-gtools,
+         r-cran-matrixmodels,
+         r-cran-rcpp,
+         r-cran-rcppeigen
+Description: GNU R package for computing Bayes factors for t-tests, ANOVAs and contingency tables
+ A suite of functions for computing various Bayes factors for simple
+ designs, including contingency tables, one- and two-sample designs, one-
+ way designs, general ANOVA designs, and linear regression.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d0338cf
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: BayesFactor
+Upstream-Contact: Richard D. Morey <richarddmorey at gmail.com>
+Source: http://cran.r-project.org/web/packages/BayesFactor
+
+Files: *
+Copyright: 2012-2015 Richard D. Morey, Jeffrey N. Rouder, Tahira Jamil
+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;
+ version 2.
+ .
+ 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/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5d4eb1a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-local-mathjax
diff --git a/debian/patches/use-local-mathjax b/debian/patches/use-local-mathjax
new file mode 100644
index 0000000..8917ee8
--- /dev/null
+++ b/debian/patches/use-local-mathjax
@@ -0,0 +1,60 @@
+
+From: Jonathon Love <jon at thon.cc>
+
+Description: MathJax <script>'s are now loaded locally, not from remote
+ Fixes privacy-breach-uses-embedded-file lintian error
+
+Author: Jonathon Love <jon at thon.cc>
+
+Index: r-cran-bayesfactor/inst/doc/compare_lme4.html
+===================================================================
+--- r-cran-bayesfactor.orig/inst/doc/compare_lme4.html
++++ r-cran-bayesfactor/inst/doc/compare_lme4.html
+@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
+ </script>
+ 
+ <!-- MathJax scripts -->
+-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
+ </script>
+ 
+ 
+Index: r-cran-bayesfactor/inst/doc/manual.html
+===================================================================
+--- r-cran-bayesfactor.orig/inst/doc/manual.html
++++ r-cran-bayesfactor/inst/doc/manual.html
+@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
+ </script>
+ 
+ <!-- MathJax scripts -->
+-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
+ </script>
+ 
+ 
+Index: r-cran-bayesfactor/inst/doc/odds_probs.html
+===================================================================
+--- r-cran-bayesfactor.orig/inst/doc/odds_probs.html
++++ r-cran-bayesfactor/inst/doc/odds_probs.html
+@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
+ </script>
+ 
+ <!-- MathJax scripts -->
+-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
+ </script>
+ 
+ 
+Index: r-cran-bayesfactor/inst/doc/priors.html
+===================================================================
+--- r-cran-bayesfactor.orig/inst/doc/priors.html
++++ r-cran-bayesfactor/inst/doc/priors.html
+@@ -58,7 +58,7 @@ hljs.initHighlightingOnLoad();
+ </script>
+ 
+ <!-- MathJax scripts -->
+-<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
++<script type="text/javascript" src="file:///usr/share/javascript/mathjax/MathJax.js">
+ </script>
+ 
+ 
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..b2186e1
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+
+pkg=r-cran-bayesfactor
+
+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..d6046f3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://cran.r-project.org/src/contrib/BayesFactor_([\d\.-]*).tar.gz
+

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



More information about the debian-science-commits mailing list