]> git.pld-linux.org Git - packages/phantomjs.git/blob - 0008-unbundle-coffee-script.patch
- initial from web
[packages/phantomjs.git] / 0008-unbundle-coffee-script.patch
1 From 6ac405d555c7f80c95b0636be64e3739d194318e Mon Sep 17 00:00:00 2001
2 From: Dan Callaghan <dcallagh@redhat.com>
3 Date: Mon, 11 Feb 2013 10:32:55 +1000
4 Subject: [PATCH 8/8] unbundle coffee-script
5
6
7 diff --git a/src/csconverter.cpp b/src/csconverter.cpp
8 index 6abe1ff..8806e8d 100644
9 --- a/src/csconverter.cpp
10 +++ b/src/csconverter.cpp
11 @@ -49,9 +49,9 @@ CSConverter::CSConverter()
12      : QObject(QCoreApplication::instance())
13  {
14      m_webPage.mainFrame()->evaluateJavaScript(
15 -        Utils::readResourceFileUtf8(":/coffee-script/extras/coffee-script.js")
16 +        Utils::readResourceFileUtf8("/usr/share/coffee-script/extras/coffee-script.js")
17  #ifdef HAVE_QT_JS_STACK_TRACES
18 -        , QString("phantomjs://coffee-script/extras/coffee-script.js")
19 +        , QString("/usr/share/coffee-script/extras/coffee-script.js")
20  #endif
21      );
22      m_webPage.mainFrame()->addToJavaScriptWindowObject("converter", this);
23 diff --git a/src/modules/_coffee-script.js b/src/modules/_coffee-script.js
24 index 4366c50..a8e8f7d 100644
25 --- a/src/modules/_coffee-script.js
26 +++ b/src/modules/_coffee-script.js
27 @@ -8,4 +8,4 @@ require.stub('fs', {
28      }
29  });
30  
31 -module.exports = require('../coffee-script');
32 +module.exports = require('/usr/lib/node_modules/coffee-script');
33 diff --git a/src/phantomjs.qrc b/src/phantomjs.qrc
34 index 31839b5..1e9fc94 100644
35 --- a/src/phantomjs.qrc
36 +++ b/src/phantomjs.qrc
37 @@ -11,22 +11,5 @@
38          <file>modules/child_process.js</file>
39          <file>modules/_coffee-script.js</file>
40          <file>repl.js</file>
41 -
42 -        <file>coffee-script/package.json</file>
43 -        <file>coffee-script/lib/coffee-script/coffee-script.js</file>
44 -        <file>coffee-script/lib/coffee-script/optparse.js</file>
45 -        <file>coffee-script/lib/coffee-script/command.js</file>
46 -        <file>coffee-script/lib/coffee-script/scope.js</file>
47 -        <file>coffee-script/lib/coffee-script/parser.js</file>
48 -        <file>coffee-script/lib/coffee-script/browser.js</file>
49 -        <file>coffee-script/lib/coffee-script/nodes.js</file>
50 -        <file>coffee-script/lib/coffee-script/grammar.js</file>
51 -        <file>coffee-script/lib/coffee-script/lexer.js</file>
52 -        <file>coffee-script/lib/coffee-script/repl.js</file>
53 -        <file>coffee-script/lib/coffee-script/cake.js</file>
54 -        <file>coffee-script/lib/coffee-script/helpers.js</file>
55 -        <file>coffee-script/lib/coffee-script/rewriter.js</file>
56 -        <file>coffee-script/lib/coffee-script/index.js</file>
57 -        <file>coffee-script/extras/coffee-script.js</file>
58      </qresource>
59  </RCC>
60 -- 
61 1.7.11.7
62
This page took 0.063891 seconds and 3 git commands to generate.