From: Brian Candler Date: 2011-11-13T06:34:02+09:00 Subject: Re: Using Ruby to install/manage something from source - Features? Marc Heiler wrote in post #1031582: > Since some time, as a hobby, I am working on an umbrella project > in Ruby - anything that aids in installing software. Basically > its main feature right now is to do something like this: > > compile http://dfn.dl.sourceforge.net/sourceforge/htop/htop-0.9.tar.gz > > And htop will be downloaded, extracted, compiled, installed. http://mxcl.github.com/homebrew/ > The instruction: > > compile htop brew install htop > What would YOU expect of any "Package" manager in Ruby? Pretty much exactly what Homebrew does :-) Of course Homebrew is sold as something for OSX users, but the scripts ('formula') are just small ruby scripts which do download - compile - make - install, with a bunch of useful helper scripts: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook With minor tweaks you could use them anywhere. Of course, the dependencies on platform X won't be exactly the same as the dependencies on platform Y, since there is an assumption about what already exists in the system, and any existing patches they carry are likely to be specific to OSX. -- Posted via http://www.ruby-forum.com/.