diff options
| author | Hideki IGARASHI | 2012-05-27 15:52:03 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2012-05-28 08:11:56 -0700 |
| commit | 37667565fcb879726f9ed806a3cf152edc119417 (patch) | |
| tree | 4e6da1d4cef11eb5c96466f7f12a1e1d59f0ea59 /Library/Formula | |
| parent | ecef082e5deadec2aed753c09894afb93f1ae7f0 (diff) | |
| download | homebrew-37667565fcb879726f9ed806a3cf152edc119417.tar.bz2 | |
subversion: add back UTF-8 hack.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/subversion.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index a40fd9148..b666d27b6 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -4,6 +4,7 @@ def build_java?; ARGV.include? "--java"; end def build_perl?; ARGV.include? "--perl"; end def build_python?; ARGV.include? "--python"; end def build_ruby?; ARGV.include? "--ruby"; end +def with_unicode_path?; ARGV.include? "--unicode-path"; end class UniversalNeon < Requirement def message; <<-EOS.undent @@ -54,9 +55,19 @@ class Subversion < Formula ['--python', 'Build Python bindings.'], ['--ruby', 'Build Ruby bindings.'], ['--universal', 'Build as a Universal Intel binary.'], + ['--unicode-path', 'Include support for OS X UTF-8-MAC filename'], ] end + def patches + # Patch for Subversion handling of OS X UTF-8-MAC filename. + if with_unicode_path? + { :p0 => + "https://raw.github.com/gist/1900750/4888cafcf58f7355e2656fe192a77e2b6726e338/patch-path.c.diff" + } + end + end + def install if build_java? unless ARGV.build_universal? @@ -169,6 +180,18 @@ class Subversion < Formula EOS end + if with_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 + http://svn.collab.net/repos/svn/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 |
