2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
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.
2009-10-03 13:06:46 +00:00
|
|
|
|
|
|
|
class Parrot <Formula
|
2009-12-02 15:06:01 +00:00
|
|
|
url 'ftp://ftp.parrot.org//pub/parrot/releases/devel/1.8.0/parrot-1.8.0.tar.gz'
|
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.
2009-10-03 13:06:46 +00:00
|
|
|
homepage 'http://www.parrot.org/'
|
2009-12-02 15:06:01 +00:00
|
|
|
md5 'a61fd27bf5033eeb0792da3686cd5af7'
|
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.
2009-10-03 13:06:46 +00:00
|
|
|
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
|
|
|
def install
|
2009-12-02 15:06:01 +00:00
|
|
|
confargs = %W[--prefix=#{prefix} --debugging=0 --without-opengl]
|
|
|
|
# the arguments Parrot tries to pass to gcc-4.2 on 10.5 don't compile
|
|
|
|
confargs << "--cc=#{ENV['CC']}" if MACOS_VERSION >= 10.6
|
|
|
|
|
|
|
|
system "perl", "Configure.pl", *confargs
|
|
|
|
system "make"
|
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.
2009-10-03 13:06:46 +00:00
|
|
|
system "make install"
|
|
|
|
|
2009-12-02 15:06:01 +00:00
|
|
|
l = %x{otool -L #{bin}/parrot}[/\S*blib\/lib\S*/]
|
|
|
|
%w{parrot parrot_config parrot_debugger}.each do |fn|
|
|
|
|
system "install_name_tool -change #{l} #{lib}/libparrot.dylib #{bin+fn}"
|
2009-10-03 16:54:32 +00:00
|
|
|
end
|
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.
2009-10-03 13:06:46 +00:00
|
|
|
end
|
|
|
|
end
|