aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-10-11 14:07:11 -0500
committerJack Nagel2014-10-11 14:07:11 -0500
commitbece3f72ee7bd722ec5d4dbcdc87590805cc4586 (patch)
treec58d961d16d27c73977c36dfe407a23b26df5d43 /Library
parent18efcd835d19331e267fd9c431a2a36b41ef064e (diff)
downloadhomebrew-bece3f72ee7bd722ec5d4dbcdc87590805cc4586.tar.bz2
valabind: fix build against vala 0.26
Fixes #33087.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/valabind.rb23
1 files changed, 5 insertions, 18 deletions
diff --git a/Library/Formula/valabind.rb b/Library/Formula/valabind.rb
index 03acc4d3f..0cab86e85 100644
--- a/Library/Formula/valabind.rb
+++ b/Library/Formula/valabind.rb
@@ -10,27 +10,14 @@ 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
+ # Upstream patches to build against vala 0.26
+ patch do
+ url "https://gist.githubusercontent.com/jacknagel/7deb63f3ebfaaddbdf0d/raw/fb651566528cf997a770fef6546b8ac5d0838fd6/valabind.diff"
+ sha1 "dc9de8370913b91b2b50b0284188e209d7d71bcf"
+ end
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