[med-svn] [r-bioc-rbgl] 04/07: Switch to dh-r

Andreas Tille tille at debian.org
Fri Oct 28 09:06:16 UTC 2016


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

tille pushed a commit to branch master
in repository r-bioc-rbgl.

commit 134fc6aec89b781ee6453c689da1c9f84d4ffb3d
Author: Andreas Tille <tille at debian.org>
Date:   Fri Oct 28 10:48:46 2016 +0200

    Switch to dh-r
---
 debian/changelog |  1 +
 debian/control   |  7 ++++---
 debian/rules     | 45 +++++++++++++--------------------------------
 3 files changed, 18 insertions(+), 35 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c093eca..eb678a9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ r-bioc-rbgl (1.50.0+dfsg-1) UNRELEASED; urgency=medium
 
   * Team upload.
   * New upstream version
+  * Switch to dh-r
 
  -- Andreas Tille <tille at debian.org>  Fri, 28 Oct 2016 10:45:16 +0200
 
diff --git a/debian/control b/debian/control
index 054cffc..d381f33 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Uploaders: Christopher Hoskin <christopher.hoskin at gmail.com>
 Section: gnu-r
 Priority: optional
 Build-Depends: debhelper (>= 9),
-               cdbs,
+               dh-r,
                r-base-dev,
                r-bioc-graph,
                libboost-dev
@@ -17,8 +17,9 @@ Package: r-bioc-rbgl
 Architecture: any
 Depends: ${R:Depends},
          ${shlibs:Depends},
-         ${misc:Depends},
-         r-bioc-graph
+         ${misc:Depends}
+Recommends: ${R:Recommends}
+Suggests: ${R:Suggests}
 Description: R interface to the graph algorithms contained in the BOOST library
  RBGL is part of the BioConductor GNU R suite. It is a fairly extensive and
  comprehensive interface to the graph algorithms contained in the BOOST C++
diff --git a/debian/rules b/debian/rules
index de3d576..a5adcb1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,40 +1,21 @@
 #!/usr/bin/make -f
-# See debhelper(7) (uncomment to enable)
-# output every command that modifies files on the build system.
-#export DH_VERBOSE = 1
 
+debRreposname   := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}' | sed 's/r-\([a-z]\+\)-.*/\1/')
+awkString       := "'/^(Package|Bundle):/ {print $$2 }'"
+cranNameOrig    := $(shell awk "$(awkString)" DESCRIPTION)
+cranName        := $(shell echo "$(cranNameOrig)" | tr 'A-Z' 'a-z')
+package         := r-$(debRreposname)-$(cranName)
+debRdir         := usr/lib/R/site-library
+debRlib         := $(CURDIR)/debian/$(package)/$(debRdir)
 
-# see FEATURE AREAS in dpkg-buildflags(1)
-export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+%:
+	dh $@ --buildsystem R
 
-# see ENVIRONMENT in dpkg-buildflags(1)
-# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
-# package maintainers to append LDFLAGS
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
-
-#%:
-#	dh $@  --with autotools_dev
-
-
-debRreposname=bioc
-include /usr/share/R/debian/r-cran.mk
-
-#build:
-#	mkdir -p src/rbgl_trimmed_boost_1_49_0
-
-common-install-indep::
-common-install-arch:: 
-	chmod -x debian/r-bioc-rbgl/usr/lib/R/site-library/RBGL/dot/*.dot
-	chmod -x debian/r-bioc-rbgl/usr/lib/R/site-library/RBGL/XML/simpleExample.gxl 
+override_dh_fixperms:
+	dh_fixperms
+	chmod -x $(debRlib)/$(cranNameOrig)/dot/*.dot
+	chmod -x $(debRlib)/$(cranNameOrig)/XML/simpleExample.gxl
 
 unittests:
 	R -f tests/runTests.R
 
-
-# dh_make generated override targets
-# This is example for Cmake (See https://bugs.debian.org/641051 )
-#override_dh_auto_configure:
-#	dh_auto_configure -- #	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-bioc-rbgl.git



More information about the debian-med-commit mailing list