[Pkg-javascript-commits] [SCM] turn an object into a persistent execution context branch, master, updated. debian/0.0.6-1-2-g166f508
David Paleino
dapal at debian.org
Sun Nov 6 20:12:00 UTC 2011
The following commit has been merged in the master branch:
commit 99c7dd74156d2f77a2e1e0fc4aebab34c1350165
Author: David Paleino <dapal at debian.org>
Date: Sun Nov 6 20:36:44 2011 +0100
Fix installation of contextify
diff --git a/debian/changelog b/debian/changelog
index aa0700c..9454238 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-contextify (0.0.6-2) UNRELEASED; urgency=low
+
+ * Fix installation of contextify
+
+ -- David Paleino <dapal at debian.org> Sun, 06 Nov 2011 20:36:31 +0100
+
node-contextify (0.0.6-1) unstable; urgency=low
* Initial release
diff --git a/debian/install b/debian/install
index c5f974d..c702c96 100644
--- a/debian/install
+++ b/debian/install
@@ -1 +1,2 @@
-build/Release/contextify.node usr/lib/nodejs/
+build/Release/contextify.node usr/lib/nodejs/contextify/
+lib/contextify.js usr/lib/nodejs/contextify/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..812f5cc
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/contextify/contextifyjs.js usr/lib/nodejs/contextify/index.js
diff --git a/debian/patches/00-fix_path.patch b/debian/patches/00-fix_path.patch
new file mode 100644
index 0000000..2307792
--- /dev/null
+++ b/debian/patches/00-fix_path.patch
@@ -0,0 +1,18 @@
+From: David Paleino <dapal at debian.org>
+Subject: fix path of compiled module
+Origin: vendor
+Forwarded: no
+
+---
+ lib/contextify.js | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- node-contextify.orig/lib/contextify.js
++++ node-contextify/lib/contextify.js
+@@ -1,5 +1,5 @@
+ try {
+- module.exports = require('../build/Release/contextify').wrap;
++ module.exports = require('./contextify').wrap;
+ } catch (e) {
+ console.log("Internal Contextify ERROR: Make sure Contextify is built " +
+ "with your current Node version.\nTo rebuild, go to the " +
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..37b8b45
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-fix_path.patch
diff --git a/debian/rules b/debian/rules
index 75dcfef..65d116b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,14 +17,17 @@ override_dh_install:
dh_install
dh_buildinfo
+ mv $(CURDIR)/debian/node-contextify/usr/lib/nodejs/contextify/contextify.js \
+ $(CURDIR)/debian/node-contextify/usr/lib/nodejs/contextify/contextifyjs.js
+
override_dh_shlibdeps:
dpkg-shlibdeps \
-T$(CURDIR)/debian/node-contextify.substvars \
- $(CURDIR)/debian/node-contextify/usr/lib/nodejs/contextify.node
+ $(CURDIR)/debian/node-contextify/usr/lib/nodejs/contextify/contextify.node
override_dh_strip:
strip \
--remove-section=.comment \
--remove-section=.note \
--strip-unneeded \
- $(CURDIR)/debian/node-contextify/usr/lib/nodejs/contextify.node
+ $(CURDIR)/debian/node-contextify/usr/lib/nodejs/contextify/contextify.node
--
turn an object into a persistent execution context
More information about the Pkg-javascript-commits
mailing list