diff options
| author | David Höppner | 2009-10-03 15:06:46 +0200 |
|---|---|---|
| committer | Max Howell | 2009-10-03 16:51:27 +0100 |
| commit | b68532f3b7949c6f577e7d32c1902d4bc85e79fd (patch) | |
| tree | 9fb9c73ef3f4478630a746eff05bb3f760a49ee5 /Library/Formula/parrot.rb | |
| parent | 2d8dfb43df9a9eed910d3905cd60e3cda9ba39e9 (diff) | |
| download | homebrew-b68532f3b7949c6f577e7d32c1902d4bc85e79fd.tar.bz2 | |
Parrot formula
Parrot is a virtual machine designed to efficiently compile
and execute bytecode for dynamic languages. Parrot currently
hosts a variety of language implementations in various stages
of completion, including Tcl, Javascript, Ruby, Lua, Scheme,
PHP, Python, Perl 6, APL, and a .NET bytecode translator.
The parrot binary needs patching to find its library.
Diffstat (limited to 'Library/Formula/parrot.rb')
| -rw-r--r-- | Library/Formula/parrot.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/parrot.rb b/Library/Formula/parrot.rb new file mode 100644 index 000000000..7db15e617 --- /dev/null +++ b/Library/Formula/parrot.rb @@ -0,0 +1,18 @@ +require 'brewkit' + +class Parrot <Formula + url 'ftp://ftp.parrot.org//pub/parrot/releases/devel/1.6.0/parrot-1.6.0.tar.gz' + homepage 'http://www.parrot.org/' + md5 '6fde2d91278a3990213c8671a0856e4a' + + depends_on 'pcre' + + def install + system "perl Configure.pl --prefix=#{prefix} --debugging=0 --without-opengl --cc=#{ENV['CC']}" + system "make install" + + h = "#{HOMEBREW_PREFIX}/Cellar/parrot/1.6.0/bin/parrot" + l = %x{otool -L #{h}}[/\S*blib\/lib\S*/] + system "install_name_tool -change #{l} #{HOMEBREW_PREFIX}/lib/libparrot.dylib #{h}" + end +end |
