Syntax of Portifle keyword "ruby.setup"

Lutz Horn lutz.horn at fastmail.fm
Thu Feb 28 23:52:16 PST 2008


Hi all,

I'd like to improve some of the Ruby related ports (ruby/rb-*). Since
many Ruby tools and libraries are distributed as RubyGems
(http://www.rubygems.org/) and fetched from the repository at RubyForge
(http://rubyforge.org/), special Porfile keywords do apply.

One keyword I find in man Portfiles is ruby.setup, an example being
rb-sqlite3
(http://trac.macports.org/projects/macports/browser/trunk/dports/ruby/rb-sqlite3/Portfile):

  ruby.setup  {sqlite3 sqlite3-ruby} 1.2.1 setup.rb \
              {README LICENSE ChangeLog api doc} \
              rubyforge:17096

Parts of this I understand: 1.2.1 is the current version of the sqlite3
gem, 17096 the file ID at RubyForge. What I don't understand and don't
find in the MacPorts Guide is the meaning of the parts in curly braces.
Can anybody point me to an explanation?

In addition to this general problem I wonder about the Portfile for
rb-rubygems
(http://trac.macports.org/projects/macports/browser/trunk/dports/ruby/rb-rubygems/Portfile):

  ruby.setup  rubygems 0.9.4 setup.rb {README doc examples gemspecs} \
              rubyforge:20989

The file at RubyForge is an update gem that looks like it can be used to
update an existing installtion of RubyGems to a newer version. This
seems
like a chicken and egg problem to me: how is it possible to use an
update for a package manager (rubygems) if that package manager isn't
already installed?

Thanks for any input
Lutz
-- 
GnuPG Key: 1024D/6EBDA359 1999-09-20
Key fingerprint = 438D 31FC 9300 CED0 1CDE  A19D CD0F 9CA2 6EBD A359
http://dev-random.dnsalias.net/0x6EBDA35.asc
http://pgp.cs.uu.nl/stats/6EBDA359.html



More information about the macports-dev mailing list