Rubygem hosting (

Eric freebsdlists-ports at
Tue May 4 14:33:33 UTC 2010

Dear all,

At the risk of cross post flaming, I thought I would bring up the matter of
RubyGem ports on the main ports list having heard nothing back from my
initial enquiry on the ruby lists [1], but perhaps since it's really about
ports then this is the right place!

I've noticed that from time to time the general migration of gems from to [2] (and indeed GitHub[3]) has
been mentioned on the FreeBSD ruby and ports lists, but it would appear
nothing has been changed yet in the file to accommodate this
migration (may have missed a pr in progress of course).  Since I find myself
writing quick gem ports every now and then I thought it would be worth
bringing the matter up for a quick discussion before sending in my suggested
patch as a PR.

I personally think the cleanest thing to do is add anther MASTER_SITE for  Now it would be nice to add their download location directly,
but that does a 302 redirect to Amazon or CloudFiles for the actual
download, so I think we'll need to pop those locations into
directly. Thus:

# See

Since it will be pretty cool to be able to update many ports by just
s/RF/RG/ in many cases I think we should have an abbreviation for the
RubyGems site thus:


Now one thing I'm not 100% sure on is the use of the '%SUBDIR%' in the
paths, in this case none of the gems will be located in subdirectories since
the gem hosting is flat.  It would appear that the "standard way of doing
things in the is to specify a '%SUBDIR%' element, then if a
pattern is defined in the 'MASTER_SITES_SUBDIRS', that element is replaced.
Is that correct?  So for a RubyForge example, the pattern in
'MASTER_SITES_SUBDIRS' is 'RUBYFORGE:${PORTNAME:L}', which would be the name
of the port lowercased (I guess). So say for 'file-tail' that would make the
download location:

So it occurs to me that we could either just not have a
'MASTER_SITES_SUBDIRS' entry for the RUBYGEMS site (easy) or we could have
one that was just the 'hardcoded' gems subdirectory, something like this:

  RUBYGEMS:gems \

Like the CENKES entry in the file.  We would then make the
'MASTER_SITE_RUBYGEMS' entries like this:
Not quite sure what the best FreeBSD ports protocol is here.  I personally
feel perhaps that makes it more complicated than it needs to be?

Finally it's a good opportunity to replace the dead mirror in the RubyForge
entry, since '' seems to have been
down for some time now.

# See

Any thoughts, comments, suggestions before I put a PR and associated diff




Diff of proposed changes for those interested:

---    2010-04-06 02:53:13.000000000 +0100
+++    2010-05-04 14:54:22.000000000 +0100
@@ -1141,8 +1141,15 @@
 # See
- \
+ \
+# See
+ \
@@ -1493,6 +1500,7 @@
             SF:SOURCEFORGE \
             SFJP:SOURCEFORGE_JP \
+            RG:RUBYGEMS \
             APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \

More information about the freebsd-ports mailing list