[med-svn] [r-cran-rmarkdown] 02/05: More JS replacements
Andreas Tille
tille at debian.org
Mon Dec 11 21:08:40 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-rmarkdown.
commit df8c9a70eb6be652613ddaa936479272e8400cea
Author: Andreas Tille <tille at debian.org>
Date: Mon Dec 11 21:59:20 2017 +0100
More JS replacements
---
debian/control | 1 +
debian/copyright | 1 +
debian/links | 1 +
debian/rules | 11 +++++++++++
4 files changed, 14 insertions(+)
diff --git a/debian/control b/debian/control
index a3840d4..3736f27 100644
--- a/debian/control
+++ b/debian/control
@@ -30,6 +30,7 @@ Depends: ${R:Depends},
libjs-jquery,
libjs-jquery-ui,
libjs-modernizr,
+ libjs-prettify,
fonts-font-awesome,
r-cran-shiny
# r-cran-shiny dependency to get jquery-ui files
diff --git a/debian/copyright b/debian/copyright
index 02fa01a..ba65ac4 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -9,6 +9,7 @@ Files-Excluded: */bootstrap-*
*/jqueryui-1.11.4
*/modernizr.custom.45394.js
*/order.js
+ */prettify.js
*/require-1.0.8.min.js
Files: *
diff --git a/debian/links b/debian/links
index 801701c..9545a53 100644
--- a/debian/links
+++ b/debian/links
@@ -5,3 +5,4 @@ usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf usr/lib/R/site-li
usr/share/javascript/jquery/jquery.min.js usr/lib/R/site-library/rmarkdown/rmd/h/jquery-1.11.3/jquery.min.js
usr/lib/R/site-library/shiny/www/shared/jqueryui usr/lib/R/site-library/rmarkdown/rmd/h/jqueryui-1.11.4
usr/share/javascript/modernizr/modernizr.min.js usr/lib/R/site-library/rmarkdown/rmd/ioslides/ioslides-13.5.1/js/modernizr.custom.45394.js
+usr/share/javascript/prettify/prettify.js usr/lib/R/site-library/rmarkdown/rmd/ioslides/ioslides-13.5.1/js/prettify.js
diff --git a/debian/rules b/debian/rules
index 529c38a..28f5ceb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,16 @@
#!/usr/bin/make -f
+debRreposname := $(shell echo $(DEB_SOURCE) | 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
+
%:
dh $@ --buildsystem R
+override_dh_install:
+ dh_install
+ cp -a debian/js/requirejs/order.min.js $(CURDIR)/debian/$(DEB_SOURCE)/$(debRdir)/$(cranName)/rmd/ioslides/ioslides-13.5.1/js/order.js
+ cp -a debian/js/requirejs/require.min.js $(CURDIR)/debian/$(DEB_SOURCE)/$(debRdir)/$(cranName)/rmd/ioslides/ioslides-13.5.1/js/require-1.0.8.min.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-rmarkdown.git
More information about the debian-med-commit
mailing list