Elias, is your merge.rb script destined for inclusion in MacPorts base, for use by portfiles in some way? If so, then I'm a little displeased that you've chosen to write it in Ruby. I don't know Ruby. I know PHP, Bash, a bit of Perl, enough Tcl to get by with MacPorts, but not Ruby, nor was learning it on my agenda. Why introduce another programming language here?