[DRE-commits] [ruby-uglifier] 03/05: refresh patch
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Fri Apr 3 11:27:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-uglifier.
commit 185c9d9bff98d25dbab08199db7a87e1564ec215
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Fri Apr 3 16:47:39 2015 +0530
refresh patch
---
debian/patches/change-javascript-files-path.patch | 34 ++++++++++++++---------
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/debian/patches/change-javascript-files-path.patch b/debian/patches/change-javascript-files-path.patch
index df72d8b..39dc25d 100644
--- a/debian/patches/change-javascript-files-path.patch
+++ b/debian/patches/change-javascript-files-path.patch
@@ -2,28 +2,36 @@ Description: Point to Javascript files at /usr/share
This patch is Debian-specific.
Author: Antonio Terceiro <terceiro at debian.org>
---- a/lib/uglifier.rb
-+++ b/lib/uglifier.rb
-@@ -62,12 +62,19 @@ class Uglifier
- }
+Index: ruby-uglifier/lib/uglifier.rb
+===================================================================
+--- ruby-uglifier.orig/lib/uglifier.rb
++++ ruby-uglifier/lib/uglifier.rb
+@@ -74,14 +74,21 @@ class Uglifier
+ })
JS
+- # UglifyJS source path
+- SourcePath = File.expand_path("../uglify.js", __FILE__)
+- # ES5 shims source path
+- ES5FallbackPath = File.expand_path("../es5.js", __FILE__)
+- # String.split shim source path
+- SplitFallbackPath = File.expand_path("../split.js", __FILE__)
+ def self.find_asset(filename)
+ [
+ File.expand_path("../" + filename, __FILE__),
+ File.join("/usr/share/javascript/ruby-uglifier", filename)
+ ].find { |f| File.exists?(f) }
+ end
-+
- # UglifyJS source patch
-- SourcePath = File.expand_path("../uglify.js", __FILE__)
+
+- # Default options for compilation
++ # UglifyJS source patch
+ SourcePath = find_asset("uglify.js")
- # ES5 shims source path
-- ES5FallbackPath = File.expand_path("../es5.js", __FILE__)
++ # ES5 shims source path
+ ES5FallbackPath = find_asset("es5.js")
- # String.split shim source path
-- SplitFallbackPath = File.expand_path("../split.js", __FILE__)
++ # String.split shim source path
+ SplitFallbackPath = find_asset("split.js")
-
- # Default options for compilation
++
++ # Default options for compilation
DEFAULTS = {
+ # rubocop:disable LineLength
+ :output => {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-uglifier.git
More information about the Pkg-ruby-extras-commits
mailing list