aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon COURTOIS2010-06-12 13:30:01 +0200
committerAdam Vandenberg2010-07-03 09:16:22 -0700
commit8153a5ccd28d00de77e0c9c01820cf223c184d90 (patch)
treef0df05b6b4f9eab740a30cda95268a4cfc949b28
parent3f426a3de79962b25a9d2bdc9ee9a1ab8c302bdd (diff)
downloadhomebrew-8153a5ccd28d00de77e0c9c01820cf223c184d90.tar.bz2
Adding a --unicode-path option to subversion
Inspired from the +unicode_path variant of the Macports subversion package. This option activates a patch to enable Mac OS X unicode paths handling. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/subversion.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 999ae83d5..672256d2d 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_universal?; ARGV.include? '--universal'; end
+def with_unicode_path?; ARGV.include? '--unicode-path'; end
# On 10.5 we need newer versions of apr, neon etc.
# On 10.6 we only need a newer version of neon
@@ -79,6 +80,7 @@ class Subversion <Formula
"--without-berkeley-db"]
args << "--enable-javahl" << "--without-jikes" if build_java?
+ args << "--with-unicode-path" if with_unicode_path?
system "./configure", *args
system "make"
@@ -113,9 +115,28 @@ class Subversion <Formula
end
end
+ def patches
+ if with_unicode_path?
+ # Patch that modify subversion paths handling to manage unicode paths issues
+ "http://gist.github.com/raw/434424/subversion-unicode-path.patch"
+ end
+ end
+
def caveats
s = ""
+ 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
+
if build_python?
s += <<-EOS.undent
You may need to add the Python bindings to your PYTHONPATH from: