diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/subversion.rb | 19 |
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 |
