[r-cran-yaml] 01/01: debian/rules: add clean target: clean up after our upstream source hacking
Joost van Baal
joostvb at moszumanska.debian.org
Thu Jan 7 14:22:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
joostvb pushed a commit to branch master
in repository r-cran-yaml.
commit bdc1c552423a6a4213810a3af53ac88fec49a839
Author: Joost van Baal-Ilić <joostvb at nusku.mdcc.cx>
Date: Thu Jan 7 15:21:57 2016 +0100
debian/rules: add clean target: clean up after our upstream source hacking
---
debian/changelog | 1 +
debian/rules | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6f86fd1..90b4fdc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ r-cran-yaml (2.1.13-3) unstable; urgency=low
* debian/rules: remove convenience copy of libyaml sources before building, use system
<yaml.h> in r-ext.c and implicit.c, hack src/Makevars to explicitly link with system
-lyaml.
+ * debian/rules: add clean target: clean up after our upstream source hacking
* debian/control: add libyaml-dev to build depends.
* FIXME: http://cran.r-project.org/doc/manuals/R-admin.html#Customizing-package-compilation
diff --git a/debian/rules b/debian/rules
index 4857242..64e85c6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,7 @@ include /usr/share/R/debian/r-cran.mk
# see also /etc/R/Makeconf and /usr/lib/R/etc/Makeconf
# and https://cran.r-project.org/doc/manuals/r-release/R-exts.html
pre-build::
+ test -d src,bak || cp -a src src,bak
rm -vf src/api.c src/dumper.c src/emitter.c src/loader.c src/parser.c src/reader.c src/scanner.c src/writer.c src/yaml.h
sed -i 's/#include "yaml.h"/#include <yaml.h>/' src/implicit.c
sed -i 's/#include "yaml.h"/#include <yaml.h>/' src/r-ext.h
@@ -30,3 +31,7 @@ common-install-arch::
rm -vf $(debRlib)/$(cranNameOrig)/LICENSE $(debRlib)/$(cranNameOrig)/CHANGELOG $(debRlib)/$(cranNameOrig)/THANKS
dh_installdocs -p$(package) ./inst/THANKS
dh_installchangelogs -p$(package) ./inst/CHANGELOG
+
+clean::
+ test -d src,bak && rm -vfr src || true
+ test -d src,bak && mv src,bak src || true
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-yaml.git
More information about the debian-science-commits
mailing list