aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/subversion.rb
diff options
context:
space:
mode:
authorClemens Gruber2013-06-22 02:29:32 +0200
committerAdam Vandenberg2013-06-21 23:11:32 -0700
commit78ac7c427584720dc2a19842c983a647cd0c8770 (patch)
tree51279468206fc51e7fb6fd9b7fa65df2fefaa8ff /Library/Formula/subversion.rb
parent43068c5f816c5b202d52e69ecd7c9a6380a53869 (diff)
downloadhomebrew-78ac7c427584720dc2a19842c983a647cd0c8770.tar.bz2
subversion: fix utf-8-mac encoding problem
Fixes #20656. Closes #20674. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/subversion.rb')
-rw-r--r--Library/Formula/subversion.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 7406b9a55..41fe39e47 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -9,6 +9,7 @@ class Subversion < Formula
option 'java', 'Build Java bindings'
option 'perl', 'Build Perl bindings'
option 'ruby', 'Build Ruby bindings'
+ option 'unicode-path', 'Include experimental support for UTF-8-MAC filenames'
depends_on 'pkg-config' => :build
@@ -31,6 +32,12 @@ class Subversion < Formula
ps << DATA
end
+ # Experimental patch to support UTF-8-MAC filenames
+ # http://subversion.tigris.org/issues/show_bug.cgi?id=2464
+ if build.include? 'unicode-path'
+ ps << "https://gist.github.com/clemensg/5835253/raw/cd719fa206e92519911ad0ab97fdc3822b252429/svn_status_utf8_fix.diff"
+ end
+
unless ps.empty?
{ :p0 => ps }
end
@@ -179,6 +186,18 @@ class Subversion < Formula
EOS
end
+ if build.include? 'unicode-path'
+ s += <<-EOS.undent
+ This unicode-path version implements a hack to deal with composed/decomposed
+ unicode handling on Mac OS X which is different from Linux and Windows.
+ It is an implementation of solution 1 from
+ https://svn.apache.org/repos/asf/subversion/trunk/notes/unicode-composition-for-filenames
+ which _WILL_ break some setups. Please be sure you understand what you
+ are asking for when you install this version.
+
+ EOS
+ end
+
return s.empty? ? nil : s
end
end