[DRE-commits] [SCM] Packaging for ruby-json branch, master, updated. upstream/1.5.1-3-gf1d7a1d

Lucas Nussbaum lucas at lucas-nussbaum.net
Sun Apr 3 10:24:34 UTC 2011


The following commit has been merged in the master branch:
commit f1d7a1da8ca6df57ba9f03c3ba57790637fdf2ca
Author: Lucas Nussbaum <lucas at lucas-nussbaum.net>
Date:   Sun Apr 3 12:24:24 2011 +0200

    hack. fix location of so files

diff --git a/debian/rules b/debian/rules
index a4b9e28..76ff133 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,3 +10,15 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+# hack. The source code for json extensions is in ext/json/ext/{parser,generator}/,
+# but the tests require ext/json/ext/{parser,generator}.so
+override_dh_auto_install:
+	cd ext/json/ext && \
+	ln -s parser/parser.so parser.so && \
+	ln -s generator/generator.so generator.so
+	dh_auto_install
+
+override_dh_auto_clean:
+	dh_auto_clean
+	cd ext/json/ext && rm -f parser.so generator.so

-- 
Packaging for ruby-json



More information about the Pkg-ruby-extras-commits mailing list