aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Holm2014-03-08 13:45:59 +0100
committerAdam Vandenberg2014-05-20 09:54:10 -0700
commitf821e86c870de7d7753d1be44858643c0048aafd (patch)
tree0e0250ff993d38d8ec3106a98613e961cb98aa01 /Library
parenta3b0c1ffb52ae5857efea4b9cb4c5601e5163b96 (diff)
downloadhomebrew-f821e86c870de7d7753d1be44858643c0048aafd.tar.bz2
valabind: fix compilation on Lion
Closes #29342. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/valabind.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/valabind.rb b/Library/Formula/valabind.rb
index 1e12d3444..293befb44 100644
--- a/Library/Formula/valabind.rb
+++ b/Library/Formula/valabind.rb
@@ -11,8 +11,27 @@ class Valabind < Formula
depends_on 'swig' => :run
depends_on 'vala'
+ # Fixes an issue in the vala version detection script.
+ # * https://github.com/radare/valabind/pull/24
+ patch :DATA
+
def install
system 'make'
system 'make', 'install', "PREFIX=#{prefix}"
end
end
+
+__END__
+diff --git i/getvv w/getvv
+index 14183dc..59a42bb 100755
+--- i/getvv
++++ w/getvv
+@@ -3,7 +3,7 @@ IFS=:
+ [ -z "${VALAC}" ] && VALAC=valac
+ for a in $PATH; do
+ if [ -e "$a/valac" ]; then
+- v=$(strings $a/${VALAC} | grep vala- | grep -v lib)
++ v=$(cat $a/${VALAC} | strings | grep vala- | grep -v lib)
+ if [ -n "$v" ]; then
+ printf lib$v
+ exit 0