summaryrefslogtreecommitdiff
path: root/r-cran.mk.orig
diff options
context:
space:
mode:
authorranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2006-12-21 14:12:49 +0000
committerranke <ranke@f247ebf9-aa24-0410-a698-f940e971ad2b>2006-12-21 14:12:49 +0000
commit5f27b05342292e3bfe6415ae5df9ef9fc46ec1cb (patch)
tree4102cf7f9e1d1d38481637b909a05a1de3a6a85d /r-cran.mk.orig
parentc77475f194d65b2cb7bfc52fd1375aea859cc9fd (diff)
Added the possibility to backport R 2.4.1 to sarge
with the backport from CRAN (2.4.0-0sarge2) installed git-svn-id: svn+ssh://stiller/home/schatz/reps/r-backports@6 f247ebf9-aa24-0410-a698-f940e971ad2b
Diffstat (limited to 'r-cran.mk.orig')
-rwxr-xr-xr-cran.mk.orig47
1 files changed, 47 insertions, 0 deletions
diff --git a/r-cran.mk.orig b/r-cran.mk.orig
new file mode 100755
index 0000000..8fca38d
--- /dev/null
+++ b/r-cran.mk.orig
@@ -0,0 +1,47 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#
+# Generic debian/rules file for the Debian/GNU Linux r-cran-* packages
+#
+# Should be sufficient for Debianization of CRAN (http://cran.r-project.org)
+# packages. Note that you still need to provide the other files in debian/*,
+# in particular control, changelog and copyright.
+#
+# Copyright 2003-2006 by Dirk Eddelbuettel <edd@debian.org>
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/langcore.mk
+
+# awk command to extract word after Package or Bundle, lowercased
+awkString := "'/^(Package|Bundle):/ {print tolower($$2) }'"
+
+# apply it to the upstream meta-info file DESCRIPTION
+cranName := $(shell awk "$(awkString)" DESCRIPTION)
+
+## and use the result to build the Debian'ized package name
+package := r-cran-$(cranName)
+
+## which we use for the to-be-installed-in directory
+debRlib :=$(CURDIR)/debian/$(package)/usr/lib/R/site-library
+
+## optional installation of a lintian silencer
+lintiandir := $(CURDIR)/debian/$(package)/usr/share/lintian/overrides
+
+common-install-indep:: R_any_arch
+common-install-arch:: R_any_arch
+
+R_any_arch:
+ ## create the target directory
+ dh_installdirs usr/lib/R/site-library
+ ## call R to install the sources we're looking at
+ R CMD INSTALL -l $(debRlib) --clean .
+ ## remove extra files which are present in some packages
+ rm -vf $(debRlib)/R.css \
+ $(debRlib)/$(cranName)/COPYING \
+ $(debRlib)/$(cranName)/LICENSE.txt
+ ## if we have an overrides file for lintian, install it
+ if test -f debian/overrides; then \
+ install -d $(lintiandir) ; \
+ install -m 0644 debian/overrides \
+ $(lintiandir)/$(package); \
+ fi

Contact - Imprint