[r-cran-matching] 02/02: Initial debian packaging

Andreas Tille tille at debian.org
Mon Nov 27 16:53:39 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-matching.

commit 6d5356963493e51f6ac1148b253ff3aca2d994fb
Author: Andreas Tille <tille at debian.org>
Date:   Mon Nov 27 17:53:21 2017 +0100

    Initial debian packaging
---
 debian/changelog           |  5 +++++
 debian/compat              |  1 +
 debian/control             | 26 ++++++++++++++++++++++++++
 debian/copyright           | 26 ++++++++++++++++++++++++++
 debian/docs                |  2 ++
 debian/rules               | 13 +++++++++++++
 debian/source/format       |  1 +
 debian/tests/control       |  5 +++++
 debian/tests/run-unit-test | 17 +++++++++++++++++
 debian/watch               |  2 ++
 10 files changed, 98 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2e1d2f0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+r-cran-matching (4.9-2-1) UNRELEASED; urgency=medium
+
+  * Initial release (closes: #xxxxxx)
+
+ -- Andreas Tille <tille at debian.org>  Mon, 27 Nov 2017 17:43:06 +0100
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..4ea982d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: r-cran-matching
+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-base-dev,
+               r-cran-mass
+Standards-Version: 4.1.1
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/r-cran-matching.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/r-cran-matching.git
+Homepage: https://cran.r-project.org/package=Matching
+
+Package: r-cran-matching
+Architecture: any
+Depends: ${R:Depends},
+         ${shlibs:Depends},
+         ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
+Description: multivariate and propensity score matching with balance optimization
+ Provides functions for multivariate and propensity score matching
+ and for finding optimal balance based on a genetic search algorithm.
+ A variety of univariate and multivariate metrics to
+ determine if balance has been obtained are also provided.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..312ba46
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Matching
+Upstream-Contact: Jasjeet Singh Sekhon <sekhon at berkeley.edu>
+Source: https://cran.r-project.org/package=Matching
+
+Files: *
+Copyright: 2008-2015 Jasjeet Singh Sekhon <sekhon at berkeley.edu>
+License: GPL-3
+
+Files: debian/*
+Copyright: 2017 Andreas Tille <tille at debian.org>
+License: GPL-3
+
+License: GPL-3
+    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 3 of the License.
+ .
+    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
+ version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
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..085c807
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --buildsystem R
+
+override_dh_install:
+	dh_install
+	find debian -name configure.win -delete
+	find debian -name configure.old -delete
+
+override_dh_fixperms:
+	dh_fixperms
+	find debian -name ICC -exec chmod -x \{\} \;
\ No newline at end of file
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..d6849ad
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+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..73ee1e8
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+pkgname=Matching
+debname=r-cran-matching
+
+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..4e9ce74
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://cran.r-project.org/src/contrib/Matching_([-\d.]*)\.tar\.gz

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



More information about the debian-science-commits mailing list