require 'formula' class Libsgml files.collect { |file| macports_patch_url('textproc', file) } } end def macports_patch_url(group, file) template = 'http://svn.macports.org/repository/macports/trunk/dports/%s/%s/files/%s' template % [group, name, file] end end