[r-cran-lava] 02/02: Initial packaging

Andreas Tille tille at debian.org
Sun Oct 22 20:47:12 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-lava.

commit 012cfcb92e20abe623abbd79b5c2c21541fb1c0f
Author: Andreas Tille <tille at debian.org>
Date:   Sun Oct 22 22:46:39 2017 +0200

    Initial packaging
---
 debian/README.source        | 68 +++++++++++++++++++++++++++++++++++++++++++++
 debian/changelog            |  5 ++++
 debian/compat               |  1 +
 debian/control              | 31 +++++++++++++++++++++
 debian/copyright            | 20 +++++++++++++
 debian/create_README.source | 29 +++++++++++++++++++
 debian/docs                 |  2 ++
 debian/rules                |  5 ++++
 debian/source/format        |  1 +
 debian/tests/control        |  5 ++++
 debian/tests/run-unit-test  | 17 ++++++++++++
 debian/watch                |  2 ++
 12 files changed, 186 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..08a86aa
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,68 @@
+Explanation for binary files inside source package according to
+  http://lists.debian.org/debian-devel/2013/09/msg00332.html
+
+Files: data/bmd.rda
+Documented: man/bmd.Rd
+  Longitudinal Bone Mineral Density Data (Wide format)
+
+Files: data/bmidata.rda
+Documented: man/bmidata.Rd
+  Data
+
+Files: data/brisa.rda
+Documented: man/brisa.Rd
+  Simulated data
+
+Files: data/calcium.rda
+Documented: man/calcium.Rd
+  Longitudinal Bone Mineral Density Data
+
+Files: data/hubble.rda
+Documented: man/hubble.Rd
+  Hubble data
+
+Files: data/hubble2.rda
+Documented: man/hubble2.Rd
+  Hubble data
+
+Files: data/indoorenv.rda
+Documented: man/indoorenv.Rd
+  Data
+
+Files: data/missingdata.rda
+Documented: man/missingdata.Rd
+  Missing data example
+
+Files: data/nldata.rda
+Documented: man/nldata.Rd
+  Example data (nonlinear model)
+
+Files: data/nsem.rda
+Documented: man/nsem.Rd
+  Example SEM data (nonlinear)
+
+Files: data/semdata.rda
+Documented: man/semdata.Rd
+  Example SEM data
+
+Files: data/serotonin.rda
+Documented: man/serotonin.Rd
+  Serotonin data
+
+Files: data/serotonin2.rda
+Documented: man/serotonin2.Rd
+  Data
+
+Files: data/twindata.rda
+Documented: man/twindata.Rd
+  Twin menarche data
+
+Files: data/BostonHousing2.rda
+Documented: man/BostonHousing.Rd
+  Boston Housing Data
+
+Files: data/PimaIndiansDiabetes2.rda
+Documented: man/PimaIndiansDiabetes.Rd
+  Pima Indians Diabetes Database
+
+ -- Andreas Tille <tille at debian.org>  Sun, 22 Oct 2017 22:45:06 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c01a893
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-lava (1.5.1-1) UNRELEASED; urgency=medium
+
+  * Initial release (closes: #xxxxxx)
+
+ -- Andreas Tille <tille at debian.org>  Sun, 22 Oct 2017 22:29:30 +0200
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..48523d8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,31 @@
+Source: r-cran-lava
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: gnu-r
+Priority: optional
+Build-Depends: debhelper (>= 10),
+               dh-r,
+               r-cran-numderiv,
+               r-cran-survival
+Standards-Version: 4.1.1
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/r-cran-lava.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/r-cran-lava.git
+Homepage: https://cran.r-project.org/package=lava
+
+Package: r-cran-lava
+Architecture: all
+Depends: ${R:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
+Description: Latent Variable Models
+ A general implementation of Structural Equation Models
+ with latent variables (MLE, 2SLS, and composite likelihood
+ estimators) with both continuous, censored, and ordinal
+ outcomes (Holst and Budtz-Joergensen (2013)
+ <doi:10.1007/s00180-012-0344-y>). The package also provides
+ methods for graph exploration (d-separation, back-door criterion),
+ simulation of general non-linear latent variable models, and
+ estimation of influence functions for a broad range of statistical
+ models.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..31cf422
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,20 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lava
+Upstream-Contact: Klaus K. Holst <klaus at holst.it>
+Source: https://cran.r-project.org/package=lava
+
+Files: *
+Copyright: Klaus K. Holst [aut, cre],
+       Brice Ozenne [ctb],
+       Thomas Gerds [ctb]
+License: GPL-3
+Comment: 
+
+Files: debian/*
+Copyright: 2017 Andreas Tille <tille at debian.org>
+License: GPL-3
+Comment: Same license as upstream package
+
+License: GPL-3
+  TODO: insert the appropriate license text
+
diff --git a/debian/create_README.source b/debian/create_README.source
new file mode 100755
index 0000000..a189fe3
--- /dev/null
+++ b/debian/create_README.source
@@ -0,0 +1,29 @@
+#!/bin/sh
+cat <<EOT
+Explanation for binary files inside source package according to
+  http://lists.debian.org/debian-devel/2013/09/msg00332.html
+
+EOT
+
+for rda in ../data/*.rda ; do
+  if [ ! -e ../man/$(basename $rda .rda).Rd ] ; then
+     >&2 echo "Verify documentation for $rda manually"
+  else
+     echo "Files: data/$(basename $rda)"
+     echo "Documented: man/$(basename $rda .rda).Rd"
+     grep '^\\title{' ../man/$(basename $rda .rda).Rd | sed 's/^\\title{\(.*\)}/  \1/'
+     echo ""
+  fi
+done
+
+cat <<EOT
+Files: data/BostonHousing2.rda
+Documented: man/BostonHousing.Rd
+  Boston Housing Data
+
+Files: data/PimaIndiansDiabetes2.rda
+Documented: man/PimaIndiansDiabetes.Rd
+  Pima Indians Diabetes Database
+
+ -- Andreas Tille <tille at debian.org>  `date -R`
+EOT
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..67ce40b
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+debian/tests/run-unit-test
+tests
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..a62fb6e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+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..0c97533
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+pkgname=lava
+debname=r-cran-lava
+
+if [ "$ADTTMP" = "" ] ; then
+    ADTTMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
+    trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/$debname/tests/* $ADTTMP
+gunzip -r *
+for testfile in *.R; do
+    echo "BEGIN TEST $testfile"
+    LC_ALL=C R --no-save < $testfile
+done
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..414d2bd
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://cran.r-project.org/src/contrib/lava_([-\d.]*)\.tar\.gz

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



More information about the debian-science-commits mailing list