2014-05-20 16:52:50 +00:00
|
|
|
require "formula"
|
2014-02-23 15:12:57 +00:00
|
|
|
|
|
|
|
class Valabind < Formula
|
2014-05-20 16:52:50 +00:00
|
|
|
homepage "http://radare.org/"
|
|
|
|
head "https://github.com/radare/valabind.git"
|
|
|
|
url "https://github.com/radare/valabind/archive/0.8.0.tar.gz"
|
|
|
|
sha1 "f677110477e14c2e18ac61c56730ab0e51ac450d"
|
2014-02-23 15:12:57 +00:00
|
|
|
|
2014-05-20 16:52:50 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "swig" => :run
|
|
|
|
depends_on "vala"
|
2014-02-23 15:12:57 +00:00
|
|
|
|
2014-03-08 12:45:59 +00:00
|
|
|
# Fixes an issue in the vala version detection script.
|
2014-05-20 16:52:50 +00:00
|
|
|
# https://github.com/radare/valabind/pull/24
|
2014-03-08 12:45:59 +00:00
|
|
|
patch :DATA
|
|
|
|
|
2014-02-23 15:12:57 +00:00
|
|
|
def install
|
2014-05-20 16:52:50 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2014-02-23 15:12:57 +00:00
|
|
|
end
|
|
|
|
end
|
2014-03-08 12:45:59 +00:00
|
|
|
|
|
|
|
__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
|