subversion: fix perl bindings placement

If you pass the prefix twice you end up with the Perl bindings installed in
a double prefix:

/usr/local/Cellar/subversion/1.9.3/usr/local/Cellar/subversion/1.9.3/Library

Rather than:

/usr/local/Cellar/subversion/1.9.3/Library

This fixes that.
This commit is contained in:
Dominyk Tiller 2016-02-20 00:14:32 +00:00
parent 8e16762495
commit dec7ff23a9

View file

@ -190,11 +190,10 @@ class Subversion < Formula
"$(SWIG_INCLUDES) #{arches} -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -I#{perl_core}"
end
system "make", "swig-pl"
system "make", "install-swig-pl", "DESTDIR=#{prefix}"
system "make", "install-swig-pl"
# Some of the libraries get installed into the wrong place, they end up having the
# prefix in the directory name twice.
lib.install Dir["#{prefix}/#{lib}/*"]
end